作者 yangfu

增加审核日志

@@ -556,6 +556,7 @@ type ThumbUpData struct { @@ -556,6 +556,7 @@ type ThumbUpData struct {
556 Id int64 `json:"id"` 556 Id int64 `json:"id"`
557 Content string `json:"content"` //点赞内容 557 Content string `json:"content"` //点赞内容
558 ThumbUpTime int64 `json:"thumbUpTime"` //收藏时间 558 ThumbUpTime int64 `json:"thumbUpTime"` //收藏时间
  559 + IsRead bool `json:"is_read"` //是否已读
559 } 560 }
560 561
561 //评论内容 562 //评论内容
@@ -563,4 +564,5 @@ type CommentData struct { @@ -563,4 +564,5 @@ type CommentData struct {
563 Id int64 `json:"id"` //评论编号 564 Id int64 `json:"id"` //评论编号
564 Content string `json:"content"` //评论内容 565 Content string `json:"content"` //评论内容
565 CommentTime int64 `json:"commentTime"` //评论时间 566 CommentTime int64 `json:"commentTime"` //评论时间
  567 + IsRead bool `json:"is_read"` //是否已读
566 } 568 }
@@ -160,7 +160,7 @@ END: @@ -160,7 +160,7 @@ END:
160 agg.DeleteSendedMsg(sourceId, request.SourceType, userId, protocol.MsgTypeThumbUp) 160 agg.DeleteSendedMsg(sourceId, request.SourceType, userId, protocol.MsgTypeThumbUp)
161 } else { 161 } else {
162 //发送点赞消息 162 //发送点赞消息
163 - agg.SendMsg(userId, fmt.Sprintf("%v", userId), header.CompanyId, request.Id, 1, message, protocol.MsgTypeThumbUp) 163 + agg.SendMsg(userId, fmt.Sprintf("%v", userId), header.CompanyId, request.Id, request.SourceType, message, protocol.MsgTypeThumbUp)
164 } 164 }
165 if !utils.ExecuteSqlByRoll(true, agg.GetIncrementSql(table, "zan_total", incre, request.Id)) { 165 if !utils.ExecuteSqlByRoll(true, agg.GetIncrementSql(table, "zan_total", incre, request.Id)) {
166 // 166 //