From 91c6864787b6fa0ba257e5eb18354777242fe43f Mon Sep 17 00:00:00 2001 From: Leufolium Date: Thu, 1 Feb 2024 20:12:53 +0800 Subject: [PATCH] by Robin at 20240201; add moment audit --- app/mix/service/apiservice.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/app/mix/service/apiservice.go b/app/mix/service/apiservice.go index dc05a49d..57b060a2 100644 --- a/app/mix/service/apiservice.go +++ b/app/mix/service/apiservice.go @@ -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 }