jingganjiaoyu 077186704a opt some
2024-08-29 11:10:04 +08:00

25 lines
625 B
Go

package zhengshuxitong
import (
"shylinux.com/x/ice"
kit "shylinux.com/x/toolkits"
"shylinux.com/x/education/src/zhengshuxitong/model"
)
type cert struct {
Table
auth auth
userAuth userAuth
create string `name:"create title* content*" role:"leader"`
}
func (s cert) Create(m *ice.Message, arg ...string) {
s.Table.Create(m, kit.Simple(arg, m.OptionSimple(model.USER_UID, model.AUTH_UID))...)
s.recordEventWithName(m, "")
}
func (s cert) List(m *ice.Message, arg ...string) {
s.TablesWithRole(m, arg, s.userAuth, s.auth, s, model.TITLE, model.CONTENT).Display("")
}
func init() { ice.TeamCtxCmd(cert{}) }