Merge pull request 'by Robin at 20240731' (#666) from feat-IRONFANS-176-Robin into test

Reviewed-on: http://121.41.31.146:3000/wishpal_ironfan/service/pulls/666
This commit is contained in:
chenhao 2024-07-31 16:09:06 +08:00
commit 6bafe7e390
3 changed files with 6 additions and 0 deletions

View File

@ -119,6 +119,7 @@ func (s *Service) CreateStreamerAuthApprovalDetailsImageAudit(ctx *gin.Context,
if newStreamerAuthApprovalDetails.Cover != nil && len(newStreamerAuthApprovalDetails.Cover.GetImageIds()) > 0 {
tasks = append(tasks, &dbstruct.ImageAuditTask{
Mid: newStreamerAuthApprovalDetails.Mid,
RouteUrl: goproto.String(ctx.Request.URL.Path),
AssociativeDatabase: goproto.String("streamer_auth_approval_details"),
AssociativeTableName: goproto.String("streamer_auth_approval_details"),
@ -132,6 +133,7 @@ func (s *Service) CreateStreamerAuthApprovalDetailsImageAudit(ctx *gin.Context,
if newStreamerAuthApprovalDetails.Album != nil && len(newStreamerAuthApprovalDetails.Album.GetImageIds()) > 0 {
tasks = append(tasks, &dbstruct.ImageAuditTask{
Mid: newStreamerAuthApprovalDetails.Mid,
RouteUrl: goproto.String(ctx.Request.URL.Path),
AssociativeDatabase: goproto.String("streamer_auth_approval_details"),
AssociativeTableName: goproto.String("streamer_auth_approval_details"),

View File

@ -121,6 +121,7 @@ func (s *Service) CreateStreamerAuthApprovalDetailsTextAudit(ctx *gin.Context, n
if newStreamerAuthApprovalDetails.Bio != nil {
tasks = append(tasks, &dbstruct.TextAuditTask{
Mid: newStreamerAuthApprovalDetails.Mid,
RouteUrl: goproto.String(ctx.Request.URL.Path),
AssociativeDatabase: goproto.String("streamer_auth_approval_details"),
AssociativeTableName: goproto.String("streamer_auth_approval_details"),
@ -134,6 +135,7 @@ func (s *Service) CreateStreamerAuthApprovalDetailsTextAudit(ctx *gin.Context, n
if newStreamerAuthApprovalDetails.AutoResponseMessage != nil {
tasks = append(tasks, &dbstruct.TextAuditTask{
Mid: newStreamerAuthApprovalDetails.Mid,
RouteUrl: goproto.String(ctx.Request.URL.Path),
AssociativeDatabase: goproto.String("streamer_auth_approval_details"),
AssociativeTableName: goproto.String("streamer_auth_approval_details"),
@ -155,6 +157,7 @@ func (s *Service) CreateZoneTextAudit(ctx *gin.Context, newZone *dbstruct.Zone)
if newZone.Profile != nil {
tasks = append(tasks, &dbstruct.TextAuditTask{
Mid: newZone.Mid,
RouteUrl: goproto.String(ctx.Request.URL.Path),
AssociativeDatabase: goproto.String("zone"),
AssociativeTableName: goproto.String("zone"),

View File

@ -79,6 +79,7 @@ func (s *Service) CreateStreamerAuthApprovalDetailsVideoModeration(ctx *gin.Cont
if newStreamerAuthApprovalDetails.Shorts != nil && len(newStreamerAuthApprovalDetails.Shorts.GetVideoIds()) > 0 {
tasks = append(tasks, &dbstruct.VideoModerationTask{
Mid: newStreamerAuthApprovalDetails.Mid,
RouteUrl: goproto.String(ctx.Request.URL.Path),
AssociativeDatabase: goproto.String("streamer_auth_approval_details"),
AssociativeTableName: goproto.String("streamer_auth_approval_details"),