// Code generated by goctl. DO NOT EDIT. // goctl 1.10.1 // Source: gorpc.proto package gogameclient import ( "context" "code.flashlink.me/nomo-server/go-service-pb/pb/pb" "github.com/zeromicro/go-zero/zrpc" "google.golang.org/grpc" ) type ( Empty = pb.Empty GameCategoryListReq = pb.GameCategoryListReq GameCategoryListRes = pb.GameCategoryListRes GameCategoryReq = pb.GameCategoryReq GameCategoryVo = pb.GameCategoryVo GameCustomerAddResp = pb.GameCustomerAddResp GameCustomerListReq = pb.GameCustomerListReq GameCustomerListRes = pb.GameCustomerListRes GameCustomerVo = pb.GameCustomerVo GameListReq = pb.GameListReq GameListRes = pb.GameListRes GameRedisHScanByNameReq = pb.GameRedisHScanByNameReq GameRedisHScanByNameResp = pb.GameRedisHScanByNameResp GameReq = pb.GameReq GameVo = pb.GameVo Ids = pb.Ids RelGameRankListReq = pb.RelGameRankListReq RelGameRankListRes = pb.RelGameRankListRes RelGameRankReq = pb.RelGameRankReq RelGameRankVo = pb.RelGameRankVo RelGameVpnGroupListReq = pb.RelGameVpnGroupListReq RelGameVpnGroupListRes = pb.RelGameVpnGroupListRes RelGameVpnGroupReq = pb.RelGameVpnGroupReq RelGameVpnGroupVo = pb.RelGameVpnGroupVo Request = pb.Request GoGameClient interface { // 加速器游戏管理 GameAdd(ctx context.Context, in *GameVo, opts ...grpc.CallOption) (*GameVo, error) GameUpdate(ctx context.Context, in *GameVo, opts ...grpc.CallOption) (*Empty, error) GameDel(ctx context.Context, in *Ids, opts ...grpc.CallOption) (*Empty, error) GameGet(ctx context.Context, in *GameReq, opts ...grpc.CallOption) (*GameVo, error) GameList(ctx context.Context, in *GameListReq, opts ...grpc.CallOption) (*GameListRes, error) GameAll(ctx context.Context, in *Request, opts ...grpc.CallOption) (*GameListRes, error) GameRedisHScanByName(ctx context.Context, in *GameRedisHScanByNameReq, opts ...grpc.CallOption) (*GameRedisHScanByNameResp, error) // 游戏榜单关联关系 RelGameRankAdd(ctx context.Context, in *RelGameRankVo, opts ...grpc.CallOption) (*RelGameRankVo, error) RelGameRankUpdate(ctx context.Context, in *RelGameRankVo, opts ...grpc.CallOption) (*Empty, error) RelGameRankDel(ctx context.Context, in *Ids, opts ...grpc.CallOption) (*Empty, error) RelGameRankGet(ctx context.Context, in *RelGameRankReq, opts ...grpc.CallOption) (*RelGameRankVo, error) RelGameRankList(ctx context.Context, in *RelGameRankListReq, opts ...grpc.CallOption) (*RelGameRankListRes, error) // 游戏地域关联关系 RelGameVpnGroupAdd(ctx context.Context, in *RelGameVpnGroupVo, opts ...grpc.CallOption) (*RelGameVpnGroupVo, error) RelGameVpnGroupUpdate(ctx context.Context, in *RelGameVpnGroupVo, opts ...grpc.CallOption) (*Empty, error) RelGameVpnGroupDel(ctx context.Context, in *Ids, opts ...grpc.CallOption) (*Empty, error) RelGameVpnGroupGet(ctx context.Context, in *RelGameVpnGroupReq, opts ...grpc.CallOption) (*RelGameVpnGroupVo, error) RelGameVpnGroupList(ctx context.Context, in *RelGameVpnGroupListReq, opts ...grpc.CallOption) (*RelGameVpnGroupListRes, error) // 用户提交游戏 GameCustomerList(ctx context.Context, in *GameCustomerListReq, opts ...grpc.CallOption) (*GameCustomerListRes, error) GameCustomerAdd(ctx context.Context, in *GameCustomerVo, opts ...grpc.CallOption) (*GameCustomerAddResp, error) GameCustomerDel(ctx context.Context, in *Ids, opts ...grpc.CallOption) (*Empty, error) GameCategoryAdd(ctx context.Context, in *GameCategoryVo, opts ...grpc.CallOption) (*GameCategoryVo, error) GameCategoryUpdate(ctx context.Context, in *GameCategoryVo, opts ...grpc.CallOption) (*Empty, error) GameCategoryDel(ctx context.Context, in *Ids, opts ...grpc.CallOption) (*Empty, error) GameCategoryGet(ctx context.Context, in *GameCategoryReq, opts ...grpc.CallOption) (*GameCategoryVo, error) GameCategoryList(ctx context.Context, in *GameCategoryListReq, opts ...grpc.CallOption) (*GameCategoryListRes, error) GameCategoryAll(ctx context.Context, in *Request, opts ...grpc.CallOption) (*GameCategoryListRes, error) } defaultGoGameClient struct { cli zrpc.Client } ) func NewGoGameClient(cli zrpc.Client) GoGameClient { return &defaultGoGameClient{ cli: cli, } } // 加速器游戏管理 func (m *defaultGoGameClient) GameAdd(ctx context.Context, in *GameVo, opts ...grpc.CallOption) (*GameVo, error) { client := pb.NewGoGameClientClient(m.cli.Conn()) return client.GameAdd(ctx, in, opts...) } func (m *defaultGoGameClient) GameUpdate(ctx context.Context, in *GameVo, opts ...grpc.CallOption) (*Empty, error) { client := pb.NewGoGameClientClient(m.cli.Conn()) return client.GameUpdate(ctx, in, opts...) } func (m *defaultGoGameClient) GameDel(ctx context.Context, in *Ids, opts ...grpc.CallOption) (*Empty, error) { client := pb.NewGoGameClientClient(m.cli.Conn()) return client.GameDel(ctx, in, opts...) } func (m *defaultGoGameClient) GameGet(ctx context.Context, in *GameReq, opts ...grpc.CallOption) (*GameVo, error) { client := pb.NewGoGameClientClient(m.cli.Conn()) return client.GameGet(ctx, in, opts...) } func (m *defaultGoGameClient) GameList(ctx context.Context, in *GameListReq, opts ...grpc.CallOption) (*GameListRes, error) { client := pb.NewGoGameClientClient(m.cli.Conn()) return client.GameList(ctx, in, opts...) } func (m *defaultGoGameClient) GameAll(ctx context.Context, in *Request, opts ...grpc.CallOption) (*GameListRes, error) { client := pb.NewGoGameClientClient(m.cli.Conn()) return client.GameAll(ctx, in, opts...) } func (m *defaultGoGameClient) GameRedisHScanByName(ctx context.Context, in *GameRedisHScanByNameReq, opts ...grpc.CallOption) (*GameRedisHScanByNameResp, error) { client := pb.NewGoGameClientClient(m.cli.Conn()) return client.GameRedisHScanByName(ctx, in, opts...) } // 游戏榜单关联关系 func (m *defaultGoGameClient) RelGameRankAdd(ctx context.Context, in *RelGameRankVo, opts ...grpc.CallOption) (*RelGameRankVo, error) { client := pb.NewGoGameClientClient(m.cli.Conn()) return client.RelGameRankAdd(ctx, in, opts...) } func (m *defaultGoGameClient) RelGameRankUpdate(ctx context.Context, in *RelGameRankVo, opts ...grpc.CallOption) (*Empty, error) { client := pb.NewGoGameClientClient(m.cli.Conn()) return client.RelGameRankUpdate(ctx, in, opts...) } func (m *defaultGoGameClient) RelGameRankDel(ctx context.Context, in *Ids, opts ...grpc.CallOption) (*Empty, error) { client := pb.NewGoGameClientClient(m.cli.Conn()) return client.RelGameRankDel(ctx, in, opts...) } func (m *defaultGoGameClient) RelGameRankGet(ctx context.Context, in *RelGameRankReq, opts ...grpc.CallOption) (*RelGameRankVo, error) { client := pb.NewGoGameClientClient(m.cli.Conn()) return client.RelGameRankGet(ctx, in, opts...) } func (m *defaultGoGameClient) RelGameRankList(ctx context.Context, in *RelGameRankListReq, opts ...grpc.CallOption) (*RelGameRankListRes, error) { client := pb.NewGoGameClientClient(m.cli.Conn()) return client.RelGameRankList(ctx, in, opts...) } // 游戏地域关联关系 func (m *defaultGoGameClient) RelGameVpnGroupAdd(ctx context.Context, in *RelGameVpnGroupVo, opts ...grpc.CallOption) (*RelGameVpnGroupVo, error) { client := pb.NewGoGameClientClient(m.cli.Conn()) return client.RelGameVpnGroupAdd(ctx, in, opts...) } func (m *defaultGoGameClient) RelGameVpnGroupUpdate(ctx context.Context, in *RelGameVpnGroupVo, opts ...grpc.CallOption) (*Empty, error) { client := pb.NewGoGameClientClient(m.cli.Conn()) return client.RelGameVpnGroupUpdate(ctx, in, opts...) } func (m *defaultGoGameClient) RelGameVpnGroupDel(ctx context.Context, in *Ids, opts ...grpc.CallOption) (*Empty, error) { client := pb.NewGoGameClientClient(m.cli.Conn()) return client.RelGameVpnGroupDel(ctx, in, opts...) } func (m *defaultGoGameClient) RelGameVpnGroupGet(ctx context.Context, in *RelGameVpnGroupReq, opts ...grpc.CallOption) (*RelGameVpnGroupVo, error) { client := pb.NewGoGameClientClient(m.cli.Conn()) return client.RelGameVpnGroupGet(ctx, in, opts...) } func (m *defaultGoGameClient) RelGameVpnGroupList(ctx context.Context, in *RelGameVpnGroupListReq, opts ...grpc.CallOption) (*RelGameVpnGroupListRes, error) { client := pb.NewGoGameClientClient(m.cli.Conn()) return client.RelGameVpnGroupList(ctx, in, opts...) } // 用户提交游戏 func (m *defaultGoGameClient) GameCustomerList(ctx context.Context, in *GameCustomerListReq, opts ...grpc.CallOption) (*GameCustomerListRes, error) { client := pb.NewGoGameClientClient(m.cli.Conn()) return client.GameCustomerList(ctx, in, opts...) } func (m *defaultGoGameClient) GameCustomerAdd(ctx context.Context, in *GameCustomerVo, opts ...grpc.CallOption) (*GameCustomerAddResp, error) { client := pb.NewGoGameClientClient(m.cli.Conn()) return client.GameCustomerAdd(ctx, in, opts...) } func (m *defaultGoGameClient) GameCustomerDel(ctx context.Context, in *Ids, opts ...grpc.CallOption) (*Empty, error) { client := pb.NewGoGameClientClient(m.cli.Conn()) return client.GameCustomerDel(ctx, in, opts...) } func (m *defaultGoGameClient) GameCategoryAdd(ctx context.Context, in *GameCategoryVo, opts ...grpc.CallOption) (*GameCategoryVo, error) { client := pb.NewGoGameClientClient(m.cli.Conn()) return client.GameCategoryAdd(ctx, in, opts...) } func (m *defaultGoGameClient) GameCategoryUpdate(ctx context.Context, in *GameCategoryVo, opts ...grpc.CallOption) (*Empty, error) { client := pb.NewGoGameClientClient(m.cli.Conn()) return client.GameCategoryUpdate(ctx, in, opts...) } func (m *defaultGoGameClient) GameCategoryDel(ctx context.Context, in *Ids, opts ...grpc.CallOption) (*Empty, error) { client := pb.NewGoGameClientClient(m.cli.Conn()) return client.GameCategoryDel(ctx, in, opts...) } func (m *defaultGoGameClient) GameCategoryGet(ctx context.Context, in *GameCategoryReq, opts ...grpc.CallOption) (*GameCategoryVo, error) { client := pb.NewGoGameClientClient(m.cli.Conn()) return client.GameCategoryGet(ctx, in, opts...) } func (m *defaultGoGameClient) GameCategoryList(ctx context.Context, in *GameCategoryListReq, opts ...grpc.CallOption) (*GameCategoryListRes, error) { client := pb.NewGoGameClientClient(m.cli.Conn()) return client.GameCategoryList(ctx, in, opts...) } func (m *defaultGoGameClient) GameCategoryAll(ctx context.Context, in *Request, opts ...grpc.CallOption) (*GameCategoryListRes, error) { client := pb.NewGoGameClientClient(m.cli.Conn()) return client.GameCategoryAll(ctx, in, opts...) }