ziwen 2 yıl önce
ebeveyn
işleme
0268b13f8c
2 değiştirilmiş dosya ile 14 ekleme ve 12 silme
  1. 13 12
      controllers/user.go
  2. 1 0
      models/article_comment.go

+ 13 - 12
controllers/user.go

@@ -873,18 +873,19 @@ func (this *UserController) CommnetList() {
 
 	for _, comment := range commentlist {
 		item := models.CygxArticleCommentResp{
-			Id:          comment.Id,
-			UserId:      comment.UserId,
-			ArticleId:   comment.ArticleId,
-			IndustryId:  comment.IndustryId,
-			ActivityId:  comment.ActivityId,
-			CreateTime:  comment.CreateTime.Format(utils.FormatDateTime),
-			Mobile:      comment.Mobile,
-			Email:       comment.Email,
-			CompanyId:   comment.CompanyId,
-			CompanyName: comment.CompanyName,
-			Content:     comment.Content,
-			Title:       comment.Title,
+			Id:                comment.Id,
+			UserId:            comment.UserId,
+			ArticleId:         comment.ArticleId,
+			IndustryId:        comment.IndustryId,
+			ActivityId:        comment.ActivityId,
+			VideoId:           comment.VideoId,
+			CreateTime:        comment.CreateTime.Format(utils.FormatDateTime),
+			Mobile:            comment.Mobile,
+			Email:             comment.Email,
+			CompanyId:         comment.CompanyId,
+			CompanyName:       comment.CompanyName,
+			Content:           comment.Content,
+			Title:             comment.Title,
 		}
 		if comment.ArticleId > 0 {
 			item.RedirectType = 1

+ 1 - 0
models/article_comment.go

@@ -71,6 +71,7 @@ type CygxArticleCommentResp struct {
 	IndustryId        int    `description:"产业id"`
 	ActivityId        int    `description:"活动id"`
 	ChartPermissionId int    `description:"权限id"`
+	VideoId           int    `description:"视频id"`
 	CreateTime        string `description:"创建时间"`
 	Mobile            string `description:"手机号"`
 	Email             string `description:"邮箱"`