You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
352 lines
14 KiB
352 lines
14 KiB
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
|
|
// versions:
|
|
// - protoc-gen-go-grpc v1.4.0
|
|
// - protoc v5.27.1
|
|
// source: matchmaking/v1/money/money.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.62.0 or later.
|
|
const _ = grpc.SupportPackageIsVersion8
|
|
|
|
const (
|
|
Money_GetBotMoneyTrade_FullMethodName = "/matchmaking.v1.Money/GetBotMoneyTrade"
|
|
Money_MoneyPlaceOrder_FullMethodName = "/matchmaking.v1.Money/MoneyPlaceOrder"
|
|
Money_MoneyUpdatePlaceOrder_FullMethodName = "/matchmaking.v1.Money/MoneyUpdatePlaceOrder"
|
|
Money_MoneyPosition_FullMethodName = "/matchmaking.v1.Money/MoneyPosition"
|
|
Money_MoneyAllPosition_FullMethodName = "/matchmaking.v1.Money/MoneyAllPosition"
|
|
Money_MoneyCancel_FullMethodName = "/matchmaking.v1.Money/MoneyCancel"
|
|
Money_MoneyOneClickRedemption_FullMethodName = "/matchmaking.v1.Money/MoneyOneClickRedemption"
|
|
)
|
|
|
|
// MoneyClient is the client API for Money 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 MoneyClient interface {
|
|
// GetBotMoneyTrade 综合列表查询
|
|
GetBotMoneyTrade(ctx context.Context, in *GetBotMoneyTradeRequest, opts ...grpc.CallOption) (*GetBotMoneyTradeReply, error)
|
|
// MoneyPlaceOrder 综合下单
|
|
MoneyPlaceOrder(ctx context.Context, in *MoneyRequest, opts ...grpc.CallOption) (*MoneyReply, error)
|
|
// MoneyUpdatePlaceOrder 综合设置止盈止损
|
|
MoneyUpdatePlaceOrder(ctx context.Context, in *UpdateMoneyRequest, opts ...grpc.CallOption) (*MoneyReply, error)
|
|
// MoneyPosition 综合平仓
|
|
MoneyPosition(ctx context.Context, in *CancelMoneyRequest, opts ...grpc.CallOption) (*MoneyReply, error)
|
|
// MoneyAllPosition 综合一键平仓
|
|
MoneyAllPosition(ctx context.Context, in *AllMoneyRequest, opts ...grpc.CallOption) (*AllMoneyReply, error)
|
|
// MoneyCancel 综合撤单
|
|
MoneyCancel(ctx context.Context, in *CancelMoneyRequest, opts ...grpc.CallOption) (*MoneyReply, error)
|
|
// MoneyOneClickRedemption 现货一键兑换
|
|
MoneyOneClickRedemption(ctx context.Context, in *MoneyRequest, opts ...grpc.CallOption) (*MoneyReply, error)
|
|
}
|
|
|
|
type moneyClient struct {
|
|
cc grpc.ClientConnInterface
|
|
}
|
|
|
|
func NewMoneyClient(cc grpc.ClientConnInterface) MoneyClient {
|
|
return &moneyClient{cc}
|
|
}
|
|
|
|
func (c *moneyClient) GetBotMoneyTrade(ctx context.Context, in *GetBotMoneyTradeRequest, opts ...grpc.CallOption) (*GetBotMoneyTradeReply, error) {
|
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
out := new(GetBotMoneyTradeReply)
|
|
err := c.cc.Invoke(ctx, Money_GetBotMoneyTrade_FullMethodName, in, out, cOpts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *moneyClient) MoneyPlaceOrder(ctx context.Context, in *MoneyRequest, opts ...grpc.CallOption) (*MoneyReply, error) {
|
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
out := new(MoneyReply)
|
|
err := c.cc.Invoke(ctx, Money_MoneyPlaceOrder_FullMethodName, in, out, cOpts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *moneyClient) MoneyUpdatePlaceOrder(ctx context.Context, in *UpdateMoneyRequest, opts ...grpc.CallOption) (*MoneyReply, error) {
|
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
out := new(MoneyReply)
|
|
err := c.cc.Invoke(ctx, Money_MoneyUpdatePlaceOrder_FullMethodName, in, out, cOpts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *moneyClient) MoneyPosition(ctx context.Context, in *CancelMoneyRequest, opts ...grpc.CallOption) (*MoneyReply, error) {
|
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
out := new(MoneyReply)
|
|
err := c.cc.Invoke(ctx, Money_MoneyPosition_FullMethodName, in, out, cOpts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *moneyClient) MoneyAllPosition(ctx context.Context, in *AllMoneyRequest, opts ...grpc.CallOption) (*AllMoneyReply, error) {
|
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
out := new(AllMoneyReply)
|
|
err := c.cc.Invoke(ctx, Money_MoneyAllPosition_FullMethodName, in, out, cOpts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *moneyClient) MoneyCancel(ctx context.Context, in *CancelMoneyRequest, opts ...grpc.CallOption) (*MoneyReply, error) {
|
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
out := new(MoneyReply)
|
|
err := c.cc.Invoke(ctx, Money_MoneyCancel_FullMethodName, in, out, cOpts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *moneyClient) MoneyOneClickRedemption(ctx context.Context, in *MoneyRequest, opts ...grpc.CallOption) (*MoneyReply, error) {
|
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
out := new(MoneyReply)
|
|
err := c.cc.Invoke(ctx, Money_MoneyOneClickRedemption_FullMethodName, in, out, cOpts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
// MoneyServer is the server API for Money service.
|
|
// All implementations must embed UnimplementedMoneyServer
|
|
// for forward compatibility
|
|
type MoneyServer interface {
|
|
// GetBotMoneyTrade 综合列表查询
|
|
GetBotMoneyTrade(context.Context, *GetBotMoneyTradeRequest) (*GetBotMoneyTradeReply, error)
|
|
// MoneyPlaceOrder 综合下单
|
|
MoneyPlaceOrder(context.Context, *MoneyRequest) (*MoneyReply, error)
|
|
// MoneyUpdatePlaceOrder 综合设置止盈止损
|
|
MoneyUpdatePlaceOrder(context.Context, *UpdateMoneyRequest) (*MoneyReply, error)
|
|
// MoneyPosition 综合平仓
|
|
MoneyPosition(context.Context, *CancelMoneyRequest) (*MoneyReply, error)
|
|
// MoneyAllPosition 综合一键平仓
|
|
MoneyAllPosition(context.Context, *AllMoneyRequest) (*AllMoneyReply, error)
|
|
// MoneyCancel 综合撤单
|
|
MoneyCancel(context.Context, *CancelMoneyRequest) (*MoneyReply, error)
|
|
// MoneyOneClickRedemption 现货一键兑换
|
|
MoneyOneClickRedemption(context.Context, *MoneyRequest) (*MoneyReply, error)
|
|
mustEmbedUnimplementedMoneyServer()
|
|
}
|
|
|
|
// UnimplementedMoneyServer must be embedded to have forward compatible implementations.
|
|
type UnimplementedMoneyServer struct {
|
|
}
|
|
|
|
func (UnimplementedMoneyServer) GetBotMoneyTrade(context.Context, *GetBotMoneyTradeRequest) (*GetBotMoneyTradeReply, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method GetBotMoneyTrade not implemented")
|
|
}
|
|
func (UnimplementedMoneyServer) MoneyPlaceOrder(context.Context, *MoneyRequest) (*MoneyReply, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method MoneyPlaceOrder not implemented")
|
|
}
|
|
func (UnimplementedMoneyServer) MoneyUpdatePlaceOrder(context.Context, *UpdateMoneyRequest) (*MoneyReply, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method MoneyUpdatePlaceOrder not implemented")
|
|
}
|
|
func (UnimplementedMoneyServer) MoneyPosition(context.Context, *CancelMoneyRequest) (*MoneyReply, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method MoneyPosition not implemented")
|
|
}
|
|
func (UnimplementedMoneyServer) MoneyAllPosition(context.Context, *AllMoneyRequest) (*AllMoneyReply, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method MoneyAllPosition not implemented")
|
|
}
|
|
func (UnimplementedMoneyServer) MoneyCancel(context.Context, *CancelMoneyRequest) (*MoneyReply, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method MoneyCancel not implemented")
|
|
}
|
|
func (UnimplementedMoneyServer) MoneyOneClickRedemption(context.Context, *MoneyRequest) (*MoneyReply, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method MoneyOneClickRedemption not implemented")
|
|
}
|
|
func (UnimplementedMoneyServer) mustEmbedUnimplementedMoneyServer() {}
|
|
|
|
// UnsafeMoneyServer may be embedded to opt out of forward compatibility for this service.
|
|
// Use of this interface is not recommended, as added methods to MoneyServer will
|
|
// result in compilation errors.
|
|
type UnsafeMoneyServer interface {
|
|
mustEmbedUnimplementedMoneyServer()
|
|
}
|
|
|
|
func RegisterMoneyServer(s grpc.ServiceRegistrar, srv MoneyServer) {
|
|
s.RegisterService(&Money_ServiceDesc, srv)
|
|
}
|
|
|
|
func _Money_GetBotMoneyTrade_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(GetBotMoneyTradeRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(MoneyServer).GetBotMoneyTrade(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: Money_GetBotMoneyTrade_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(MoneyServer).GetBotMoneyTrade(ctx, req.(*GetBotMoneyTradeRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _Money_MoneyPlaceOrder_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(MoneyRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(MoneyServer).MoneyPlaceOrder(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: Money_MoneyPlaceOrder_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(MoneyServer).MoneyPlaceOrder(ctx, req.(*MoneyRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _Money_MoneyUpdatePlaceOrder_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(UpdateMoneyRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(MoneyServer).MoneyUpdatePlaceOrder(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: Money_MoneyUpdatePlaceOrder_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(MoneyServer).MoneyUpdatePlaceOrder(ctx, req.(*UpdateMoneyRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _Money_MoneyPosition_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(CancelMoneyRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(MoneyServer).MoneyPosition(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: Money_MoneyPosition_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(MoneyServer).MoneyPosition(ctx, req.(*CancelMoneyRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _Money_MoneyAllPosition_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(AllMoneyRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(MoneyServer).MoneyAllPosition(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: Money_MoneyAllPosition_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(MoneyServer).MoneyAllPosition(ctx, req.(*AllMoneyRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _Money_MoneyCancel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(CancelMoneyRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(MoneyServer).MoneyCancel(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: Money_MoneyCancel_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(MoneyServer).MoneyCancel(ctx, req.(*CancelMoneyRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _Money_MoneyOneClickRedemption_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(MoneyRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(MoneyServer).MoneyOneClickRedemption(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: Money_MoneyOneClickRedemption_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(MoneyServer).MoneyOneClickRedemption(ctx, req.(*MoneyRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
// Money_ServiceDesc is the grpc.ServiceDesc for Money service.
|
|
// It's only intended for direct use with grpc.RegisterService,
|
|
// and not to be introspected or modified (even as a copy)
|
|
var Money_ServiceDesc = grpc.ServiceDesc{
|
|
ServiceName: "matchmaking.v1.Money",
|
|
HandlerType: (*MoneyServer)(nil),
|
|
Methods: []grpc.MethodDesc{
|
|
{
|
|
MethodName: "GetBotMoneyTrade",
|
|
Handler: _Money_GetBotMoneyTrade_Handler,
|
|
},
|
|
{
|
|
MethodName: "MoneyPlaceOrder",
|
|
Handler: _Money_MoneyPlaceOrder_Handler,
|
|
},
|
|
{
|
|
MethodName: "MoneyUpdatePlaceOrder",
|
|
Handler: _Money_MoneyUpdatePlaceOrder_Handler,
|
|
},
|
|
{
|
|
MethodName: "MoneyPosition",
|
|
Handler: _Money_MoneyPosition_Handler,
|
|
},
|
|
{
|
|
MethodName: "MoneyAllPosition",
|
|
Handler: _Money_MoneyAllPosition_Handler,
|
|
},
|
|
{
|
|
MethodName: "MoneyCancel",
|
|
Handler: _Money_MoneyCancel_Handler,
|
|
},
|
|
{
|
|
MethodName: "MoneyOneClickRedemption",
|
|
Handler: _Money_MoneyOneClickRedemption_Handler,
|
|
},
|
|
},
|
|
Streams: []grpc.StreamDesc{},
|
|
Metadata: "matchmaking/v1/money/money.proto",
|
|
}
|
|
|