正在显示
1 个修改的文件
包含
9 行增加
和
8 行删除
@@ -156,14 +156,15 @@ func (l *MiniCreateArticleLogic) MiniCreateArticle(req *types.MiniArticleCreateR | @@ -156,14 +156,15 @@ func (l *MiniCreateArticleLogic) MiniCreateArticle(req *types.MiniArticleCreateR | ||
156 | //} | 156 | //} |
157 | 157 | ||
158 | newArticle := &domain.Article{ | 158 | newArticle := &domain.Article{ |
159 | - Id: 0, | ||
160 | - CompanyId: author.CompanyId, | ||
161 | - AuthorId: author.Id, | ||
162 | - Author: articleAuthor, | ||
163 | - Title: req.Title, | ||
164 | - Images: images, | ||
165 | - WhoRead: whoRead, | ||
166 | - WhoReview: whoReview, | 159 | + Id: 0, |
160 | + CompanyId: author.CompanyId, | ||
161 | + AuthorId: author.Id, | ||
162 | + Author: articleAuthor, | ||
163 | + Title: req.Title, | ||
164 | + Images: images, | ||
165 | + Attachments: NewDomainAttachments(req.Attachments), | ||
166 | + WhoRead: whoRead, | ||
167 | + WhoReview: whoReview, | ||
167 | Location: domain.Location{ | 168 | Location: domain.Location{ |
168 | Longitude: req.Location.Longitude, | 169 | Longitude: req.Location.Longitude, |
169 | Latitude: req.Location.Latitude, | 170 | Latitude: req.Location.Latitude, |
-
请 注册 或 登录 后发表评论