作者 yangfu

消息修改

... ... @@ -538,8 +538,9 @@ type CommonListItem struct {
}
type MsgCommonListItem struct {
MsgId int64 `json:"msgId"` //消息id
Chance ChanceItem `json:"chance,omitempty"` //机会详情
MsgId int64 `json:"msgId"` //消息id
MsgTime int64 `json:"msgTime"` //消息时间
Chance ChanceItem `json:"chance,omitempty"` //机会详情
//ChanceData interface{} `json:"statisticData,omitempty"` //机会数据(是否收藏/点赞 浏览数 点赞总数 评论数)ChanceData
//Approve interface{} `json:"approve,omitempty"` //审核人 审核信息(时间) Approve
//ApproveData interface{} `json:"approveData,omitempty"` //审核数据(公开状态 评分) ApproveData
... ...
... ... @@ -269,6 +269,7 @@ type MsgChanceApproveItemOrm struct {
ApproveData string `orm:"column(approve_data)"` //审核数据
Id int64 `orm:"column(id)"` //消息id
MsgTime time.Time `orm:"column(msg_time)"`
ReceiveUserId int64 `orm:"column(receive_user_id)"`
CreateTime time.Time `orm:"column(create_at)"`
Message string `orm:"column(message)"`
... ...
... ... @@ -292,6 +292,7 @@ func MsgChanceApprove(header *protocol.RequestHeader, request *protocol.MsgChanc
}
}
commItem.MsgId = chance.Id
commItem.MsgTime = chance.MsgTime.Unix() * 1000
//审核完有审核数据
commItem.Message = chance.Message
commItem.IsRead = chance.IsRead == 1
... ... @@ -357,6 +358,7 @@ func MsgChanceSubmit(header *protocol.RequestHeader, request *protocol.MsgChance
//审核完有审核数据
commItem.Message = chance.Message
commItem.MsgId = chance.Id
commItem.MsgTime = chance.MsgTime.Unix() * 1000
commItem.ChanceId = chance.ChanceId
rsp.List = append(rsp.List, commItem)
}
... ... @@ -431,6 +433,7 @@ func MsgChanceComment(header *protocol.RequestHeader, request *protocol.MsgChanc
commItem.IsRead = chance.IsRead == 1
commItem.SourceType = chance.SourceType
commItem.MsgId = chance.CommentId
commItem.MsgTime = chance.CommentTime.Unix() * 1000
commItem.ChanceId = chance.ChanceId
rsp.List = append(rsp.List, commItem)
}
... ... @@ -505,6 +508,7 @@ func MsgChanceThumbUp(header *protocol.RequestHeader, request *protocol.MsgChanc
commItem.IsRead = chance.IsRead == 1
commItem.SourceType = chance.SourceType
commItem.MsgId = chance.CommentId
commItem.MsgTime = chance.CommentTime.Unix() * 1000
commItem.ChanceId = chance.ChanceId
rsp.List = append(rsp.List, commItem)
}
... ...