tkcashgame_v4/api/eonline/v1/eonline_grpc.pb.go

541 lines
20 KiB
Go
Raw Normal View History

2025-10-22 10:01:11 +00:00
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
// - protoc-gen-go-grpc v1.3.0
// - protoc v3.20.3
// source: api/eonline/v1/eonline.proto
package v1
import (
context "context"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
)
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
// Requires gRPC-Go v1.32.0 or later.
const _ = grpc.SupportPackageIsVersion7
const (
Eonline_SayHello_FullMethodName = "/api.eonline.v1.Eonline/SayHello"
Eonline_PayInit_FullMethodName = "/api.eonline.v1.Eonline/PayInit"
Eonline_Payout_FullMethodName = "/api.eonline.v1.Eonline/Payout"
Eonline_PayoutBrazil_FullMethodName = "/api.eonline.v1.Eonline/PayoutBrazil"
Eonline_PayoutCallback_FullMethodName = "/api.eonline.v1.Eonline/PayoutCallback"
Eonline_PayoutCheck_FullMethodName = "/api.eonline.v1.Eonline/PayoutCheck"
Eonline_GetPayoutUserLst_FullMethodName = "/api.eonline.v1.Eonline/GetPayoutUserLst"
Eonline_SetPayoutStatus_FullMethodName = "/api.eonline.v1.Eonline/SetPayoutStatus"
Eonline_SubmitCheck_FullMethodName = "/api.eonline.v1.Eonline/SubmitCheck"
Eonline_CheckInfo_FullMethodName = "/api.eonline.v1.Eonline/CheckInfo"
Eonline_AddChat_FullMethodName = "/api.eonline.v1.Eonline/AddChat"
Eonline_GetChat_FullMethodName = "/api.eonline.v1.Eonline/GetChat"
)
// EonlineClient is the client API for Eonline service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
type EonlineClient interface {
// Sends a greeting客户端暂未用到
SayHello(ctx context.Context, in *HelloRequest, opts ...grpc.CallOption) (*HelloReply, error)
// PayInit
PayInit(ctx context.Context, in *PayInitReq, opts ...grpc.CallOption) (*PayInitReply, error)
// Payout客户端暂未用到
Payout(ctx context.Context, in *PayoutReq, opts ...grpc.CallOption) (*PayoutReply, error)
// PayoutBrazil用于巴西PIX支付
PayoutBrazil(ctx context.Context, in *PayoutReq, opts ...grpc.CallOption) (*PayoutReply, error)
// PayoutCallback客户端暂未用到
PayoutCallback(ctx context.Context, in *PayoutCallbackReq, opts ...grpc.CallOption) (*PayoutCallbackReply, error)
// PayoutCheck
PayoutCheck(ctx context.Context, in *PayoutCheckReq, opts ...grpc.CallOption) (*PayoutCheckReply, error)
// 获取申请提现玩家的列表
GetPayoutUserLst(ctx context.Context, in *PayoutUserLstReq, opts ...grpc.CallOption) (*PayoutUserLstReply, error)
// 设置指定玩家的提现状态
SetPayoutStatus(ctx context.Context, in *PayoutStatusReq, opts ...grpc.CallOption) (*PayoutStatusReply, error)
// SubmitCheck客户端暂未用到
SubmitCheck(ctx context.Context, in *SubmitCheckReq, opts ...grpc.CallOption) (*SubmitCheckReply, error)
// CheckInfo客户端暂未用到
CheckInfo(ctx context.Context, in *CheckInfoReq, opts ...grpc.CallOption) (*CheckInfoReply, error)
// 发送聊天消息,客户端暂未用到
AddChat(ctx context.Context, in *AddChatReq, opts ...grpc.CallOption) (*AddChatReply, error)
// 获取聊天消息列表,客户端暂未用到
GetChat(ctx context.Context, in *GetChatReq, opts ...grpc.CallOption) (*GetChatReply, error)
}
type eonlineClient struct {
cc grpc.ClientConnInterface
}
func NewEonlineClient(cc grpc.ClientConnInterface) EonlineClient {
return &eonlineClient{cc}
}
func (c *eonlineClient) SayHello(ctx context.Context, in *HelloRequest, opts ...grpc.CallOption) (*HelloReply, error) {
out := new(HelloReply)
err := c.cc.Invoke(ctx, Eonline_SayHello_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *eonlineClient) PayInit(ctx context.Context, in *PayInitReq, opts ...grpc.CallOption) (*PayInitReply, error) {
out := new(PayInitReply)
err := c.cc.Invoke(ctx, Eonline_PayInit_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *eonlineClient) Payout(ctx context.Context, in *PayoutReq, opts ...grpc.CallOption) (*PayoutReply, error) {
out := new(PayoutReply)
err := c.cc.Invoke(ctx, Eonline_Payout_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *eonlineClient) PayoutBrazil(ctx context.Context, in *PayoutReq, opts ...grpc.CallOption) (*PayoutReply, error) {
out := new(PayoutReply)
err := c.cc.Invoke(ctx, Eonline_PayoutBrazil_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *eonlineClient) PayoutCallback(ctx context.Context, in *PayoutCallbackReq, opts ...grpc.CallOption) (*PayoutCallbackReply, error) {
out := new(PayoutCallbackReply)
err := c.cc.Invoke(ctx, Eonline_PayoutCallback_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *eonlineClient) PayoutCheck(ctx context.Context, in *PayoutCheckReq, opts ...grpc.CallOption) (*PayoutCheckReply, error) {
out := new(PayoutCheckReply)
err := c.cc.Invoke(ctx, Eonline_PayoutCheck_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *eonlineClient) GetPayoutUserLst(ctx context.Context, in *PayoutUserLstReq, opts ...grpc.CallOption) (*PayoutUserLstReply, error) {
out := new(PayoutUserLstReply)
err := c.cc.Invoke(ctx, Eonline_GetPayoutUserLst_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *eonlineClient) SetPayoutStatus(ctx context.Context, in *PayoutStatusReq, opts ...grpc.CallOption) (*PayoutStatusReply, error) {
out := new(PayoutStatusReply)
err := c.cc.Invoke(ctx, Eonline_SetPayoutStatus_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *eonlineClient) SubmitCheck(ctx context.Context, in *SubmitCheckReq, opts ...grpc.CallOption) (*SubmitCheckReply, error) {
out := new(SubmitCheckReply)
err := c.cc.Invoke(ctx, Eonline_SubmitCheck_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *eonlineClient) CheckInfo(ctx context.Context, in *CheckInfoReq, opts ...grpc.CallOption) (*CheckInfoReply, error) {
out := new(CheckInfoReply)
err := c.cc.Invoke(ctx, Eonline_CheckInfo_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *eonlineClient) AddChat(ctx context.Context, in *AddChatReq, opts ...grpc.CallOption) (*AddChatReply, error) {
out := new(AddChatReply)
err := c.cc.Invoke(ctx, Eonline_AddChat_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *eonlineClient) GetChat(ctx context.Context, in *GetChatReq, opts ...grpc.CallOption) (*GetChatReply, error) {
out := new(GetChatReply)
err := c.cc.Invoke(ctx, Eonline_GetChat_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// EonlineServer is the server API for Eonline service.
// All implementations must embed UnimplementedEonlineServer
// for forward compatibility
type EonlineServer interface {
// Sends a greeting客户端暂未用到
SayHello(context.Context, *HelloRequest) (*HelloReply, error)
// PayInit
PayInit(context.Context, *PayInitReq) (*PayInitReply, error)
// Payout客户端暂未用到
Payout(context.Context, *PayoutReq) (*PayoutReply, error)
// PayoutBrazil用于巴西PIX支付
PayoutBrazil(context.Context, *PayoutReq) (*PayoutReply, error)
// PayoutCallback客户端暂未用到
PayoutCallback(context.Context, *PayoutCallbackReq) (*PayoutCallbackReply, error)
// PayoutCheck
PayoutCheck(context.Context, *PayoutCheckReq) (*PayoutCheckReply, error)
// 获取申请提现玩家的列表
GetPayoutUserLst(context.Context, *PayoutUserLstReq) (*PayoutUserLstReply, error)
// 设置指定玩家的提现状态
SetPayoutStatus(context.Context, *PayoutStatusReq) (*PayoutStatusReply, error)
// SubmitCheck客户端暂未用到
SubmitCheck(context.Context, *SubmitCheckReq) (*SubmitCheckReply, error)
// CheckInfo客户端暂未用到
CheckInfo(context.Context, *CheckInfoReq) (*CheckInfoReply, error)
// 发送聊天消息,客户端暂未用到
AddChat(context.Context, *AddChatReq) (*AddChatReply, error)
// 获取聊天消息列表,客户端暂未用到
GetChat(context.Context, *GetChatReq) (*GetChatReply, error)
mustEmbedUnimplementedEonlineServer()
}
// UnimplementedEonlineServer must be embedded to have forward compatible implementations.
type UnimplementedEonlineServer struct {
}
func (UnimplementedEonlineServer) SayHello(context.Context, *HelloRequest) (*HelloReply, error) {
return nil, status.Errorf(codes.Unimplemented, "method SayHello not implemented")
}
func (UnimplementedEonlineServer) PayInit(context.Context, *PayInitReq) (*PayInitReply, error) {
return nil, status.Errorf(codes.Unimplemented, "method PayInit not implemented")
}
func (UnimplementedEonlineServer) Payout(context.Context, *PayoutReq) (*PayoutReply, error) {
return nil, status.Errorf(codes.Unimplemented, "method Payout not implemented")
}
func (UnimplementedEonlineServer) PayoutBrazil(context.Context, *PayoutReq) (*PayoutReply, error) {
return nil, status.Errorf(codes.Unimplemented, "method PayoutBrazil not implemented")
}
func (UnimplementedEonlineServer) PayoutCallback(context.Context, *PayoutCallbackReq) (*PayoutCallbackReply, error) {
return nil, status.Errorf(codes.Unimplemented, "method PayoutCallback not implemented")
}
func (UnimplementedEonlineServer) PayoutCheck(context.Context, *PayoutCheckReq) (*PayoutCheckReply, error) {
return nil, status.Errorf(codes.Unimplemented, "method PayoutCheck not implemented")
}
func (UnimplementedEonlineServer) GetPayoutUserLst(context.Context, *PayoutUserLstReq) (*PayoutUserLstReply, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetPayoutUserLst not implemented")
}
func (UnimplementedEonlineServer) SetPayoutStatus(context.Context, *PayoutStatusReq) (*PayoutStatusReply, error) {
return nil, status.Errorf(codes.Unimplemented, "method SetPayoutStatus not implemented")
}
func (UnimplementedEonlineServer) SubmitCheck(context.Context, *SubmitCheckReq) (*SubmitCheckReply, error) {
return nil, status.Errorf(codes.Unimplemented, "method SubmitCheck not implemented")
}
func (UnimplementedEonlineServer) CheckInfo(context.Context, *CheckInfoReq) (*CheckInfoReply, error) {
return nil, status.Errorf(codes.Unimplemented, "method CheckInfo not implemented")
}
func (UnimplementedEonlineServer) AddChat(context.Context, *AddChatReq) (*AddChatReply, error) {
return nil, status.Errorf(codes.Unimplemented, "method AddChat not implemented")
}
func (UnimplementedEonlineServer) GetChat(context.Context, *GetChatReq) (*GetChatReply, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetChat not implemented")
}
func (UnimplementedEonlineServer) mustEmbedUnimplementedEonlineServer() {}
// UnsafeEonlineServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to EonlineServer will
// result in compilation errors.
type UnsafeEonlineServer interface {
mustEmbedUnimplementedEonlineServer()
}
func RegisterEonlineServer(s grpc.ServiceRegistrar, srv EonlineServer) {
s.RegisterService(&Eonline_ServiceDesc, srv)
}
func _Eonline_SayHello_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(HelloRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(EonlineServer).SayHello(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: Eonline_SayHello_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(EonlineServer).SayHello(ctx, req.(*HelloRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Eonline_PayInit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(PayInitReq)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(EonlineServer).PayInit(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: Eonline_PayInit_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(EonlineServer).PayInit(ctx, req.(*PayInitReq))
}
return interceptor(ctx, in, info, handler)
}
func _Eonline_Payout_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(PayoutReq)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(EonlineServer).Payout(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: Eonline_Payout_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(EonlineServer).Payout(ctx, req.(*PayoutReq))
}
return interceptor(ctx, in, info, handler)
}
func _Eonline_PayoutBrazil_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(PayoutReq)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(EonlineServer).PayoutBrazil(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: Eonline_PayoutBrazil_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(EonlineServer).PayoutBrazil(ctx, req.(*PayoutReq))
}
return interceptor(ctx, in, info, handler)
}
func _Eonline_PayoutCallback_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(PayoutCallbackReq)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(EonlineServer).PayoutCallback(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: Eonline_PayoutCallback_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(EonlineServer).PayoutCallback(ctx, req.(*PayoutCallbackReq))
}
return interceptor(ctx, in, info, handler)
}
func _Eonline_PayoutCheck_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(PayoutCheckReq)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(EonlineServer).PayoutCheck(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: Eonline_PayoutCheck_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(EonlineServer).PayoutCheck(ctx, req.(*PayoutCheckReq))
}
return interceptor(ctx, in, info, handler)
}
func _Eonline_GetPayoutUserLst_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(PayoutUserLstReq)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(EonlineServer).GetPayoutUserLst(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: Eonline_GetPayoutUserLst_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(EonlineServer).GetPayoutUserLst(ctx, req.(*PayoutUserLstReq))
}
return interceptor(ctx, in, info, handler)
}
func _Eonline_SetPayoutStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(PayoutStatusReq)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(EonlineServer).SetPayoutStatus(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: Eonline_SetPayoutStatus_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(EonlineServer).SetPayoutStatus(ctx, req.(*PayoutStatusReq))
}
return interceptor(ctx, in, info, handler)
}
func _Eonline_SubmitCheck_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(SubmitCheckReq)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(EonlineServer).SubmitCheck(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: Eonline_SubmitCheck_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(EonlineServer).SubmitCheck(ctx, req.(*SubmitCheckReq))
}
return interceptor(ctx, in, info, handler)
}
func _Eonline_CheckInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CheckInfoReq)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(EonlineServer).CheckInfo(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: Eonline_CheckInfo_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(EonlineServer).CheckInfo(ctx, req.(*CheckInfoReq))
}
return interceptor(ctx, in, info, handler)
}
func _Eonline_AddChat_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(AddChatReq)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(EonlineServer).AddChat(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: Eonline_AddChat_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(EonlineServer).AddChat(ctx, req.(*AddChatReq))
}
return interceptor(ctx, in, info, handler)
}
func _Eonline_GetChat_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetChatReq)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(EonlineServer).GetChat(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: Eonline_GetChat_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(EonlineServer).GetChat(ctx, req.(*GetChatReq))
}
return interceptor(ctx, in, info, handler)
}
// Eonline_ServiceDesc is the grpc.ServiceDesc for Eonline service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var Eonline_ServiceDesc = grpc.ServiceDesc{
ServiceName: "api.eonline.v1.Eonline",
HandlerType: (*EonlineServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "SayHello",
Handler: _Eonline_SayHello_Handler,
},
{
MethodName: "PayInit",
Handler: _Eonline_PayInit_Handler,
},
{
MethodName: "Payout",
Handler: _Eonline_Payout_Handler,
},
{
MethodName: "PayoutBrazil",
Handler: _Eonline_PayoutBrazil_Handler,
},
{
MethodName: "PayoutCallback",
Handler: _Eonline_PayoutCallback_Handler,
},
{
MethodName: "PayoutCheck",
Handler: _Eonline_PayoutCheck_Handler,
},
{
MethodName: "GetPayoutUserLst",
Handler: _Eonline_GetPayoutUserLst_Handler,
},
{
MethodName: "SetPayoutStatus",
Handler: _Eonline_SetPayoutStatus_Handler,
},
{
MethodName: "SubmitCheck",
Handler: _Eonline_SubmitCheck_Handler,
},
{
MethodName: "CheckInfo",
Handler: _Eonline_CheckInfo_Handler,
},
{
MethodName: "AddChat",
Handler: _Eonline_AddChat_Handler,
},
{
MethodName: "GetChat",
Handler: _Eonline_GetChat_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "api/eonline/v1/eonline.proto",
}