1
0
mirror of https://shylinux.com/x/icebergs synced 2025-04-26 17:44:05 +08:00
This commit is contained in:
IT 老营长 @云轩领航-创始人 2022-12-03 14:39:38 +08:00
parent 9b46681751
commit b8a3304d8b

View File

@ -20,12 +20,7 @@ const (
const APP = "app" const APP = "app"
func init() { func init() {
Index.Merge(&ice.Context{Configs: ice.Configs{ Index.MergeCommands(ice.Commands{
APP: {Name: APP, Help: "应用", Value: kit.Data(
mdb.SHORT, APPID, mdb.FIELD, "time,appid,duty,token,expire",
tcp.SERVER, "https://open.feishu.cn/",
)},
}, Commands: ice.Commands{
APP: {Name: "app appid auto token login", Help: "应用", Actions: ice.MergeActions(ice.Actions{ APP: {Name: "app appid auto token login", Help: "应用", Actions: ice.MergeActions(ice.Actions{
ice.CTX_INIT: {Hand: func(m *ice.Message, arg ...string) { ice.CTX_INIT: {Hand: func(m *ice.Message, arg ...string) {
m.Cmd(web.SPIDE, mdb.CREATE, LARK, m.Config(tcp.SERVER)) m.Cmd(web.SPIDE, mdb.CREATE, LARK, m.Config(tcp.SERVER))
@ -46,8 +41,11 @@ func init() {
} }
m.Echo(msg.Append(TOKEN)) m.Echo(msg.Append(TOKEN))
}}, }},
}, mdb.HashAction()), Hand: func(m *ice.Message, arg ...string) { }, mdb.HashAction(
mdb.SHORT, APPID, mdb.FIELD, "time,appid,duty,token,expire",
tcp.SERVER, "https://open.feishu.cn/",
)), Hand: func(m *ice.Message, arg ...string) {
mdb.HashSelect(m, arg...) mdb.HashSelect(m, arg...)
}}, }},
}}) })
} }