// Code generated by goctl. DO NOT EDIT. // goctl 1.9.2 // Source: shop.proto package shopservice import ( "context" "juwan-backend/app/shop/rpc/pb" "github.com/zeromicro/go-zero/zrpc" "google.golang.org/grpc" ) type ( AddShopInvitationsReq = pb.AddShopInvitationsReq AddShopInvitationsResp = pb.AddShopInvitationsResp AddShopPlayersReq = pb.AddShopPlayersReq AddShopPlayersResp = pb.AddShopPlayersResp AddShopsReq = pb.AddShopsReq AddShopsResp = pb.AddShopsResp DelShopInvitationsReq = pb.DelShopInvitationsReq DelShopInvitationsResp = pb.DelShopInvitationsResp DelShopPlayersReq = pb.DelShopPlayersReq DelShopPlayersResp = pb.DelShopPlayersResp DelShopsReq = pb.DelShopsReq DelShopsResp = pb.DelShopsResp GetShopInvitationsByIdReq = pb.GetShopInvitationsByIdReq GetShopInvitationsByIdResp = pb.GetShopInvitationsByIdResp GetShopPlayersByIdReq = pb.GetShopPlayersByIdReq GetShopPlayersByIdResp = pb.GetShopPlayersByIdResp GetShopsByIdReq = pb.GetShopsByIdReq GetShopsByIdResp = pb.GetShopsByIdResp SearchShopInvitationsReq = pb.SearchShopInvitationsReq SearchShopInvitationsResp = pb.SearchShopInvitationsResp SearchShopPlayersReq = pb.SearchShopPlayersReq SearchShopPlayersResp = pb.SearchShopPlayersResp SearchShopsReq = pb.SearchShopsReq SearchShopsResp = pb.SearchShopsResp ShopInvitations = pb.ShopInvitations ShopPlayers = pb.ShopPlayers Shops = pb.Shops UpdateShopInvitationsReq = pb.UpdateShopInvitationsReq UpdateShopInvitationsResp = pb.UpdateShopInvitationsResp UpdateShopPlayersReq = pb.UpdateShopPlayersReq UpdateShopPlayersResp = pb.UpdateShopPlayersResp UpdateShopsReq = pb.UpdateShopsReq UpdateShopsResp = pb.UpdateShopsResp ShopService interface { // -----------------------shopInvitations----------------------- AddShopInvitations(ctx context.Context, in *AddShopInvitationsReq, opts ...grpc.CallOption) (*AddShopInvitationsResp, error) UpdateShopInvitations(ctx context.Context, in *UpdateShopInvitationsReq, opts ...grpc.CallOption) (*UpdateShopInvitationsResp, error) DelShopInvitations(ctx context.Context, in *DelShopInvitationsReq, opts ...grpc.CallOption) (*DelShopInvitationsResp, error) GetShopInvitationsById(ctx context.Context, in *GetShopInvitationsByIdReq, opts ...grpc.CallOption) (*GetShopInvitationsByIdResp, error) SearchShopInvitations(ctx context.Context, in *SearchShopInvitationsReq, opts ...grpc.CallOption) (*SearchShopInvitationsResp, error) // -----------------------shopPlayers----------------------- AddShopPlayers(ctx context.Context, in *AddShopPlayersReq, opts ...grpc.CallOption) (*AddShopPlayersResp, error) UpdateShopPlayers(ctx context.Context, in *UpdateShopPlayersReq, opts ...grpc.CallOption) (*UpdateShopPlayersResp, error) DelShopPlayers(ctx context.Context, in *DelShopPlayersReq, opts ...grpc.CallOption) (*DelShopPlayersResp, error) GetShopPlayersById(ctx context.Context, in *GetShopPlayersByIdReq, opts ...grpc.CallOption) (*GetShopPlayersByIdResp, error) SearchShopPlayers(ctx context.Context, in *SearchShopPlayersReq, opts ...grpc.CallOption) (*SearchShopPlayersResp, error) // -----------------------shops----------------------- AddShops(ctx context.Context, in *AddShopsReq, opts ...grpc.CallOption) (*AddShopsResp, error) UpdateShops(ctx context.Context, in *UpdateShopsReq, opts ...grpc.CallOption) (*UpdateShopsResp, error) DelShops(ctx context.Context, in *DelShopsReq, opts ...grpc.CallOption) (*DelShopsResp, error) GetShopsById(ctx context.Context, in *GetShopsByIdReq, opts ...grpc.CallOption) (*GetShopsByIdResp, error) SearchShops(ctx context.Context, in *SearchShopsReq, opts ...grpc.CallOption) (*SearchShopsResp, error) } defaultShopService struct { cli zrpc.Client } ) func NewShopService(cli zrpc.Client) ShopService { return &defaultShopService{ cli: cli, } } // -----------------------shopInvitations----------------------- func (m *defaultShopService) AddShopInvitations(ctx context.Context, in *AddShopInvitationsReq, opts ...grpc.CallOption) (*AddShopInvitationsResp, error) { client := pb.NewShopServiceClient(m.cli.Conn()) return client.AddShopInvitations(ctx, in, opts...) } func (m *defaultShopService) UpdateShopInvitations(ctx context.Context, in *UpdateShopInvitationsReq, opts ...grpc.CallOption) (*UpdateShopInvitationsResp, error) { client := pb.NewShopServiceClient(m.cli.Conn()) return client.UpdateShopInvitations(ctx, in, opts...) } func (m *defaultShopService) DelShopInvitations(ctx context.Context, in *DelShopInvitationsReq, opts ...grpc.CallOption) (*DelShopInvitationsResp, error) { client := pb.NewShopServiceClient(m.cli.Conn()) return client.DelShopInvitations(ctx, in, opts...) } func (m *defaultShopService) GetShopInvitationsById(ctx context.Context, in *GetShopInvitationsByIdReq, opts ...grpc.CallOption) (*GetShopInvitationsByIdResp, error) { client := pb.NewShopServiceClient(m.cli.Conn()) return client.GetShopInvitationsById(ctx, in, opts...) } func (m *defaultShopService) SearchShopInvitations(ctx context.Context, in *SearchShopInvitationsReq, opts ...grpc.CallOption) (*SearchShopInvitationsResp, error) { client := pb.NewShopServiceClient(m.cli.Conn()) return client.SearchShopInvitations(ctx, in, opts...) } // -----------------------shopPlayers----------------------- func (m *defaultShopService) AddShopPlayers(ctx context.Context, in *AddShopPlayersReq, opts ...grpc.CallOption) (*AddShopPlayersResp, error) { client := pb.NewShopServiceClient(m.cli.Conn()) return client.AddShopPlayers(ctx, in, opts...) } func (m *defaultShopService) UpdateShopPlayers(ctx context.Context, in *UpdateShopPlayersReq, opts ...grpc.CallOption) (*UpdateShopPlayersResp, error) { client := pb.NewShopServiceClient(m.cli.Conn()) return client.UpdateShopPlayers(ctx, in, opts...) } func (m *defaultShopService) DelShopPlayers(ctx context.Context, in *DelShopPlayersReq, opts ...grpc.CallOption) (*DelShopPlayersResp, error) { client := pb.NewShopServiceClient(m.cli.Conn()) return client.DelShopPlayers(ctx, in, opts...) } func (m *defaultShopService) GetShopPlayersById(ctx context.Context, in *GetShopPlayersByIdReq, opts ...grpc.CallOption) (*GetShopPlayersByIdResp, error) { client := pb.NewShopServiceClient(m.cli.Conn()) return client.GetShopPlayersById(ctx, in, opts...) } func (m *defaultShopService) SearchShopPlayers(ctx context.Context, in *SearchShopPlayersReq, opts ...grpc.CallOption) (*SearchShopPlayersResp, error) { client := pb.NewShopServiceClient(m.cli.Conn()) return client.SearchShopPlayers(ctx, in, opts...) } // -----------------------shops----------------------- func (m *defaultShopService) AddShops(ctx context.Context, in *AddShopsReq, opts ...grpc.CallOption) (*AddShopsResp, error) { client := pb.NewShopServiceClient(m.cli.Conn()) return client.AddShops(ctx, in, opts...) } func (m *defaultShopService) UpdateShops(ctx context.Context, in *UpdateShopsReq, opts ...grpc.CallOption) (*UpdateShopsResp, error) { client := pb.NewShopServiceClient(m.cli.Conn()) return client.UpdateShops(ctx, in, opts...) } func (m *defaultShopService) DelShops(ctx context.Context, in *DelShopsReq, opts ...grpc.CallOption) (*DelShopsResp, error) { client := pb.NewShopServiceClient(m.cli.Conn()) return client.DelShops(ctx, in, opts...) } func (m *defaultShopService) GetShopsById(ctx context.Context, in *GetShopsByIdReq, opts ...grpc.CallOption) (*GetShopsByIdResp, error) { client := pb.NewShopServiceClient(m.cli.Conn()) return client.GetShopsById(ctx, in, opts...) } func (m *defaultShopService) SearchShops(ctx context.Context, in *SearchShopsReq, opts ...grpc.CallOption) (*SearchShopsResp, error) { client := pb.NewShopServiceClient(m.cli.Conn()) return client.SearchShops(ctx, in, opts...) }