package development import "shylinux.com/x/ice" type version struct { Table fields string `data:"title,content"` create string `name:"create title* content*" role:"leader"` remove string `name:"remove" role:"leader"` } func (s version) Create(m *ice.Message, arg ...string) { s.ValueCreate(m, arg...) } func (s version) Remove(m *ice.Message, arg ...string) { s.ValueRemove(m, arg...) } func (s version) List(m *ice.Message, arg ...string) { s.ValueList(m, arg).Display("") } func init() { ice.TeamCtxCmd(version{}) }