by Robin at 20240704

This commit is contained in:
Leufolium 2024-07-04 09:26:52 +08:00
parent 8822343f44
commit ee862c8a2d
3 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,6 @@ import (
// api 创建
func (p *ApiCreateReq) ProvideNotNullValue() (params []*validator.JsonParam) {
params = make([]*validator.JsonParam, 0)
params = append(params, validator.NewInt64PtrParam("请确认用户的Mid", p.StreamerAuthApprovalBasic.Mid))
params = append(params, validator.NewStructPtrParam("请设置您的头像", p.Avatar))
params = append(params, validator.NewStringPtrParam("请输入您的联系方式", p.ContactWay))
params = append(params, validator.NewStructPtrParam("请提供您的账号截图", p.AccountShot))

View File

@ -7,7 +7,6 @@ import (
// op 创建
func (p *OpCreateReq) ProvideNotNullValue() (params []*validator.JsonParam) {
params = make([]*validator.JsonParam, 0)
params = append(params, validator.NewInt64PtrParam("请确认用户的Mid", p.StreamerAuthApprovalBasic.Mid))
params = append(params, validator.NewStructPtrParam("请设置您的头像", p.Avatar))
params = append(params, validator.NewStringPtrParam("请输入您的联系方式", p.ContactWay))
params = append(params, validator.NewStructPtrParam("请提供您的账号截图", p.AccountShot))

View File

@ -1051,6 +1051,7 @@ func (s *Service) ApiCreateStreamerAuthApprovalBasic(ctx *gin.Context, req *stre
return
}
req.StreamerAuthApprovalBasic.Mid = goproto.Int64(req.BaseRequest.Mid)
err := _DefaultStreamerAuthApprovalBasic.OpCreate(ctx, &streamerauthapprovalbasicproto.OpCreateReq{
BaseRequest: req.BaseRequest,
StreamerAuthApprovalBasic: req.StreamerAuthApprovalBasic,
@ -1118,6 +1119,7 @@ func (s *Service) ApiCreateStreamerAuthApprovalDetails(ctx *gin.Context, req *st
return
}
req.StreamerAuthApprovalDetails.Mid = goproto.Int64(req.BaseRequest.Mid)
err := _DefaultStreamerAuthApprovalDetails.OpCreate(ctx, &streamerauthapprovaldetailsproto.OpCreateReq{
BaseRequest: req.BaseRequest,
StreamerAuthApprovalDetails: req.StreamerAuthApprovalDetails,