胡轶钦 hace 6 años
padre
commit
f90849bad8

+ 14
- 0
models/model/sys_org.go Ver fichero

@@ -0,0 +1,14 @@
1
+package model
2
+
3
+import (
4
+	"time"
5
+)
6
+
7
+type SysOrg struct {
8
+	OrgId      string    `xorm:"not null pk VARCHAR(64)"`
9
+	OrgName    string    `xorm:"VARCHAR(32)"`
10
+	WechatId   string    `xorm:"VARCHAR(64)"`
11
+	WechatName string    `xorm:"VARCHAR(32)"`
12
+	Status     int       `xorm:"SMALLINT(6)"`
13
+	CreateDate time.Time `xorm:"DATETIME"`
14
+}

+ 1
- 1
models/model/sys_user.go Ver fichero

@@ -6,6 +6,7 @@ import (
6 6
 
7 7
 type SysUser struct {
8 8
 	UserId     string    `xorm:"not null pk VARCHAR(64)"`
9
+	OrgId      string    `xorm:"VARCHAR(64)"`
9 10
 	UserName   string    `xorm:"not null VARCHAR(50)"`
10 11
 	RealName   string    `xorm:"VARCHAR(50)"`
11 12
 	Pwd        string    `xorm:"VARCHAR(500)"`
@@ -16,5 +17,4 @@ type SysUser struct {
16 17
 	CreateDate time.Time `xorm:"DATETIME"`
17 18
 	Headimgurl string    `xorm:"TEXT"`
18 19
 	UserType   string    `xorm:"VARCHAR(32)"`
19
-	OrgId      string    `xorm:"VARCHAR(64)"`
20 20
 }

+ 14
- 0
models/model/sys_wechat_conf.go Ver fichero

@@ -0,0 +1,14 @@
1
+package model
2
+
3
+type SysWechatConf struct {
4
+	ConfId string `xorm:"not null pk VARCHAR(64)"`
5
+	Type   string `xorm:"comment('wechat 微信公众号
6
+            mini 小程序') VARCHAR(20)"`
7
+	Appid  string `xorm:"VARCHAR(50)"`
8
+	Secret string `xorm:"VARCHAR(50)"`
9
+	Token  string `xorm:"VARCHAR(50)"`
10
+	Aeskey string `xorm:"VARCHAR(100)"`
11
+	Wxid   string `xorm:"VARCHAR(50)"`
12
+	Remark string `xorm:"TEXT"`
13
+	Status int    `xorm:"SMALLINT(6)"`
14
+}

+ 19
- 0
models/model/ta_auto_reply.go Ver fichero

@@ -0,0 +1,19 @@
1
+package model
2
+
3
+import (
4
+	"time"
5
+)
6
+
7
+type TaAutoReply struct {
8
+	AutoReplyId      string    `xorm:"not null pk VARCHAR(64)"`
9
+	AutoType         string    `xorm:"VARCHAR(32)"`
10
+	RuleName         string    `xorm:"VARCHAR(32)"`
11
+	PairType         string    `xorm:"VARCHAR(32)"`
12
+	MessageType      string    `xorm:"VARCHAR(32)"`
13
+	MessageParagraph string    `xorm:"TEXT"`
14
+	MessageImg       string    `xorm:"TEXT"`
15
+	MessageContent   string    `xorm:"TEXT"`
16
+	CreateDate       time.Time `xorm:"DATETIME"`
17
+	Status           int       `xorm:"SMALLINT(6)"`
18
+	OrgId            string    `xorm:"VARCHAR(64)"`
19
+}

+ 8
- 0
models/model/ta_auto_reply_keywords.go Ver fichero

@@ -0,0 +1,8 @@
1
+package model
2
+
3
+type TaAutoReplyKeywords struct {
4
+	KeywordsId  string `xorm:"not null pk VARCHAR(64)"`
5
+	AutoReplyId string `xorm:"VARCHAR(64)"`
6
+	Keywords    string `xorm:"VARCHAR(32)"`
7
+	Status      string `xorm:"CHAR(10)"`
8
+}

+ 15
- 0
models/model/ta_logs.go Ver fichero

@@ -0,0 +1,15 @@
1
+package model
2
+
3
+import (
4
+	"time"
5
+)
6
+
7
+type TaLogs struct {
8
+	LogId      string    `xorm:"not null pk VARCHAR(64)"`
9
+	UserId     string    `xorm:"VARCHAR(64)"`
10
+	UserName   string    `xorm:"VARCHAR(32)"`
11
+	Api        string    `xorm:"VARCHAR(64)"`
12
+	ModifyTime time.Time `xorm:"DATETIME"`
13
+	Parameter  string    `xorm:"TEXT"`
14
+	Result     string    `xorm:"TEXT"`
15
+}

+ 20
- 0
models/model/ta_wechat_content.go Ver fichero

@@ -0,0 +1,20 @@
1
+package model
2
+
3
+import (
4
+	"time"
5
+)
6
+
7
+type TaWechatContent struct {
8
+	MediaId          string    `xorm:"not null pk VARCHAR(64)"`
9
+	Title            string    `xorm:"VARCHAR(64)"`
10
+	ThumbMediaId     string    `xorm:"TEXT"`
11
+	ShowCoverPic     int       `xorm:"SMALLINT(6)"`
12
+	Author           string    `xorm:"VARCHAR(32)"`
13
+	Digest           string    `xorm:"VARCHAR(128)"`
14
+	Content          string    `xorm:"TEXT"`
15
+	ContentSourceUrl string    `xorm:"TEXT"`
16
+	Url              string    `xorm:"TEXT"`
17
+	UpdateTime       time.Time `xorm:"DATETIME"`
18
+	OrgId            string    `xorm:"VARCHAR(64)"`
19
+	CreateDate       time.Time `xorm:"DATETIME"`
20
+}

+ 14
- 0
models/model/ta_wechat_img.go Ver fichero

@@ -0,0 +1,14 @@
1
+package model
2
+
3
+import (
4
+	"time"
5
+)
6
+
7
+type TaWechatImg struct {
8
+	MediaId    string    `xorm:"not null pk VARCHAR(64)"`
9
+	Name       string    `xorm:"VARCHAR(32)"`
10
+	UpdateTime time.Time `xorm:"DATETIME"`
11
+	Url        string    `xorm:"TEXT"`
12
+	OrgId      string    `xorm:"VARCHAR(64)"`
13
+	CreateDate time.Time `xorm:"DATETIME"`
14
+}

+ 13
- 0
models/model/ta_wechat_menu.go Ver fichero

@@ -0,0 +1,13 @@
1
+package model
2
+
3
+import (
4
+	"time"
5
+)
6
+
7
+type TaWechatMenu struct {
8
+	WechatConfigId   string    `xorm:"not null pk VARCHAR(64)"`
9
+	WechatConfigJson string    `xorm:"TEXT"`
10
+	Status           int       `xorm:"SMALLINT(6)"`
11
+	OrgId            string    `xorm:"VARCHAR(64)"`
12
+	CreateDate       time.Time `xorm:"DATETIME"`
13
+}