Merge pull request '1' (#600) from feat-IRONFANS-148-Robin into test
Reviewed-on: http://121.41.31.146:3000/wishpal_ironfan/service/pulls/600
This commit is contained in:
commit
b5e5e891cf
|
@ -51,6 +51,7 @@ type OpUpdateResp struct {
|
||||||
type OpListReq struct {
|
type OpListReq struct {
|
||||||
base.BaseRequest
|
base.BaseRequest
|
||||||
Status *int64 `json:"status"`
|
Status *int64 `json:"status"`
|
||||||
|
ApproveStatus *int64 `json:"approve_status"`
|
||||||
Offset int `json:"offset"`
|
Offset int `json:"offset"`
|
||||||
Limit int `json:"limit"`
|
Limit int `json:"limit"`
|
||||||
}
|
}
|
||||||
|
|
|
@ -2524,6 +2524,9 @@ func (m *Mongo) GetStreamerAuthApprovalDetailsList(ctx *gin.Context, req *stream
|
||||||
if req.Status != nil {
|
if req.Status != nil {
|
||||||
query["status"] = util.DerefInt64(req.Status)
|
query["status"] = util.DerefInt64(req.Status)
|
||||||
}
|
}
|
||||||
|
if req.ApproveStatus != nil {
|
||||||
|
query["approve_status"] = util.DerefInt64(req.ApproveStatus)
|
||||||
|
}
|
||||||
err := col.Find(ctx, query).Sort("-ct").Skip(int64(req.Offset)).Limit(int64(req.Limit)).All(&list)
|
err := col.Find(ctx, query).Sort("-ct").Skip(int64(req.Offset)).Limit(int64(req.Limit)).All(&list)
|
||||||
if err == qmgo.ErrNoSuchDocuments {
|
if err == qmgo.ErrNoSuchDocuments {
|
||||||
err = nil
|
err = nil
|
||||||
|
|
Loading…
Reference in New Issue