...
|
...
|
@@ -25,7 +25,7 @@ func SiftingPool(header *protocol.RequestHeader, request *protocol.SiftingPoolRe |
|
|
if request.Uid != 0 {
|
|
|
header.UserId = request.Uid
|
|
|
}
|
|
|
if rsp.Total, err = models.GetSiftingChance(header.UserId, request.SubmitStatus, request.SiftedStatus, request.Offset(), request.PageSize, &ormItems); err != nil {
|
|
|
if rsp.Total, err = models.GetSiftingChance(header.UserId, request.SubmitStatus, protocol.Waiting, request.Offset(), request.PageSize, &ormItems); err != nil {
|
|
|
if err == orm.ErrNoRows {
|
|
|
err = nil
|
|
|
return
|
...
|
...
|
@@ -37,6 +37,8 @@ func SiftingPool(header *protocol.RequestHeader, request *protocol.SiftingPoolRe |
|
|
ormItem := ormItems[i]
|
|
|
commItem := agg.NewCommonListItem(header, ormItem.CommChanceItemOrm)
|
|
|
commItem.Chance.CreateTime = ormItem.ChanceApproveTime.Unix() * 1000
|
|
|
commItem.Chance.UpdateTime = 0
|
|
|
commItem.Chance.ApproveTime = 0
|
|
|
if request.SubmitStatus == protocol.Submited {
|
|
|
commItem.Chance.CreateTime = ormItem.SubmitCheckTime.Unix() * 1000
|
|
|
}
|
...
|
...
|
@@ -76,6 +78,8 @@ func SiftingResults(header *protocol.RequestHeader, request *protocol.SiftingRes |
|
|
ormItem := ormItems[i]
|
|
|
commItem := agg.NewCommonListItem(header, ormItem.CommChanceItemOrm)
|
|
|
commItem.Chance.CreateTime = ormItem.CheckTime.Unix() * 1000
|
|
|
commItem.Chance.UpdateTime = 0
|
|
|
commItem.Chance.ApproveTime = 0
|
|
|
|
|
|
//点赞评论数据
|
|
|
var chanceData = protocol.ChanceData{
|
...
|
...
|
|