Skip to content

Commit

Permalink
refactor: Remove unused code related to cat albums
Browse files Browse the repository at this point in the history
  • Loading branch information
Mingle-2012 committed Aug 11, 2024
1 parent 2971136 commit e2d16e5
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 690 deletions.
24 changes: 1 addition & 23 deletions biz/adaptor/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package adaptor
import (
"context"

"github.com/xh-polaris/service-idl-gen-go/kitex_gen/meowcloud/content"
"github.com/xh-polaris/service-idl-gen-go/kitex_gen/meowcloud/user"

"github.com/xh-polaris/meowcloud-user/biz/application/service"
Expand All @@ -12,8 +11,7 @@ import (

type UserServerImpl struct {
*config.Config
UserService service.UserService
CatAlbumService service.CatAlbumService
UserService service.UserService
}

func (s *UserServerImpl) GetUser(ctx context.Context, req *user.GetUserReq) (res *user.GetUserResp, err error) {
Expand All @@ -27,23 +25,3 @@ func (s *UserServerImpl) GetUserDetail(ctx context.Context, req *user.GetUserDet
func (s *UserServerImpl) UpdateUser(ctx context.Context, req *user.UpdateUserReq) (res *user.UpdateUserResp, err error) {
return s.UserService.UpdateUser(ctx, req)
}

func (s *UserServerImpl) CreateCatAlbum(ctx context.Context, req *content.CreateCatAlbumReq) (res *content.CreateCatAlbumResp, err error) {
return s.CatAlbumService.CreateCatAlbum(ctx, req)
}

func (s *UserServerImpl) RetrieveCatAlbum(ctx context.Context, req *content.RetrieveCatAlbumReq) (res *content.RetrieveCatAlbumResp, err error) {
return s.CatAlbumService.RetrieveCatAlbum(ctx, req)
}

func (s *UserServerImpl) UpdateCatAlbum(ctx context.Context, req *content.UpdateCatAlbumReq) (res *content.UpdateCatAlbumResp, err error) {
return s.CatAlbumService.UpdateCatAlbum(ctx, req)
}

func (s *UserServerImpl) DeleteCatAlbum(ctx context.Context, req *content.DeleteCatAlbumReq) (res *content.DeleteCatAlbumResp, err error) {
return s.CatAlbumService.DeleteCatAlbum(ctx, req)
}

func (s *UserServerImpl) ListCatAlbum(ctx context.Context, req *content.ListCatAlbumReq) (res *content.ListCatAlbumResp, err error) {
return s.CatAlbumService.ListCatAlbum(ctx, req)
}
98 changes: 0 additions & 98 deletions biz/application/service/catalbum.go

This file was deleted.

197 changes: 0 additions & 197 deletions biz/infrastructure/mapper/catalbum/mongo.go

This file was deleted.

Loading

0 comments on commit e2d16e5

Please sign in to comment.