作者 yangfu

消息id

... ... @@ -527,6 +527,7 @@ type CommonListItem struct {
}
type MsgCommonListItem struct {
MsgId int64 `json:"msgId"` //消息id
Chance ChanceItem `json:"chance,omitempty"` //机会详情
//ChanceData interface{} `json:"statisticData,omitempty"` //机会数据(是否收藏/点赞 浏览数 点赞总数 评论数)ChanceData
//Approve interface{} `json:"approve,omitempty"` //审核人 审核信息(时间) Approve
... ...
... ... @@ -282,6 +282,7 @@ func MsgChanceApprove(header *protocol.RequestHeader, request *protocol.MsgChanc
commItem.Score = approveData.Score
}
}
commItem.MsgId = chance.Id
//审核完有审核数据
commItem.Message = chance.Message
commItem.IsRead = chance.IsRead == 1
... ... @@ -344,6 +345,7 @@ func MsgChanceSubmit(header *protocol.RequestHeader, request *protocol.MsgChance
commItem.IsRead = chance.IsRead == 1
//审核完有审核数据
commItem.Message = chance.Message
commItem.MsgId = chance.Id
rsp.List = append(rsp.List, commItem)
}
return
... ... @@ -415,6 +417,7 @@ func MsgChanceComment(header *protocol.RequestHeader, request *protocol.MsgChanc
}
commItem.IsRead = chance.IsRead == 1
commItem.SourceType = chance.SourceType
commItem.MsgId = chance.CommentId
rsp.List = append(rsp.List, commItem)
}
return
... ... @@ -486,6 +489,7 @@ func MsgChanceThumbUp(header *protocol.RequestHeader, request *protocol.MsgChanc
}
commItem.IsRead = chance.IsRead == 1
commItem.SourceType = chance.SourceType
commItem.MsgId = chance.CommentId
rsp.List = append(rsp.List, commItem)
}
return
... ...