正在显示
3 个修改的文件
包含
3 行增加
和
0 行删除
| @@ -356,6 +356,7 @@ type ( | @@ -356,6 +356,7 @@ type ( | ||
| 356 | CountRead int `json:"countRead"` // 浏览数量 | 356 | CountRead int `json:"countRead"` // 浏览数量 |
| 357 | Show int `json:"show"` // 评论的展示状态(0显示、1不显示) | 357 | Show int `json:"show"` // 评论的展示状态(0显示、1不显示) |
| 358 | Tags []ArticleTagItem `json:"tags"` //标签 | 358 | Tags []ArticleTagItem `json:"tags"` //标签 |
| 359 | + TargetUser int `json:"targetUser"` //分发方式 [0分发给所有人、1分发给指定的人] | ||
| 359 | } | 360 | } |
| 360 | ) | 361 | ) |
| 361 | 362 |
| @@ -65,6 +65,7 @@ func (l *SystemGetArticleLogic) SystemGetArticle(req *types.SystemArticleGetRequ | @@ -65,6 +65,7 @@ func (l *SystemGetArticleLogic) SystemGetArticle(req *types.SystemArticleGetRequ | ||
| 65 | CountRead: article.CountRead, | 65 | CountRead: article.CountRead, |
| 66 | Show: int(article.Show), | 66 | Show: int(article.Show), |
| 67 | Tags: make([]types.ArticleTagItem, 0), | 67 | Tags: make([]types.ArticleTagItem, 0), |
| 68 | + TargetUser: int(article.TargetUser), | ||
| 68 | } | 69 | } |
| 69 | //标签 | 70 | //标签 |
| 70 | if len(article.Tags) > 0 { | 71 | if len(article.Tags) > 0 { |
| @@ -970,6 +970,7 @@ type SystemArticleGetResponse struct { | @@ -970,6 +970,7 @@ type SystemArticleGetResponse struct { | ||
| 970 | CountRead int `json:"countRead"` // 浏览数量 | 970 | CountRead int `json:"countRead"` // 浏览数量 |
| 971 | Show int `json:"show"` // 评论的展示状态(0显示、1不显示) | 971 | Show int `json:"show"` // 评论的展示状态(0显示、1不显示) |
| 972 | Tags []ArticleTagItem `json:"tags"` //标签 | 972 | Tags []ArticleTagItem `json:"tags"` //标签 |
| 973 | + TargetUser int `json:"targetUser"` //分发方式 [0分发给所有人、1分发给指定的人] | ||
| 973 | } | 974 | } |
| 974 | 975 | ||
| 975 | type SystemArticleSearchRequest struct { | 976 | type SystemArticleSearchRequest struct { |
-
请 注册 或 登录 后发表评论