From cb3eebbd84e1e9d9eead6c1068740c78b0ade258 Mon Sep 17 00:00:00 2001 From: Lansong <62054128+Lansongxx@users.noreply.github.com> Date: Wed, 7 Feb 2024 22:58:47 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=E5=8F=82=E6=95=B0?= =?UTF-8?q?=E5=90=8D=E9=94=99=E8=AF=AF=20(#5)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- biz/adaptor/server.go | 4 ++-- biz/application/service/system.go | 4 ++-- go.mod | 2 +- go.sum | 2 ++ 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/biz/adaptor/server.go b/biz/adaptor/server.go index 9cb1fd5..c68f6a8 100644 --- a/biz/adaptor/server.go +++ b/biz/adaptor/server.go @@ -13,8 +13,8 @@ type SystemServerImpl struct { SystemService service.SystemService } -func (s *SystemServerImpl) UpateNotifications(ctx context.Context, req *system.UpdateNotificationsReq) (resp *system.UpdateNotificationsResp, err error) { - return s.SystemService.UpateNotifications(ctx, req) +func (s *SystemServerImpl) UpdateNotifications(ctx context.Context, req *system.UpdateNotificationsReq) (resp *system.UpdateNotificationsResp, err error) { + return s.SystemService.UpdateNotifications(ctx, req) } func (s *SystemServerImpl) DeleteNotifications(ctx context.Context, req *system.DeleteNotificationsReq) (resp *system.DeleteNotificationsResp, err error) { diff --git a/biz/application/service/system.go b/biz/application/service/system.go index 261a8bd..6a88879 100644 --- a/biz/application/service/system.go +++ b/biz/application/service/system.go @@ -22,7 +22,7 @@ type SystemService interface { CreateSlider(ctx context.Context, req *gensystem.CreateSliderReq) (resp *gensystem.CreateSliderResp, err error) GetSliders(ctx context.Context, req *gensystem.GetSlidersReq) (resp *gensystem.GetSlidersResp, err error) DeleteNotifications(ctx context.Context, req *gensystem.DeleteNotificationsReq) (resp *gensystem.DeleteNotificationsResp, err error) - UpateNotifications(ctx context.Context, req *gensystem.UpdateNotificationsReq) (resp *gensystem.UpdateNotificationsResp, err error) + UpdateNotifications(ctx context.Context, req *gensystem.UpdateNotificationsReq) (resp *gensystem.UpdateNotificationsResp, err error) } type SystemServiceImpl struct { @@ -42,7 +42,7 @@ func (s *SystemServiceImpl) DeleteNotifications(ctx context.Context, req *gensys return resp, nil } -func (s *SystemServiceImpl) UpateNotifications(ctx context.Context, req *gensystem.UpdateNotificationsReq) (resp *gensystem.UpdateNotificationsResp, err error) { +func (s *SystemServiceImpl) UpdateNotifications(ctx context.Context, req *gensystem.UpdateNotificationsReq) (resp *gensystem.UpdateNotificationsResp, err error) { if err = s.NotificationMongoMapper.UpdateNotifications(ctx, ¬ificationmapper.FilterOptions{ OnlyUserId: req.OnlyUserId, OnlyType: req.OnlyType, diff --git a/go.mod b/go.mod index e9d0e6d..1209f49 100644 --- a/go.mod +++ b/go.mod @@ -4,7 +4,7 @@ go 1.20 require ( github.com/CloudStriver/go-pkg v0.0.0-20240117111745-b4ba57a38f44 - github.com/CloudStriver/service-idl-gen-go v0.0.0-20240207015802-678257e52c14 + github.com/CloudStriver/service-idl-gen-go v0.0.0-20240207103956-4877398ec51e github.com/cloudwego/kitex v0.8.0 github.com/google/wire v0.5.0 github.com/kitex-contrib/obs-opentelemetry v0.2.5 diff --git a/go.sum b/go.sum index 4f39745..8e7d20f 100644 --- a/go.sum +++ b/go.sum @@ -12,6 +12,8 @@ github.com/CloudStriver/service-idl-gen-go v0.0.0-20240127152507-ef2faaa085cd h1 github.com/CloudStriver/service-idl-gen-go v0.0.0-20240127152507-ef2faaa085cd/go.mod h1:chtR82RvfrjUujTGWROSCNAwF9Lh/U959k34bXIDvBI= github.com/CloudStriver/service-idl-gen-go v0.0.0-20240207015802-678257e52c14 h1:lyCMluZ+ht9e8sUJCpEw6kIrvGE/RZ7NNKkOcLF9giw= github.com/CloudStriver/service-idl-gen-go v0.0.0-20240207015802-678257e52c14/go.mod h1:chtR82RvfrjUujTGWROSCNAwF9Lh/U959k34bXIDvBI= +github.com/CloudStriver/service-idl-gen-go v0.0.0-20240207103956-4877398ec51e h1:nO3+GrijkLpFAdk+tt+n/R4nJzkeRYoMuXXEBk2LjV0= +github.com/CloudStriver/service-idl-gen-go v0.0.0-20240207103956-4877398ec51e/go.mod h1:chtR82RvfrjUujTGWROSCNAwF9Lh/U959k34bXIDvBI= github.com/ajstarks/deck v0.0.0-20200831202436-30c9fc6549a9/go.mod h1:JynElWSGnm/4RlzPXRlREEwqTHAN3T56Bv2ITsFT3gY= github.com/ajstarks/deck/generate v0.0.0-20210309230005-c3f852c02e19/go.mod h1:T13YZdzov6OU0A1+RfKZiZN9ca6VeKdBdyDV+BY97Tk= github.com/ajstarks/svgo v0.0.0-20180226025133-644b8db467af/go.mod h1:K08gAheRH3/J6wwsYMMT4xOr94bZjxIelGM0+d/wbFw=