Skip to content

Commit

Permalink
Merge pull request eddycjy#105 from git-zjx/patch-1
Browse files Browse the repository at this point in the history
添加文章时缺少 CreatedBy
  • Loading branch information
eddycjy authored May 5, 2020
2 parents 2b22b57 + f4cd66a commit 6396397
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions routers/api/v1/article.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ func AddArticle(c *gin.Context) {
Content: form.Content,
CoverImageUrl: form.CoverImageUrl,
State: form.State,
CreatedBy: form.CreatedBy,
}
if err := articleService.Add(); err != nil {
appG.Response(http.StatusInternalServerError, e.ERROR_ADD_ARTICLE_FAIL, nil)
Expand Down

0 comments on commit 6396397

Please sign in to comment.