作者 yangfu

消息修改

@@ -538,8 +538,9 @@ type CommonListItem struct { @@ -538,8 +538,9 @@ type CommonListItem struct {
538 } 538 }
539 539
540 type MsgCommonListItem struct { 540 type MsgCommonListItem struct {
541 - MsgId int64 `json:"msgId"` //消息id  
542 - Chance ChanceItem `json:"chance,omitempty"` //机会详情 541 + MsgId int64 `json:"msgId"` //消息id
  542 + MsgTime int64 `json:"msgTime"` //消息时间
  543 + Chance ChanceItem `json:"chance,omitempty"` //机会详情
543 //ChanceData interface{} `json:"statisticData,omitempty"` //机会数据(是否收藏/点赞 浏览数 点赞总数 评论数)ChanceData 544 //ChanceData interface{} `json:"statisticData,omitempty"` //机会数据(是否收藏/点赞 浏览数 点赞总数 评论数)ChanceData
544 //Approve interface{} `json:"approve,omitempty"` //审核人 审核信息(时间) Approve 545 //Approve interface{} `json:"approve,omitempty"` //审核人 审核信息(时间) Approve
545 //ApproveData interface{} `json:"approveData,omitempty"` //审核数据(公开状态 评分) ApproveData 546 //ApproveData interface{} `json:"approveData,omitempty"` //审核数据(公开状态 评分) ApproveData
@@ -269,6 +269,7 @@ type MsgChanceApproveItemOrm struct { @@ -269,6 +269,7 @@ type MsgChanceApproveItemOrm struct {
269 ApproveData string `orm:"column(approve_data)"` //审核数据 269 ApproveData string `orm:"column(approve_data)"` //审核数据
270 270
271 Id int64 `orm:"column(id)"` //消息id 271 Id int64 `orm:"column(id)"` //消息id
  272 + MsgTime time.Time `orm:"column(msg_time)"`
272 ReceiveUserId int64 `orm:"column(receive_user_id)"` 273 ReceiveUserId int64 `orm:"column(receive_user_id)"`
273 CreateTime time.Time `orm:"column(create_at)"` 274 CreateTime time.Time `orm:"column(create_at)"`
274 Message string `orm:"column(message)"` 275 Message string `orm:"column(message)"`
@@ -292,6 +292,7 @@ func MsgChanceApprove(header *protocol.RequestHeader, request *protocol.MsgChanc @@ -292,6 +292,7 @@ func MsgChanceApprove(header *protocol.RequestHeader, request *protocol.MsgChanc
292 } 292 }
293 } 293 }
294 commItem.MsgId = chance.Id 294 commItem.MsgId = chance.Id
  295 + commItem.MsgTime = chance.MsgTime.Unix() * 1000
295 //审核完有审核数据 296 //审核完有审核数据
296 commItem.Message = chance.Message 297 commItem.Message = chance.Message
297 commItem.IsRead = chance.IsRead == 1 298 commItem.IsRead = chance.IsRead == 1
@@ -357,6 +358,7 @@ func MsgChanceSubmit(header *protocol.RequestHeader, request *protocol.MsgChance @@ -357,6 +358,7 @@ func MsgChanceSubmit(header *protocol.RequestHeader, request *protocol.MsgChance
357 //审核完有审核数据 358 //审核完有审核数据
358 commItem.Message = chance.Message 359 commItem.Message = chance.Message
359 commItem.MsgId = chance.Id 360 commItem.MsgId = chance.Id
  361 + commItem.MsgTime = chance.MsgTime.Unix() * 1000
360 commItem.ChanceId = chance.ChanceId 362 commItem.ChanceId = chance.ChanceId
361 rsp.List = append(rsp.List, commItem) 363 rsp.List = append(rsp.List, commItem)
362 } 364 }
@@ -431,6 +433,7 @@ func MsgChanceComment(header *protocol.RequestHeader, request *protocol.MsgChanc @@ -431,6 +433,7 @@ func MsgChanceComment(header *protocol.RequestHeader, request *protocol.MsgChanc
431 commItem.IsRead = chance.IsRead == 1 433 commItem.IsRead = chance.IsRead == 1
432 commItem.SourceType = chance.SourceType 434 commItem.SourceType = chance.SourceType
433 commItem.MsgId = chance.CommentId 435 commItem.MsgId = chance.CommentId
  436 + commItem.MsgTime = chance.CommentTime.Unix() * 1000
434 commItem.ChanceId = chance.ChanceId 437 commItem.ChanceId = chance.ChanceId
435 rsp.List = append(rsp.List, commItem) 438 rsp.List = append(rsp.List, commItem)
436 } 439 }
@@ -505,6 +508,7 @@ func MsgChanceThumbUp(header *protocol.RequestHeader, request *protocol.MsgChanc @@ -505,6 +508,7 @@ func MsgChanceThumbUp(header *protocol.RequestHeader, request *protocol.MsgChanc
505 commItem.IsRead = chance.IsRead == 1 508 commItem.IsRead = chance.IsRead == 1
506 commItem.SourceType = chance.SourceType 509 commItem.SourceType = chance.SourceType
507 commItem.MsgId = chance.CommentId 510 commItem.MsgId = chance.CommentId
  511 + commItem.MsgTime = chance.CommentTime.Unix() * 1000
508 commItem.ChanceId = chance.ChanceId 512 commItem.ChanceId = chance.ChanceId
509 rsp.List = append(rsp.List, commItem) 513 rsp.List = append(rsp.List, commItem)
510 } 514 }