mirror of
https://shylinux.com/x/education
synced 2025-04-25 10:08:05 +08:00
19 lines
389 B
Go
19 lines
389 B
Go
package jiaocaiziliao
|
|
|
|
import "shylinux.com/x/ice"
|
|
|
|
type content struct {
|
|
Table
|
|
order string `data:"1"`
|
|
fields string `data:"title,user_uid"`
|
|
create string `name:"create title*" role:"teacher"`
|
|
remove string `name:"remove" role:"teacher"`
|
|
}
|
|
|
|
func (s content) List(m *ice.Message, arg ...string) {
|
|
s.ValueList(m, arg)
|
|
m.Action(s.Create)
|
|
}
|
|
|
|
func init() { ice.TeamCtxCmd(content{}) }
|