1
0
forked from x/icebergs
icebergs/core/team/team.go
2021-08-18 12:41:04 +08:00

20 lines
479 B
Go

package team
import (
ice "shylinux.com/x/icebergs"
"shylinux.com/x/icebergs/base/web"
)
const TEAM = "team"
var Index = &ice.Context{Name: TEAM, Help: "团队中心", Commands: map[string]*ice.Command{
ice.CTX_INIT: {Hand: func(m *ice.Message, c *ice.Context, cmd string, arg ...string) {
m.Load()
}},
ice.CTX_EXIT: {Hand: func(m *ice.Message, c *ice.Context, cmd string, arg ...string) {
m.Save()
}},
}}
func init() { web.Index.Register(Index, nil, TASK, PLAN) }