// Code generated by goctl. DO NOT EDIT. // goctl 1.9.2 // Source: shop.proto package server import ( "context" "juwan-backend/app/shop/rpc/internal/logic" "juwan-backend/app/shop/rpc/internal/svc" "juwan-backend/app/shop/rpc/pb" ) type ShopServiceServer struct { svcCtx *svc.ServiceContext pb.UnimplementedShopServiceServer } func NewShopServiceServer(svcCtx *svc.ServiceContext) *ShopServiceServer { return &ShopServiceServer{ svcCtx: svcCtx, } } // -----------------------shopInvitations----------------------- func (s *ShopServiceServer) AddShopInvitations(ctx context.Context, in *pb.AddShopInvitationsReq) (*pb.AddShopInvitationsResp, error) { l := logic.NewAddShopInvitationsLogic(ctx, s.svcCtx) return l.AddShopInvitations(in) } func (s *ShopServiceServer) UpdateShopInvitations(ctx context.Context, in *pb.UpdateShopInvitationsReq) (*pb.UpdateShopInvitationsResp, error) { l := logic.NewUpdateShopInvitationsLogic(ctx, s.svcCtx) return l.UpdateShopInvitations(in) } func (s *ShopServiceServer) DelShopInvitations(ctx context.Context, in *pb.DelShopInvitationsReq) (*pb.DelShopInvitationsResp, error) { l := logic.NewDelShopInvitationsLogic(ctx, s.svcCtx) return l.DelShopInvitations(in) } func (s *ShopServiceServer) GetShopInvitationsById(ctx context.Context, in *pb.GetShopInvitationsByIdReq) (*pb.GetShopInvitationsByIdResp, error) { l := logic.NewGetShopInvitationsByIdLogic(ctx, s.svcCtx) return l.GetShopInvitationsById(in) } func (s *ShopServiceServer) SearchShopInvitations(ctx context.Context, in *pb.SearchShopInvitationsReq) (*pb.SearchShopInvitationsResp, error) { l := logic.NewSearchShopInvitationsLogic(ctx, s.svcCtx) return l.SearchShopInvitations(in) } // -----------------------shopPlayers----------------------- func (s *ShopServiceServer) AddShopPlayers(ctx context.Context, in *pb.AddShopPlayersReq) (*pb.AddShopPlayersResp, error) { l := logic.NewAddShopPlayersLogic(ctx, s.svcCtx) return l.AddShopPlayers(in) } func (s *ShopServiceServer) UpdateShopPlayers(ctx context.Context, in *pb.UpdateShopPlayersReq) (*pb.UpdateShopPlayersResp, error) { l := logic.NewUpdateShopPlayersLogic(ctx, s.svcCtx) return l.UpdateShopPlayers(in) } func (s *ShopServiceServer) DelShopPlayers(ctx context.Context, in *pb.DelShopPlayersReq) (*pb.DelShopPlayersResp, error) { l := logic.NewDelShopPlayersLogic(ctx, s.svcCtx) return l.DelShopPlayers(in) } func (s *ShopServiceServer) GetShopPlayersById(ctx context.Context, in *pb.GetShopPlayersByIdReq) (*pb.GetShopPlayersByIdResp, error) { l := logic.NewGetShopPlayersByIdLogic(ctx, s.svcCtx) return l.GetShopPlayersById(in) } func (s *ShopServiceServer) SearchShopPlayers(ctx context.Context, in *pb.SearchShopPlayersReq) (*pb.SearchShopPlayersResp, error) { l := logic.NewSearchShopPlayersLogic(ctx, s.svcCtx) return l.SearchShopPlayers(in) } // -----------------------shops----------------------- func (s *ShopServiceServer) AddShops(ctx context.Context, in *pb.AddShopsReq) (*pb.AddShopsResp, error) { l := logic.NewAddShopsLogic(ctx, s.svcCtx) return l.AddShops(in) } func (s *ShopServiceServer) UpdateShops(ctx context.Context, in *pb.UpdateShopsReq) (*pb.UpdateShopsResp, error) { l := logic.NewUpdateShopsLogic(ctx, s.svcCtx) return l.UpdateShops(in) } func (s *ShopServiceServer) DelShops(ctx context.Context, in *pb.DelShopsReq) (*pb.DelShopsResp, error) { l := logic.NewDelShopsLogic(ctx, s.svcCtx) return l.DelShops(in) } func (s *ShopServiceServer) GetShopsById(ctx context.Context, in *pb.GetShopsByIdReq) (*pb.GetShopsByIdResp, error) { l := logic.NewGetShopsByIdLogic(ctx, s.svcCtx) return l.GetShopsById(in) } func (s *ShopServiceServer) SearchShops(ctx context.Context, in *pb.SearchShopsReq) (*pb.SearchShopsResp, error) { l := logic.NewSearchShopsLogic(ctx, s.svcCtx) return l.SearchShops(in) }