...
|
...
|
@@ -1388,6 +1388,22 @@ func ChanceDetail(header *protocol.RequestHeader, request *protocol.ChanceDetail |
|
|
rsp.ApproveProcess = approveProcess.ApproveProcess
|
|
|
rsp.ApproveAccess = approveProcess.ApproveAccess
|
|
|
}
|
|
|
|
|
|
{
|
|
|
var flag int
|
|
|
var chanceData = protocol.ChanceData{
|
|
|
ThumbsUpTotal: chance.ZanTotal,
|
|
|
CommentTotal: chance.CommentTotal,
|
|
|
PageViewTotal: chance.ViewTotal,
|
|
|
}
|
|
|
if flag, err = agg.GetChanceMarkData(header.UserId, header.CompanyId, chance.Id); err != nil {
|
|
|
log.Error(err)
|
|
|
return
|
|
|
}
|
|
|
chanceData.IsThumbsUp = (flag & protocol.MarkFlagZan) == protocol.MarkFlagZan
|
|
|
chanceData.IsCollect = (flag & protocol.MarkFlagCollect) == protocol.MarkFlagCollect
|
|
|
rsp.StatisticData = chanceData
|
|
|
}
|
|
|
return
|
|
|
}
|
|
|
|
...
|
...
|
|