mirror of
https://shylinux.com/x/enterprise
synced 2025-04-25 17:18:06 +08:00
26 lines
640 B
Go
26 lines
640 B
Go
package development
|
|
|
|
import (
|
|
"shylinux.com/x/ice"
|
|
kit "shylinux.com/x/toolkits"
|
|
|
|
"shylinux.com/x/enterprise/src/development/model"
|
|
)
|
|
|
|
type release struct {
|
|
Table
|
|
repos repos
|
|
userRepos userRepos
|
|
create string `name:"create title* content*" role:"leader"`
|
|
}
|
|
|
|
func (s release) Create(m *ice.Message, arg ...string) {
|
|
s.Table.Create(m, kit.Simple(arg, m.OptionSimple(model.USER_UID, model.REPOS_UID))...)
|
|
s.RecordEventWithName(m, "")
|
|
}
|
|
func (s release) List(m *ice.Message, arg ...string) {
|
|
s.TablesWithRole(m, arg, s.userRepos, s.repos, s, model.TITLE, model.CONTENT).Display("")
|
|
}
|
|
|
|
func init() { ice.TeamCtxCmd(release{}) }
|