mirror of
https://shylinux.com/x/operation
synced 2025-04-25 17:18:06 +08:00
17 lines
528 B
Go
17 lines
528 B
Go
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{}) }
|