diff --git a/api/proto/streamerauthapprovalbasic/proto/streamerauthapproval_op.go b/api/proto/streamerauthapprovalbasic/proto/streamerauthapproval_op.go index 03cccfb6..ebc688c8 100644 --- a/api/proto/streamerauthapprovalbasic/proto/streamerauthapproval_op.go +++ b/api/proto/streamerauthapprovalbasic/proto/streamerauthapproval_op.go @@ -50,9 +50,9 @@ type OpUpdateResp struct { // op 列表 type OpListReq struct { base.BaseRequest - Status *int64 `json:"status"` - Offset int `json:"offset"` - Limit int `json:"limit"` + ApproveStatus *int64 `json:"approve_status"` + Offset int `json:"offset"` + Limit int `json:"limit"` } type OpListData struct { diff --git a/app/mix/dao/mongo.go b/app/mix/dao/mongo.go index 81672d20..7a3cd8a8 100644 --- a/app/mix/dao/mongo.go +++ b/app/mix/dao/mongo.go @@ -2386,8 +2386,8 @@ func (m *Mongo) GetStreamerAuthApprovalBasicList(ctx *gin.Context, req *streamer query := qmgo.M{ "del_flag": 0, } - if req.Status != nil { - 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) if err == qmgo.ErrNoSuchDocuments {