by Robin at 20240717

This commit is contained in:
Leufolium 2024-07-17 17:10:04 +08:00
parent 30542411c4
commit 441433e65c
1 changed files with 15 additions and 0 deletions

View File

@ -1167,6 +1167,21 @@ func (s *Service) ApiCreateStreamerAuthApprovalDetails(ctx *gin.Context, req *st
}
req.StreamerAuthApprovalDetails.Mid = goproto.Int64(req.BaseRequest.Mid)
initAuditComp := &dbstruct.AuditComponent{
AuditStatus: goproto.Int64(consts.ImageAudit_Created),
AuditOpinion: goproto.String("机审中"),
}
req.StreamerAuthApprovalDetails.CoverAudit = initAuditComp
req.StreamerAuthApprovalDetails.AlbumAudit = initAuditComp
initAuditComp.AuditStatus = goproto.Int64(consts.TextAudit_Created)
req.StreamerAuthApprovalDetails.BioAudit = initAuditComp
req.StreamerAuthApprovalDetails.AutoResponseMessageAudit = initAuditComp
initAuditComp.AuditStatus = goproto.Int64(consts.VideoModeration_Created)
req.StreamerAuthApprovalDetails.ShortsAudit = initAuditComp
err := _DefaultStreamerAuthApprovalDetails.OpCreate(ctx, &streamerauthapprovaldetailsproto.OpCreateReq{
BaseRequest: req.BaseRequest,
StreamerAuthApprovalDetails: req.StreamerAuthApprovalDetails,