Merge pull request 'by Robin at 20240711' (#612) from feat-IRONFANS-148-Robin into test
Reviewed-on: http://121.41.31.146:3000/wishpal_ironfan/service/pulls/612
This commit is contained in:
commit
2298b4f4e1
|
@ -2479,7 +2479,7 @@ func (m *Mongo) GetStreamerAuthApprovalBasicHisList(ctx *gin.Context, req *strea
|
|||
list := make([]*dbstruct.StreamerAuthApprovalBasic, 0)
|
||||
col := m.getColStreamerAuthApprovalBasicHis()
|
||||
query := qmgo.M{
|
||||
"del_flag": 0,
|
||||
"del_flag": consts.Deleted,
|
||||
}
|
||||
if req.ApproveStatus != nil {
|
||||
query["approve_status"] = util.DerefInt64(req.ApproveStatus)
|
||||
|
@ -2496,7 +2496,7 @@ func (m *Mongo) GetStreamerAuthApprovalBasicHisListByMid(ctx *gin.Context, req *
|
|||
list := make([]*dbstruct.StreamerAuthApprovalBasic, 0)
|
||||
col := m.getColStreamerAuthApprovalBasicHis()
|
||||
query := qmgo.M{
|
||||
"del_flag": 0,
|
||||
"del_flag": consts.Deleted,
|
||||
}
|
||||
if req.ApproveStatus != nil {
|
||||
query["approve_status"] = util.DerefInt64(req.ApproveStatus)
|
||||
|
|
|
@ -486,6 +486,8 @@ func (s *Service) ApiCreateStreamerAuthApprovalBasicBusinessValidate(ctx *gin.Co
|
|||
ec = errcode.ErrCodeStreamerAuthApprovalSrvOk
|
||||
|
||||
result := businessvalidator.NewAuthBusinessValidator(ctx, req).
|
||||
QueryAccount(_DefaultAccount.OpListByMid).
|
||||
EnsureIsThisRole(consts.Streamer).
|
||||
EnsureMediaIsSuccessfullyUploaded(req.StreamerAuthApprovalBasic.Avatar).
|
||||
EnsureMediaIsSuccessfullyUploaded(req.StreamerAuthApprovalBasic.AccountShot).
|
||||
Validate().
|
||||
|
|
|
@ -102,6 +102,7 @@ func (p *StreamerAuthApprovalBasic) OpDeleteBatch(ctx *gin.Context, ids []int64)
|
|||
//2.原有审核申请标记删除后转存到历史表
|
||||
for _, streamerauthapprovalbasic := range list {
|
||||
streamerauthapprovalbasic.DelFlag = goproto.Int64(consts.Deleted)
|
||||
streamerauthapprovalbasic.ApproveStatus = goproto.Int64(consts.StreamerAuthApprovalBasicApprove_Rejected)
|
||||
}
|
||||
err = p.store.CreateBatchStreamerAuthApprovalBasicHis(ctx, list)
|
||||
if err != nil {
|
||||
|
|
|
@ -134,6 +134,8 @@ func (p *StreamerAuthApprovalDetails) OpDeleteBatchByMids(ctx *gin.Context, mids
|
|||
//2.原有审核申请标记删除后转存到历史表
|
||||
for _, streamerauthapprovaldetails := range list {
|
||||
streamerauthapprovaldetails.DelFlag = goproto.Int64(consts.Deleted)
|
||||
streamerauthapprovaldetails.ApproveStatus = goproto.Int64(consts.StreamerAuthApprovalDetailsApprove_Rejected)
|
||||
streamerauthapprovaldetails.Status = goproto.Int64(consts.StreamerAuthApprovalDetails_Rejected)
|
||||
}
|
||||
err = p.store.CreateBatchStreamerAuthApprovalDetailsHis(ctx, list)
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in New Issue