mirror of
https://shylinux.com/x/enterprise
synced 2025-07-01 12:34:44 +08:00
add some
This commit is contained in:
parent
9406833239
commit
e11eca2daf
@ -1,4 +1,5 @@
|
||||
chapter "管理系统"
|
||||
field web.chat.wx.access
|
||||
field web.code.mysql.client
|
||||
field web.code.mysql.query args `mysql guanlixitong`
|
||||
field web.code.db.database
|
||||
|
@ -12,11 +12,11 @@ type target struct {
|
||||
userGroup userGroup
|
||||
group group
|
||||
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) {
|
||||
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) {
|
||||
s.TablesWithRole(m, arg, s, s.userGroup, s.group, model.CONTENT).Display("")
|
||||
|
@ -4,9 +4,8 @@ import (
|
||||
"shylinux.com/x/ice"
|
||||
|
||||
_ "shylinux.com/x/enterprise/src/guanlixitong"
|
||||
_ "shylinux.com/x/mysql-story/src/db/mysql"
|
||||
)
|
||||
|
||||
func main() { print(ice.Run()) }
|
||||
|
||||
func init() { ice.Info.Titles = "云办公" }
|
||||
func init() { ice.Info.Titles = "云办公" }
|
||||
|
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