作者 yangfu

feat: 附件

@@ -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,