Merge pull request '1' (#599) from feat-IRONFANS-148-Robin into test

Reviewed-on: http://121.41.31.146:3000/wishpal_ironfan/service/pulls/599
This commit is contained in:
chenhao 2024-07-05 16:55:24 +08:00
commit 8356d54b3e
2 changed files with 5 additions and 5 deletions

View File

@ -50,7 +50,7 @@ type OpUpdateResp struct {
// op 列表 // op 列表
type OpListReq struct { type OpListReq struct {
base.BaseRequest base.BaseRequest
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"`
} }

View File

@ -2386,8 +2386,8 @@ func (m *Mongo) GetStreamerAuthApprovalBasicList(ctx *gin.Context, req *streamer
query := qmgo.M{ query := qmgo.M{
"del_flag": 0, "del_flag": 0,
} }
if req.Status != nil { if req.ApproveStatus != nil {
query["status"] = util.DerefInt64(req.Status) 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 {