mirror of
https://shylinux.com/x/operation
synced 2025-07-02 21:41:20 +08:00
24 lines
573 B
Go
24 lines
573 B
Go
package production
|
|
|
|
import (
|
|
"shylinux.com/x/ice"
|
|
)
|
|
|
|
type Note struct {
|
|
Table
|
|
fields string `data:"to_user_uid,title,content,issue_uid,plan_uid,user_uid"`
|
|
create string `name:"create title* content* to_user_uid:select" role:"worker"`
|
|
remove string `name:"remove" role:"leader"`
|
|
}
|
|
|
|
func (s Note) Create(m *ice.Message, arg ...string) {
|
|
s.ValueCreate(m, arg...)
|
|
s.SendTemplate(m, "", "", "")
|
|
}
|
|
func (s Note) List(m *ice.Message, arg ...string) {
|
|
s.ValueList(m, arg).PushAction()
|
|
s.OtherListCmd(m, s.IssueList, s.DesignList)
|
|
}
|
|
|
|
func init() { ice.TeamCtxCmd(Note{}) }
|