This commit is contained in:
parent
cdcf23db57
commit
518b494873
|
@ -50,9 +50,10 @@ type OpUpdateResp struct {
|
||||||
// op 列表
|
// op 列表
|
||||||
type OpListReq struct {
|
type OpListReq struct {
|
||||||
base.BaseRequest
|
base.BaseRequest
|
||||||
Status *int64 `json:"status"`
|
Status *int64 `json:"status"`
|
||||||
Offset int `json:"offset"`
|
ApproveStatus *int64 `json:"approve_status"`
|
||||||
Limit int `json:"limit"`
|
Offset int `json:"offset"`
|
||||||
|
Limit int `json:"limit"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type OpListData struct {
|
type OpListData struct {
|
||||||
|
|
|
@ -2516,6 +2516,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