From e11eca2dafebbaefca4fb2641a3abf29fdad55fa Mon Sep 17 00:00:00 2001 From: shy Date: Tue, 6 Aug 2024 01:33:27 +0800 Subject: [PATCH] add some --- src/guanlixitong/portal.shy | 1 + src/guanlixitong/target.go | 4 ++-- src/main.go | 3 +-- src/option.go | 6 ++++++ 4 files changed, 10 insertions(+), 4 deletions(-) create mode 100644 src/option.go diff --git a/src/guanlixitong/portal.shy b/src/guanlixitong/portal.shy index a8cd6db..b02861a 100644 --- a/src/guanlixitong/portal.shy +++ b/src/guanlixitong/portal.shy @@ -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 diff --git a/src/guanlixitong/target.go b/src/guanlixitong/target.go index 841b37d..0f0789b 100644 --- a/src/guanlixitong/target.go +++ b/src/guanlixitong/target.go @@ -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("") diff --git a/src/main.go b/src/main.go index 7b78dbe..111dbdf 100644 --- a/src/main.go +++ b/src/main.go @@ -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 = "云办公" } \ No newline at end of file +func init() { ice.Info.Titles = "云办公" } diff --git a/src/option.go b/src/option.go new file mode 100644 index 0000000..9e797f3 --- /dev/null +++ b/src/option.go @@ -0,0 +1,6 @@ +package main + +import ( + _ "shylinux.com/x/ice/devops" + _ "shylinux.com/x/mysql-story/src/db/mysql" +)