From 279263fd54bbc62535281c587bbde5c0e1a71492 Mon Sep 17 00:00:00 2001 From: Leufolium Date: Thu, 7 Mar 2024 01:49:37 +0800 Subject: [PATCH] d --- app/mix/service/service.go | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/app/mix/service/service.go b/app/mix/service/service.go index be24447f..5010c257 100644 --- a/app/mix/service/service.go +++ b/app/mix/service/service.go @@ -9,6 +9,7 @@ import ( "service/api/errcode" "service/api/errs" accountproto "service/api/proto/account/proto" + account_cancellationproto "service/api/proto/account_cancellation/proto" accountrelationproto "service/api/proto/accountrelation/proto" appconfigproto "service/api/proto/app_config/proto" bannerproto "service/api/proto/banner/proto" @@ -100,6 +101,7 @@ var ( _DefaultXxlJob *logic.XxlJob _DefaultAppConfig *logic.AppConfig _DefaultMomentAuditTask *logic.MomentAuditTask + _DefaultAccountCancellation *logic.AccountCancellation ) type Service struct { @@ -176,6 +178,7 @@ func (s *Service) Init(c any) (err error) { _DefaultXxlJob = logic.NewXxlJob(store, cfg.XxlJob) _DefaultAppConfig = logic.NewAppConfig(store) _DefaultMomentAuditTask = logic.NewMomentAuditTask(store) + _DefaultAccountCancellation = logic.NewAccountCancellation(store) return } @@ -2883,3 +2886,15 @@ func (s *Service) OpGetAppConfigListByKey(ctx *gin.Context, req *appconfigproto. } return } + +// AccountCancellation +func (s *Service) OpGetAccountCancellationList(ctx *gin.Context, req *account_cancellationproto.OpListReq) (list []*dbstruct.AccountCancellation, ec errcode.ErrCode) { + ec = errcode.ErrCodeAccountCancellationSrvOk + list, err := _DefaultAccountCancellation.OpList(ctx, req) + if err != nil { + logger.Error("OpGetAccountCancellationList fail, req: %v, err: %v", util.ToJson(req), err) + ec = errcode.ErrCodeAccountCancellationSrvFail + return + } + return +}