by Robin at 20240711
This commit is contained in:
parent
739b47f032
commit
f03f172a8d
|
@ -2471,7 +2471,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)
|
||||
|
@ -2488,7 +2488,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)
|
||||
|
|
|
@ -484,6 +484,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