1
0
mirror of https://shylinux.com/x/icebergs synced 2025-04-26 17:44:05 +08:00
icebergs/core/team/team.go
2020-10-16 21:25:59 +08:00

18 lines
489 B
Go

package team
import (
ice "github.com/shylinux/icebergs"
"github.com/shylinux/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) }