by Robin at 20240430
This commit is contained in:
parent
7f18d00df4
commit
aa32674ed3
|
@ -78,6 +78,7 @@ type OpListByMidReq struct {
|
|||
Offset int `json:"offset"`
|
||||
Limit int `json:"limit"`
|
||||
Sort []string
|
||||
Uid *int64
|
||||
}
|
||||
|
||||
type OpListByMidData struct {
|
||||
|
|
|
@ -4192,6 +4192,12 @@ func (m *Mongo) GetZoneMomentListByMid(ctx *gin.Context, req *zonemomentproto.Op
|
|||
"mid": req.GetBaseRequest().Mid,
|
||||
"del_flag": 0,
|
||||
}
|
||||
if req.Uid != nil {
|
||||
query["mid"] = util.DerefInt64(req.Uid)
|
||||
} else {
|
||||
query["mid"] = req.GetBaseRequest().Mid
|
||||
}
|
||||
|
||||
if req.MType != nil {
|
||||
query["m_type"] = util.DerefInt64(req.MType)
|
||||
}
|
||||
|
|
|
@ -3385,6 +3385,7 @@ func (s *Service) OpGetZoneMomentListByUserId(ctx *gin.Context, req *zonemomentp
|
|||
|
||||
list, err := _DefaultZoneMoment.OpListByMid(ctx, &zonemomentproto.OpListByMidReq{
|
||||
BaseRequest: req.BaseRequest,
|
||||
Uid: account.Mid,
|
||||
CtUpperBound: req.CtUpperBound,
|
||||
CtLowerBound: req.CtLowerBound,
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue