mirror of
https://shylinux.com/x/icebergs
synced 2025-04-28 02:02:02 +08:00
20 lines
497 B
Go
20 lines
497 B
Go
package mall
|
|
|
|
import (
|
|
ice "github.com/shylinux/icebergs"
|
|
"github.com/shylinux/icebergs/base/web"
|
|
)
|
|
|
|
const MALL = "mall"
|
|
|
|
var Index = &ice.Context{Name: MALL, 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, ASSET, SALARY) }
|