289 lines
15 KiB
Go
289 lines
15 KiB
Go
// Code generated by goctl. DO NOT EDIT.
|
|
// goctl 1.9.2
|
|
// Source: game.proto
|
|
|
|
package gamepublic
|
|
|
|
import (
|
|
"context"
|
|
|
|
"juwan-backend/app/game/rpc/pb"
|
|
|
|
"github.com/zeromicro/go-zero/zrpc"
|
|
"google.golang.org/grpc"
|
|
)
|
|
|
|
type (
|
|
AddGamesReq = pb.AddGamesReq
|
|
AddGamesResp = pb.AddGamesResp
|
|
AddPlayerServicesReq = pb.AddPlayerServicesReq
|
|
AddPlayerServicesResp = pb.AddPlayerServicesResp
|
|
AddPlayersReq = pb.AddPlayersReq
|
|
AddPlayersResp = pb.AddPlayersResp
|
|
AddShopInvitationsReq = pb.AddShopInvitationsReq
|
|
AddShopInvitationsResp = pb.AddShopInvitationsResp
|
|
AddShopPlayersReq = pb.AddShopPlayersReq
|
|
AddShopPlayersResp = pb.AddShopPlayersResp
|
|
AddShopsReq = pb.AddShopsReq
|
|
AddShopsResp = pb.AddShopsResp
|
|
DelGamesReq = pb.DelGamesReq
|
|
DelGamesResp = pb.DelGamesResp
|
|
DelPlayerServicesReq = pb.DelPlayerServicesReq
|
|
DelPlayerServicesResp = pb.DelPlayerServicesResp
|
|
DelPlayersReq = pb.DelPlayersReq
|
|
DelPlayersResp = pb.DelPlayersResp
|
|
DelShopInvitationsReq = pb.DelShopInvitationsReq
|
|
DelShopInvitationsResp = pb.DelShopInvitationsResp
|
|
DelShopPlayersReq = pb.DelShopPlayersReq
|
|
DelShopPlayersResp = pb.DelShopPlayersResp
|
|
DelShopsReq = pb.DelShopsReq
|
|
DelShopsResp = pb.DelShopsResp
|
|
Games = pb.Games
|
|
GetGamesByIdReq = pb.GetGamesByIdReq
|
|
GetGamesByIdResp = pb.GetGamesByIdResp
|
|
GetPlayerServicesByIdReq = pb.GetPlayerServicesByIdReq
|
|
GetPlayerServicesByIdResp = pb.GetPlayerServicesByIdResp
|
|
GetPlayersByIdReq = pb.GetPlayersByIdReq
|
|
GetPlayersByIdResp = pb.GetPlayersByIdResp
|
|
GetShopInvitationsByIdReq = pb.GetShopInvitationsByIdReq
|
|
GetShopInvitationsByIdResp = pb.GetShopInvitationsByIdResp
|
|
GetShopPlayersByIdReq = pb.GetShopPlayersByIdReq
|
|
GetShopPlayersByIdResp = pb.GetShopPlayersByIdResp
|
|
GetShopsByIdReq = pb.GetShopsByIdReq
|
|
GetShopsByIdResp = pb.GetShopsByIdResp
|
|
PlayerServices = pb.PlayerServices
|
|
Players = pb.Players
|
|
SearchGamesReq = pb.SearchGamesReq
|
|
SearchGamesResp = pb.SearchGamesResp
|
|
SearchPlayerServicesReq = pb.SearchPlayerServicesReq
|
|
SearchPlayerServicesResp = pb.SearchPlayerServicesResp
|
|
SearchPlayersReq = pb.SearchPlayersReq
|
|
SearchPlayersResp = pb.SearchPlayersResp
|
|
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
|
|
UpdateGamesReq = pb.UpdateGamesReq
|
|
UpdateGamesResp = pb.UpdateGamesResp
|
|
UpdatePlayerServicesReq = pb.UpdatePlayerServicesReq
|
|
UpdatePlayerServicesResp = pb.UpdatePlayerServicesResp
|
|
UpdatePlayersReq = pb.UpdatePlayersReq
|
|
UpdatePlayersResp = pb.UpdatePlayersResp
|
|
UpdateShopInvitationsReq = pb.UpdateShopInvitationsReq
|
|
UpdateShopInvitationsResp = pb.UpdateShopInvitationsResp
|
|
UpdateShopPlayersReq = pb.UpdateShopPlayersReq
|
|
UpdateShopPlayersResp = pb.UpdateShopPlayersResp
|
|
UpdateShopsReq = pb.UpdateShopsReq
|
|
UpdateShopsResp = pb.UpdateShopsResp
|
|
|
|
GamePublic interface {
|
|
// -----------------------games-----------------------
|
|
AddGames(ctx context.Context, in *AddGamesReq, opts ...grpc.CallOption) (*AddGamesResp, error)
|
|
UpdateGames(ctx context.Context, in *UpdateGamesReq, opts ...grpc.CallOption) (*UpdateGamesResp, error)
|
|
DelGames(ctx context.Context, in *DelGamesReq, opts ...grpc.CallOption) (*DelGamesResp, error)
|
|
GetGamesById(ctx context.Context, in *GetGamesByIdReq, opts ...grpc.CallOption) (*GetGamesByIdResp, error)
|
|
SearchGames(ctx context.Context, in *SearchGamesReq, opts ...grpc.CallOption) (*SearchGamesResp, error)
|
|
// -----------------------playerServices-----------------------
|
|
AddPlayerServices(ctx context.Context, in *AddPlayerServicesReq, opts ...grpc.CallOption) (*AddPlayerServicesResp, error)
|
|
UpdatePlayerServices(ctx context.Context, in *UpdatePlayerServicesReq, opts ...grpc.CallOption) (*UpdatePlayerServicesResp, error)
|
|
DelPlayerServices(ctx context.Context, in *DelPlayerServicesReq, opts ...grpc.CallOption) (*DelPlayerServicesResp, error)
|
|
GetPlayerServicesById(ctx context.Context, in *GetPlayerServicesByIdReq, opts ...grpc.CallOption) (*GetPlayerServicesByIdResp, error)
|
|
SearchPlayerServices(ctx context.Context, in *SearchPlayerServicesReq, opts ...grpc.CallOption) (*SearchPlayerServicesResp, error)
|
|
// -----------------------players-----------------------
|
|
AddPlayers(ctx context.Context, in *AddPlayersReq, opts ...grpc.CallOption) (*AddPlayersResp, error)
|
|
UpdatePlayers(ctx context.Context, in *UpdatePlayersReq, opts ...grpc.CallOption) (*UpdatePlayersResp, error)
|
|
DelPlayers(ctx context.Context, in *DelPlayersReq, opts ...grpc.CallOption) (*DelPlayersResp, error)
|
|
GetPlayersById(ctx context.Context, in *GetPlayersByIdReq, opts ...grpc.CallOption) (*GetPlayersByIdResp, error)
|
|
SearchPlayers(ctx context.Context, in *SearchPlayersReq, opts ...grpc.CallOption) (*SearchPlayersResp, error)
|
|
// -----------------------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)
|
|
}
|
|
|
|
defaultGamePublic struct {
|
|
cli zrpc.Client
|
|
}
|
|
)
|
|
|
|
func NewGamePublic(cli zrpc.Client) GamePublic {
|
|
return &defaultGamePublic{
|
|
cli: cli,
|
|
}
|
|
}
|
|
|
|
// -----------------------games-----------------------
|
|
func (m *defaultGamePublic) AddGames(ctx context.Context, in *AddGamesReq, opts ...grpc.CallOption) (*AddGamesResp, error) {
|
|
client := pb.NewGamePublicClient(m.cli.Conn())
|
|
return client.AddGames(ctx, in, opts...)
|
|
}
|
|
|
|
func (m *defaultGamePublic) UpdateGames(ctx context.Context, in *UpdateGamesReq, opts ...grpc.CallOption) (*UpdateGamesResp, error) {
|
|
client := pb.NewGamePublicClient(m.cli.Conn())
|
|
return client.UpdateGames(ctx, in, opts...)
|
|
}
|
|
|
|
func (m *defaultGamePublic) DelGames(ctx context.Context, in *DelGamesReq, opts ...grpc.CallOption) (*DelGamesResp, error) {
|
|
client := pb.NewGamePublicClient(m.cli.Conn())
|
|
return client.DelGames(ctx, in, opts...)
|
|
}
|
|
|
|
func (m *defaultGamePublic) GetGamesById(ctx context.Context, in *GetGamesByIdReq, opts ...grpc.CallOption) (*GetGamesByIdResp, error) {
|
|
client := pb.NewGamePublicClient(m.cli.Conn())
|
|
return client.GetGamesById(ctx, in, opts...)
|
|
}
|
|
|
|
func (m *defaultGamePublic) SearchGames(ctx context.Context, in *SearchGamesReq, opts ...grpc.CallOption) (*SearchGamesResp, error) {
|
|
client := pb.NewGamePublicClient(m.cli.Conn())
|
|
return client.SearchGames(ctx, in, opts...)
|
|
}
|
|
|
|
// -----------------------playerServices-----------------------
|
|
func (m *defaultGamePublic) AddPlayerServices(ctx context.Context, in *AddPlayerServicesReq, opts ...grpc.CallOption) (*AddPlayerServicesResp, error) {
|
|
client := pb.NewGamePublicClient(m.cli.Conn())
|
|
return client.AddPlayerServices(ctx, in, opts...)
|
|
}
|
|
|
|
func (m *defaultGamePublic) UpdatePlayerServices(ctx context.Context, in *UpdatePlayerServicesReq, opts ...grpc.CallOption) (*UpdatePlayerServicesResp, error) {
|
|
client := pb.NewGamePublicClient(m.cli.Conn())
|
|
return client.UpdatePlayerServices(ctx, in, opts...)
|
|
}
|
|
|
|
func (m *defaultGamePublic) DelPlayerServices(ctx context.Context, in *DelPlayerServicesReq, opts ...grpc.CallOption) (*DelPlayerServicesResp, error) {
|
|
client := pb.NewGamePublicClient(m.cli.Conn())
|
|
return client.DelPlayerServices(ctx, in, opts...)
|
|
}
|
|
|
|
func (m *defaultGamePublic) GetPlayerServicesById(ctx context.Context, in *GetPlayerServicesByIdReq, opts ...grpc.CallOption) (*GetPlayerServicesByIdResp, error) {
|
|
client := pb.NewGamePublicClient(m.cli.Conn())
|
|
return client.GetPlayerServicesById(ctx, in, opts...)
|
|
}
|
|
|
|
func (m *defaultGamePublic) SearchPlayerServices(ctx context.Context, in *SearchPlayerServicesReq, opts ...grpc.CallOption) (*SearchPlayerServicesResp, error) {
|
|
client := pb.NewGamePublicClient(m.cli.Conn())
|
|
return client.SearchPlayerServices(ctx, in, opts...)
|
|
}
|
|
|
|
// -----------------------players-----------------------
|
|
func (m *defaultGamePublic) AddPlayers(ctx context.Context, in *AddPlayersReq, opts ...grpc.CallOption) (*AddPlayersResp, error) {
|
|
client := pb.NewGamePublicClient(m.cli.Conn())
|
|
return client.AddPlayers(ctx, in, opts...)
|
|
}
|
|
|
|
func (m *defaultGamePublic) UpdatePlayers(ctx context.Context, in *UpdatePlayersReq, opts ...grpc.CallOption) (*UpdatePlayersResp, error) {
|
|
client := pb.NewGamePublicClient(m.cli.Conn())
|
|
return client.UpdatePlayers(ctx, in, opts...)
|
|
}
|
|
|
|
func (m *defaultGamePublic) DelPlayers(ctx context.Context, in *DelPlayersReq, opts ...grpc.CallOption) (*DelPlayersResp, error) {
|
|
client := pb.NewGamePublicClient(m.cli.Conn())
|
|
return client.DelPlayers(ctx, in, opts...)
|
|
}
|
|
|
|
func (m *defaultGamePublic) GetPlayersById(ctx context.Context, in *GetPlayersByIdReq, opts ...grpc.CallOption) (*GetPlayersByIdResp, error) {
|
|
client := pb.NewGamePublicClient(m.cli.Conn())
|
|
return client.GetPlayersById(ctx, in, opts...)
|
|
}
|
|
|
|
func (m *defaultGamePublic) SearchPlayers(ctx context.Context, in *SearchPlayersReq, opts ...grpc.CallOption) (*SearchPlayersResp, error) {
|
|
client := pb.NewGamePublicClient(m.cli.Conn())
|
|
return client.SearchPlayers(ctx, in, opts...)
|
|
}
|
|
|
|
// -----------------------shopInvitations-----------------------
|
|
func (m *defaultGamePublic) AddShopInvitations(ctx context.Context, in *AddShopInvitationsReq, opts ...grpc.CallOption) (*AddShopInvitationsResp, error) {
|
|
client := pb.NewGamePublicClient(m.cli.Conn())
|
|
return client.AddShopInvitations(ctx, in, opts...)
|
|
}
|
|
|
|
func (m *defaultGamePublic) UpdateShopInvitations(ctx context.Context, in *UpdateShopInvitationsReq, opts ...grpc.CallOption) (*UpdateShopInvitationsResp, error) {
|
|
client := pb.NewGamePublicClient(m.cli.Conn())
|
|
return client.UpdateShopInvitations(ctx, in, opts...)
|
|
}
|
|
|
|
func (m *defaultGamePublic) DelShopInvitations(ctx context.Context, in *DelShopInvitationsReq, opts ...grpc.CallOption) (*DelShopInvitationsResp, error) {
|
|
client := pb.NewGamePublicClient(m.cli.Conn())
|
|
return client.DelShopInvitations(ctx, in, opts...)
|
|
}
|
|
|
|
func (m *defaultGamePublic) GetShopInvitationsById(ctx context.Context, in *GetShopInvitationsByIdReq, opts ...grpc.CallOption) (*GetShopInvitationsByIdResp, error) {
|
|
client := pb.NewGamePublicClient(m.cli.Conn())
|
|
return client.GetShopInvitationsById(ctx, in, opts...)
|
|
}
|
|
|
|
func (m *defaultGamePublic) SearchShopInvitations(ctx context.Context, in *SearchShopInvitationsReq, opts ...grpc.CallOption) (*SearchShopInvitationsResp, error) {
|
|
client := pb.NewGamePublicClient(m.cli.Conn())
|
|
return client.SearchShopInvitations(ctx, in, opts...)
|
|
}
|
|
|
|
// -----------------------shopPlayers-----------------------
|
|
func (m *defaultGamePublic) AddShopPlayers(ctx context.Context, in *AddShopPlayersReq, opts ...grpc.CallOption) (*AddShopPlayersResp, error) {
|
|
client := pb.NewGamePublicClient(m.cli.Conn())
|
|
return client.AddShopPlayers(ctx, in, opts...)
|
|
}
|
|
|
|
func (m *defaultGamePublic) UpdateShopPlayers(ctx context.Context, in *UpdateShopPlayersReq, opts ...grpc.CallOption) (*UpdateShopPlayersResp, error) {
|
|
client := pb.NewGamePublicClient(m.cli.Conn())
|
|
return client.UpdateShopPlayers(ctx, in, opts...)
|
|
}
|
|
|
|
func (m *defaultGamePublic) DelShopPlayers(ctx context.Context, in *DelShopPlayersReq, opts ...grpc.CallOption) (*DelShopPlayersResp, error) {
|
|
client := pb.NewGamePublicClient(m.cli.Conn())
|
|
return client.DelShopPlayers(ctx, in, opts...)
|
|
}
|
|
|
|
func (m *defaultGamePublic) GetShopPlayersById(ctx context.Context, in *GetShopPlayersByIdReq, opts ...grpc.CallOption) (*GetShopPlayersByIdResp, error) {
|
|
client := pb.NewGamePublicClient(m.cli.Conn())
|
|
return client.GetShopPlayersById(ctx, in, opts...)
|
|
}
|
|
|
|
func (m *defaultGamePublic) SearchShopPlayers(ctx context.Context, in *SearchShopPlayersReq, opts ...grpc.CallOption) (*SearchShopPlayersResp, error) {
|
|
client := pb.NewGamePublicClient(m.cli.Conn())
|
|
return client.SearchShopPlayers(ctx, in, opts...)
|
|
}
|
|
|
|
// -----------------------shops-----------------------
|
|
func (m *defaultGamePublic) AddShops(ctx context.Context, in *AddShopsReq, opts ...grpc.CallOption) (*AddShopsResp, error) {
|
|
client := pb.NewGamePublicClient(m.cli.Conn())
|
|
return client.AddShops(ctx, in, opts...)
|
|
}
|
|
|
|
func (m *defaultGamePublic) UpdateShops(ctx context.Context, in *UpdateShopsReq, opts ...grpc.CallOption) (*UpdateShopsResp, error) {
|
|
client := pb.NewGamePublicClient(m.cli.Conn())
|
|
return client.UpdateShops(ctx, in, opts...)
|
|
}
|
|
|
|
func (m *defaultGamePublic) DelShops(ctx context.Context, in *DelShopsReq, opts ...grpc.CallOption) (*DelShopsResp, error) {
|
|
client := pb.NewGamePublicClient(m.cli.Conn())
|
|
return client.DelShops(ctx, in, opts...)
|
|
}
|
|
|
|
func (m *defaultGamePublic) GetShopsById(ctx context.Context, in *GetShopsByIdReq, opts ...grpc.CallOption) (*GetShopsByIdResp, error) {
|
|
client := pb.NewGamePublicClient(m.cli.Conn())
|
|
return client.GetShopsById(ctx, in, opts...)
|
|
}
|
|
|
|
func (m *defaultGamePublic) SearchShops(ctx context.Context, in *SearchShopsReq, opts ...grpc.CallOption) (*SearchShopsResp, error) {
|
|
client := pb.NewGamePublicClient(m.cli.Conn())
|
|
return client.SearchShops(ctx, in, opts...)
|
|
}
|