作者 郑周

1. 模型补充公司ID

@@ -10,6 +10,7 @@ import ( @@ -10,6 +10,7 @@ import (
10 // Discussion 圆桌讨论表 10 // Discussion 圆桌讨论表
11 type Discussion struct { 11 type Discussion struct {
12 Id int64 // 唯一标识 12 Id int64 // 唯一标识
  13 + CompanyId int64 `json:"companyId"` // 公司ID
13 Title string `json:"title"` // 标题(不超过30个字符) 14 Title string `json:"title"` // 标题(不超过30个字符)
14 Content string `json:"content"` // 内容(不超过500个字符) 15 Content string `json:"content"` // 内容(不超过500个字符)
15 Images []domain.Image `json:"images"` // 图片(不超过5张) 16 Images []domain.Image `json:"images"` // 图片(不超过5张)
@@ -10,6 +10,7 @@ import ( @@ -10,6 +10,7 @@ import (
10 // DiscussionAccept 圆桌讨论采纳表 10 // DiscussionAccept 圆桌讨论采纳表
11 type DiscussionAccept struct { 11 type DiscussionAccept struct {
12 Id int64 // 唯一标识 12 Id int64 // 唯一标识
  13 + CompanyId int64 `json:"companyId"` // 公司ID
13 ArticleId int64 `json:"articleId"` // 文章ID 14 ArticleId int64 `json:"articleId"` // 文章ID
14 DiscussionId int64 `json:"discussionId"` // 讨论ID 15 DiscussionId int64 `json:"discussionId"` // 讨论ID
15 ProviderId int64 `json:"providerId"` // 发起人ID 16 ProviderId int64 `json:"providerId"` // 发起人ID
@@ -10,6 +10,7 @@ import ( @@ -10,6 +10,7 @@ import (
10 // DiscussionOpinion 圆桌讨论观点表 10 // DiscussionOpinion 圆桌讨论观点表
11 type DiscussionOpinion struct { 11 type DiscussionOpinion struct {
12 Id int64 // 唯一标识 12 Id int64 // 唯一标识
  13 + CompanyId int64 `json:"companyId"` // 公司ID
13 ArticleId int64 `json:"articleId"` // 文章ID 14 ArticleId int64 `json:"articleId"` // 文章ID
14 DiscussionId int64 `json:"discussionId"` // 讨论ID 15 DiscussionId int64 `json:"discussionId"` // 讨论ID
15 ProviderId int64 `json:"providerId"` // 用户ID 16 ProviderId int64 `json:"providerId"` // 用户ID
@@ -9,6 +9,7 @@ import ( @@ -9,6 +9,7 @@ import (
9 9
10 type MessageBusiness struct { 10 type MessageBusiness struct {
11 Id int64 // 唯一标识 11 Id int64 // 唯一标识
  12 + CompanyId int64 `json:"companyId"` // 公司ID
12 Type int `json:"type"` // 分类 (1回复 2点赞 3被采纳) 13 Type int `json:"type"` // 分类 (1回复 2点赞 3被采纳)
13 OptType int `json:"optType"` // 操作类型(1针对文章、1针对评论、2针对圆桌) 14 OptType int `json:"optType"` // 操作类型(1针对文章、1针对评论、2针对圆桌)
14 TriggerId int64 `json:"triggerId"` // 触发者ID 15 TriggerId int64 `json:"triggerId"` // 触发者ID
@@ -9,6 +9,7 @@ import ( @@ -9,6 +9,7 @@ import (
9 9
10 type MessageSystem struct { 10 type MessageSystem struct {
11 Id int64 // 唯一标识 11 Id int64 // 唯一标识
  12 + CompanyId int64 `json:"companyId"` // 公司ID
12 RecipientId int64 `json:"recipientId"` // 接收者ID 13 RecipientId int64 `json:"recipientId"` // 接收者ID
13 Type int `json:"type"` // 系统分类(0待定、1业务正常通知、2业务异常通知) 14 Type int `json:"type"` // 系统分类(0待定、1业务正常通知、2业务异常通知)
14 Title string `json:"title"` // 标题 15 Title string `json:"title"` // 标题
@@ -7,6 +7,7 @@ import ( @@ -7,6 +7,7 @@ import (
7 7
8 type Discussion struct { 8 type Discussion struct {
9 Id int64 // 唯一标识 9 Id int64 // 唯一标识
  10 + CompanyId int64 `json:"companyId"` // 公司ID
10 Title string `json:"title"` // 标题(不超过30个字符) 11 Title string `json:"title"` // 标题(不超过30个字符)
11 Content string `json:"content"` // 内容(不超过500个字符) 12 Content string `json:"content"` // 内容(不超过500个字符)
12 Images []Image `json:"images"` // 图片(不超过5张) 13 Images []Image `json:"images"` // 图片(不超过5张)
@@ -7,6 +7,7 @@ import ( @@ -7,6 +7,7 @@ import (
7 7
8 type DiscussionAccept struct { 8 type DiscussionAccept struct {
9 Id int64 // 唯一标识 9 Id int64 // 唯一标识
  10 + CompanyId int64 `json:"companyId"` // 公司ID
10 ArticleId int64 `json:"articleId"` // 文章ID 11 ArticleId int64 `json:"articleId"` // 文章ID
11 DiscussionId int64 `json:"discussionId"` // 讨论ID 12 DiscussionId int64 `json:"discussionId"` // 讨论ID
12 ProviderId int64 `json:"providerId"` // 发起人ID 13 ProviderId int64 `json:"providerId"` // 发起人ID
@@ -7,6 +7,7 @@ import ( @@ -7,6 +7,7 @@ import (
7 7
8 type DiscussionOpinion struct { 8 type DiscussionOpinion struct {
9 Id int64 // 唯一标识 9 Id int64 // 唯一标识
  10 + CompanyId int64 `json:"companyId"` // 公司ID
10 ArticleId int64 `json:"articleId"` // 文章ID 11 ArticleId int64 `json:"articleId"` // 文章ID
11 DiscussionId int64 `json:"discussionId"` // 讨论ID 12 DiscussionId int64 `json:"discussionId"` // 讨论ID
12 ProviderId int64 `json:"providerId"` // 用户ID 13 ProviderId int64 `json:"providerId"` // 用户ID
@@ -7,6 +7,7 @@ import ( @@ -7,6 +7,7 @@ import (
7 7
8 type MessageBusiness struct { 8 type MessageBusiness struct {
9 Id int64 // 唯一标识 9 Id int64 // 唯一标识
  10 + CompanyId int64 `json:"companyId"` // 公司ID
10 Type int `json:"type"` // 分类 (1回复 2点赞 3被采纳) 11 Type int `json:"type"` // 分类 (1回复 2点赞 3被采纳)
11 OptType int `json:"optType"` // 操作类型(1针对文章、1针对评论、2针对圆桌) 12 OptType int `json:"optType"` // 操作类型(1针对文章、1针对评论、2针对圆桌)
12 TriggerId int64 `json:"triggerId"` // 触发者ID 13 TriggerId int64 `json:"triggerId"` // 触发者ID
@@ -7,6 +7,7 @@ import ( @@ -7,6 +7,7 @@ import (
7 7
8 type MessageSystem struct { 8 type MessageSystem struct {
9 Id int64 // 唯一标识 9 Id int64 // 唯一标识
  10 + CompanyId int64 `json:"companyId"` // 公司ID
10 RecipientId int64 `json:"recipientId"` // 接收者ID 11 RecipientId int64 `json:"recipientId"` // 接收者ID
11 Type int `json:"type"` // 系统分类(0待定、1业务正常通知、2业务异常通知) 12 Type int `json:"type"` // 系统分类(0待定、1业务正常通知、2业务异常通知)
12 Title string `json:"title"` // 标题 13 Title string `json:"title"` // 标题