mirror of
https://shylinux.com/x/education
synced 2025-04-25 10:08:05 +08:00
25 lines
625 B
Go
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{}) } |