by Robin at 20240201; add moment audit

This commit is contained in:
Leufolium 2024-02-01 20:12:53 +08:00
parent b3809eddf5
commit 91c6864787
1 changed files with 13 additions and 0 deletions

View File

@ -1580,6 +1580,13 @@ func (s *Service) ApiCreateMoment(ctx *gin.Context, req *momentproto.ApiCreateRe
ec = errcode.ErrCodeMomentSrvFail
return
}
// 添加审核任务
imageaudittasks := s.CreateMomentImageAudit(ctx, req.Moment)
textaudittasks := s.CreateMomentTextAudit(ctx, req.Moment)
imageaudit.AddTasks(imageaudittasks)
textaudit.AddTasks(textaudittasks)
return
}
@ -1605,6 +1612,12 @@ func (s *Service) ApiUpdateMoment(ctx *gin.Context, req *momentproto.ApiUpdateRe
ec = errcode.ErrCodeMomentSrvFail
return
}
// 添加审核任务
imageaudittasks := s.CreateMomentImageAudit(ctx, req.Moment)
textaudittasks := s.CreateMomentTextAudit(ctx, req.Moment)
imageaudit.AddTasks(imageaudittasks)
textaudit.AddTasks(textaudittasks)
return
}