forked from x/icebergs
29 lines
557 B
Go
29 lines
557 B
Go
package node
|
|
|
|
import (
|
|
"shylinux.com/x/ice"
|
|
"shylinux.com/x/icebergs/base/aaa"
|
|
"shylinux.com/x/icebergs/base/web"
|
|
)
|
|
|
|
type api struct {
|
|
spaceList string `http:"/api/space/list"`
|
|
userList string `http:"/api/user/list"`
|
|
userAdd string `http:"/api/user/add"`
|
|
}
|
|
|
|
func (s api) UserAdd(m *ice.Message, arg ...string) {
|
|
m.Cmdy(aaa.USER)
|
|
}
|
|
func (s api) UserList(m *ice.Message, arg ...string) {
|
|
m.Cmdy(aaa.USER)
|
|
}
|
|
func (s api) SpaceList(m *ice.Message, arg ...string) {
|
|
m.Cmdy(web.DREAM)
|
|
}
|
|
func (s api) List() {
|
|
|
|
}
|
|
|
|
func init() { ice.CodeCtxCmd(api{}) }
|