mirror of
https://shylinux.com/x/enterprise
synced 2025-07-01 20:41:20 +08:00
add some
This commit is contained in:
parent
9406833239
commit
e11eca2daf
@ -1,4 +1,5 @@
|
|||||||
chapter "管理系统"
|
chapter "管理系统"
|
||||||
|
field web.chat.wx.access
|
||||||
field web.code.mysql.client
|
field web.code.mysql.client
|
||||||
field web.code.mysql.query args `mysql guanlixitong`
|
field web.code.mysql.query args `mysql guanlixitong`
|
||||||
field web.code.db.database
|
field web.code.db.database
|
||||||
|
@ -12,11 +12,11 @@ type target struct {
|
|||||||
userGroup userGroup
|
userGroup userGroup
|
||||||
group group
|
group group
|
||||||
portal string `data:"true"`
|
portal string `data:"true"`
|
||||||
create string `name:"create group_uid* content*" role:"void"`
|
create string `name:"create content*" role:"void"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s target) Create(m *ice.Message, arg ...string) {
|
func (s target) Create(m *ice.Message, arg ...string) {
|
||||||
s.Table.Create(m, kit.Simple(arg, m.OptionSimple(model.USER_UID))...)
|
s.Table.Create(m, kit.Simple(arg, m.OptionSimple(model.USER_UID, model.GROUP_UID))...)
|
||||||
}
|
}
|
||||||
func (s target) List(m *ice.Message, arg ...string) {
|
func (s target) List(m *ice.Message, arg ...string) {
|
||||||
s.TablesWithRole(m, arg, s, s.userGroup, s.group, model.CONTENT).Display("")
|
s.TablesWithRole(m, arg, s, s.userGroup, s.group, model.CONTENT).Display("")
|
||||||
|
@ -4,7 +4,6 @@ import (
|
|||||||
"shylinux.com/x/ice"
|
"shylinux.com/x/ice"
|
||||||
|
|
||||||
_ "shylinux.com/x/enterprise/src/guanlixitong"
|
_ "shylinux.com/x/enterprise/src/guanlixitong"
|
||||||
_ "shylinux.com/x/mysql-story/src/db/mysql"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() { print(ice.Run()) }
|
func main() { print(ice.Run()) }
|
||||||
|
6
src/option.go
Normal file
6
src/option.go
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
package main
|
||||||
|
|
||||||
|
import (
|
||||||
|
_ "shylinux.com/x/ice/devops"
|
||||||
|
_ "shylinux.com/x/mysql-story/src/db/mysql"
|
||||||
|
)
|
Loading…
x
Reference in New Issue
Block a user