作者 yangfu

消息id

@@ -527,6 +527,7 @@ type CommonListItem struct { @@ -527,6 +527,7 @@ type CommonListItem struct {
527 } 527 }
528 528
529 type MsgCommonListItem struct { 529 type MsgCommonListItem struct {
  530 + MsgId int64 `json:"msgId"` //消息id
530 Chance ChanceItem `json:"chance,omitempty"` //机会详情 531 Chance ChanceItem `json:"chance,omitempty"` //机会详情
531 //ChanceData interface{} `json:"statisticData,omitempty"` //机会数据(是否收藏/点赞 浏览数 点赞总数 评论数)ChanceData 532 //ChanceData interface{} `json:"statisticData,omitempty"` //机会数据(是否收藏/点赞 浏览数 点赞总数 评论数)ChanceData
532 //Approve interface{} `json:"approve,omitempty"` //审核人 审核信息(时间) Approve 533 //Approve interface{} `json:"approve,omitempty"` //审核人 审核信息(时间) Approve
@@ -282,6 +282,7 @@ func MsgChanceApprove(header *protocol.RequestHeader, request *protocol.MsgChanc @@ -282,6 +282,7 @@ func MsgChanceApprove(header *protocol.RequestHeader, request *protocol.MsgChanc
282 commItem.Score = approveData.Score 282 commItem.Score = approveData.Score
283 } 283 }
284 } 284 }
  285 + commItem.MsgId = chance.Id
285 //审核完有审核数据 286 //审核完有审核数据
286 commItem.Message = chance.Message 287 commItem.Message = chance.Message
287 commItem.IsRead = chance.IsRead == 1 288 commItem.IsRead = chance.IsRead == 1
@@ -344,6 +345,7 @@ func MsgChanceSubmit(header *protocol.RequestHeader, request *protocol.MsgChance @@ -344,6 +345,7 @@ func MsgChanceSubmit(header *protocol.RequestHeader, request *protocol.MsgChance
344 commItem.IsRead = chance.IsRead == 1 345 commItem.IsRead = chance.IsRead == 1
345 //审核完有审核数据 346 //审核完有审核数据
346 commItem.Message = chance.Message 347 commItem.Message = chance.Message
  348 + commItem.MsgId = chance.Id
347 rsp.List = append(rsp.List, commItem) 349 rsp.List = append(rsp.List, commItem)
348 } 350 }
349 return 351 return
@@ -415,6 +417,7 @@ func MsgChanceComment(header *protocol.RequestHeader, request *protocol.MsgChanc @@ -415,6 +417,7 @@ func MsgChanceComment(header *protocol.RequestHeader, request *protocol.MsgChanc
415 } 417 }
416 commItem.IsRead = chance.IsRead == 1 418 commItem.IsRead = chance.IsRead == 1
417 commItem.SourceType = chance.SourceType 419 commItem.SourceType = chance.SourceType
  420 + commItem.MsgId = chance.CommentId
418 rsp.List = append(rsp.List, commItem) 421 rsp.List = append(rsp.List, commItem)
419 } 422 }
420 return 423 return
@@ -486,6 +489,7 @@ func MsgChanceThumbUp(header *protocol.RequestHeader, request *protocol.MsgChanc @@ -486,6 +489,7 @@ func MsgChanceThumbUp(header *protocol.RequestHeader, request *protocol.MsgChanc
486 } 489 }
487 commItem.IsRead = chance.IsRead == 1 490 commItem.IsRead = chance.IsRead == 1
488 commItem.SourceType = chance.SourceType 491 commItem.SourceType = chance.SourceType
  492 + commItem.MsgId = chance.CommentId
489 rsp.List = append(rsp.List, commItem) 493 rsp.List = append(rsp.List, commItem)
490 } 494 }
491 return 495 return