1
0
mirror of https://shylinux.com/x/ContextOS synced 2025-04-25 16:58:06 +08:00
ContextOS/src/hi/hi.go
2023-01-10 21:43:16 +08:00

25 lines
408 B
Go

package hi
import (
"shylinux.com/x/ice"
"shylinux.com/x/icebergs/base/ctx"
)
type hi struct {
ice.Zone
list string `name:"list zone id auto insert" help:"示例"`
}
func (s hi) Show(m *ice.Message, arg ...string) {
m.Echo("hello world")
m.StatusTime()
}
func (s hi) List(m *ice.Message, arg ...string) {
s.Zone.ListPage(m, arg...)
ctx.Display
}
func init() { ice.Cmd("web.code.hi.hi", hi{}) }