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.
312 lines
12 KiB
312 lines
12 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/share/shareMys.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 (
|
|
ShareMys_GetBotStockMysTrade_FullMethodName = "/matchmaking.v1.ShareMys/GetBotStockMysTrade"
|
|
ShareMys_ShareMysPlaceOrder_FullMethodName = "/matchmaking.v1.ShareMys/ShareMysPlaceOrder"
|
|
ShareMys_ShareMysUpdateOrder_FullMethodName = "/matchmaking.v1.ShareMys/ShareMysUpdateOrder"
|
|
ShareMys_ShareMysPosition_FullMethodName = "/matchmaking.v1.ShareMys/ShareMysPosition"
|
|
ShareMys_ShareMysAllPosition_FullMethodName = "/matchmaking.v1.ShareMys/ShareMysAllPosition"
|
|
ShareMys_ShareMysCancel_FullMethodName = "/matchmaking.v1.ShareMys/ShareMysCancel"
|
|
)
|
|
|
|
// ShareMysClient is the client API for ShareMys 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 ShareMysClient interface {
|
|
// GetBotStockMysTrade 马股列表查询
|
|
GetBotStockMysTrade(ctx context.Context, in *GetMysBotStockTradeRequest, opts ...grpc.CallOption) (*GetBotStockMysTradeReply, error)
|
|
// ShareMysPlaceOrder 马股下单
|
|
ShareMysPlaceOrder(ctx context.Context, in *ShareMysOrderRequest, opts ...grpc.CallOption) (*MysOrderReply, error)
|
|
// ShareMysUpdateOrder 马股设置止盈止损
|
|
ShareMysUpdateOrder(ctx context.Context, in *UpdateMysOrderRequest, opts ...grpc.CallOption) (*MysOrderReply, error)
|
|
// ShareMysPosition 马股平仓
|
|
ShareMysPosition(ctx context.Context, in *CancelMysOrderRequest, opts ...grpc.CallOption) (*MysOrderReply, error)
|
|
// ShareMysAllPosition 马股一键平仓
|
|
ShareMysAllPosition(ctx context.Context, in *AllMysOrderRequest, opts ...grpc.CallOption) (*AllMysOrderReply, error)
|
|
// ShareMysCancel 马股撤单
|
|
ShareMysCancel(ctx context.Context, in *CancelMysOrderRequest, opts ...grpc.CallOption) (*MysOrderReply, error)
|
|
}
|
|
|
|
type shareMysClient struct {
|
|
cc grpc.ClientConnInterface
|
|
}
|
|
|
|
func NewShareMysClient(cc grpc.ClientConnInterface) ShareMysClient {
|
|
return &shareMysClient{cc}
|
|
}
|
|
|
|
func (c *shareMysClient) GetBotStockMysTrade(ctx context.Context, in *GetMysBotStockTradeRequest, opts ...grpc.CallOption) (*GetBotStockMysTradeReply, error) {
|
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
out := new(GetBotStockMysTradeReply)
|
|
err := c.cc.Invoke(ctx, ShareMys_GetBotStockMysTrade_FullMethodName, in, out, cOpts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *shareMysClient) ShareMysPlaceOrder(ctx context.Context, in *ShareMysOrderRequest, opts ...grpc.CallOption) (*MysOrderReply, error) {
|
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
out := new(MysOrderReply)
|
|
err := c.cc.Invoke(ctx, ShareMys_ShareMysPlaceOrder_FullMethodName, in, out, cOpts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *shareMysClient) ShareMysUpdateOrder(ctx context.Context, in *UpdateMysOrderRequest, opts ...grpc.CallOption) (*MysOrderReply, error) {
|
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
out := new(MysOrderReply)
|
|
err := c.cc.Invoke(ctx, ShareMys_ShareMysUpdateOrder_FullMethodName, in, out, cOpts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *shareMysClient) ShareMysPosition(ctx context.Context, in *CancelMysOrderRequest, opts ...grpc.CallOption) (*MysOrderReply, error) {
|
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
out := new(MysOrderReply)
|
|
err := c.cc.Invoke(ctx, ShareMys_ShareMysPosition_FullMethodName, in, out, cOpts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *shareMysClient) ShareMysAllPosition(ctx context.Context, in *AllMysOrderRequest, opts ...grpc.CallOption) (*AllMysOrderReply, error) {
|
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
out := new(AllMysOrderReply)
|
|
err := c.cc.Invoke(ctx, ShareMys_ShareMysAllPosition_FullMethodName, in, out, cOpts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *shareMysClient) ShareMysCancel(ctx context.Context, in *CancelMysOrderRequest, opts ...grpc.CallOption) (*MysOrderReply, error) {
|
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
out := new(MysOrderReply)
|
|
err := c.cc.Invoke(ctx, ShareMys_ShareMysCancel_FullMethodName, in, out, cOpts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
// ShareMysServer is the server API for ShareMys service.
|
|
// All implementations must embed UnimplementedShareMysServer
|
|
// for forward compatibility
|
|
type ShareMysServer interface {
|
|
// GetBotStockMysTrade 马股列表查询
|
|
GetBotStockMysTrade(context.Context, *GetMysBotStockTradeRequest) (*GetBotStockMysTradeReply, error)
|
|
// ShareMysPlaceOrder 马股下单
|
|
ShareMysPlaceOrder(context.Context, *ShareMysOrderRequest) (*MysOrderReply, error)
|
|
// ShareMysUpdateOrder 马股设置止盈止损
|
|
ShareMysUpdateOrder(context.Context, *UpdateMysOrderRequest) (*MysOrderReply, error)
|
|
// ShareMysPosition 马股平仓
|
|
ShareMysPosition(context.Context, *CancelMysOrderRequest) (*MysOrderReply, error)
|
|
// ShareMysAllPosition 马股一键平仓
|
|
ShareMysAllPosition(context.Context, *AllMysOrderRequest) (*AllMysOrderReply, error)
|
|
// ShareMysCancel 马股撤单
|
|
ShareMysCancel(context.Context, *CancelMysOrderRequest) (*MysOrderReply, error)
|
|
mustEmbedUnimplementedShareMysServer()
|
|
}
|
|
|
|
// UnimplementedShareMysServer must be embedded to have forward compatible implementations.
|
|
type UnimplementedShareMysServer struct {
|
|
}
|
|
|
|
func (UnimplementedShareMysServer) GetBotStockMysTrade(context.Context, *GetMysBotStockTradeRequest) (*GetBotStockMysTradeReply, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method GetBotStockMysTrade not implemented")
|
|
}
|
|
func (UnimplementedShareMysServer) ShareMysPlaceOrder(context.Context, *ShareMysOrderRequest) (*MysOrderReply, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method ShareMysPlaceOrder not implemented")
|
|
}
|
|
func (UnimplementedShareMysServer) ShareMysUpdateOrder(context.Context, *UpdateMysOrderRequest) (*MysOrderReply, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method ShareMysUpdateOrder not implemented")
|
|
}
|
|
func (UnimplementedShareMysServer) ShareMysPosition(context.Context, *CancelMysOrderRequest) (*MysOrderReply, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method ShareMysPosition not implemented")
|
|
}
|
|
func (UnimplementedShareMysServer) ShareMysAllPosition(context.Context, *AllMysOrderRequest) (*AllMysOrderReply, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method ShareMysAllPosition not implemented")
|
|
}
|
|
func (UnimplementedShareMysServer) ShareMysCancel(context.Context, *CancelMysOrderRequest) (*MysOrderReply, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method ShareMysCancel not implemented")
|
|
}
|
|
func (UnimplementedShareMysServer) mustEmbedUnimplementedShareMysServer() {}
|
|
|
|
// UnsafeShareMysServer may be embedded to opt out of forward compatibility for this service.
|
|
// Use of this interface is not recommended, as added methods to ShareMysServer will
|
|
// result in compilation errors.
|
|
type UnsafeShareMysServer interface {
|
|
mustEmbedUnimplementedShareMysServer()
|
|
}
|
|
|
|
func RegisterShareMysServer(s grpc.ServiceRegistrar, srv ShareMysServer) {
|
|
s.RegisterService(&ShareMys_ServiceDesc, srv)
|
|
}
|
|
|
|
func _ShareMys_GetBotStockMysTrade_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(GetMysBotStockTradeRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(ShareMysServer).GetBotStockMysTrade(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: ShareMys_GetBotStockMysTrade_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(ShareMysServer).GetBotStockMysTrade(ctx, req.(*GetMysBotStockTradeRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _ShareMys_ShareMysPlaceOrder_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(ShareMysOrderRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(ShareMysServer).ShareMysPlaceOrder(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: ShareMys_ShareMysPlaceOrder_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(ShareMysServer).ShareMysPlaceOrder(ctx, req.(*ShareMysOrderRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _ShareMys_ShareMysUpdateOrder_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(UpdateMysOrderRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(ShareMysServer).ShareMysUpdateOrder(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: ShareMys_ShareMysUpdateOrder_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(ShareMysServer).ShareMysUpdateOrder(ctx, req.(*UpdateMysOrderRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _ShareMys_ShareMysPosition_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(CancelMysOrderRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(ShareMysServer).ShareMysPosition(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: ShareMys_ShareMysPosition_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(ShareMysServer).ShareMysPosition(ctx, req.(*CancelMysOrderRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _ShareMys_ShareMysAllPosition_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(AllMysOrderRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(ShareMysServer).ShareMysAllPosition(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: ShareMys_ShareMysAllPosition_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(ShareMysServer).ShareMysAllPosition(ctx, req.(*AllMysOrderRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _ShareMys_ShareMysCancel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(CancelMysOrderRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(ShareMysServer).ShareMysCancel(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: ShareMys_ShareMysCancel_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(ShareMysServer).ShareMysCancel(ctx, req.(*CancelMysOrderRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
// ShareMys_ServiceDesc is the grpc.ServiceDesc for ShareMys service.
|
|
// It's only intended for direct use with grpc.RegisterService,
|
|
// and not to be introspected or modified (even as a copy)
|
|
var ShareMys_ServiceDesc = grpc.ServiceDesc{
|
|
ServiceName: "matchmaking.v1.ShareMys",
|
|
HandlerType: (*ShareMysServer)(nil),
|
|
Methods: []grpc.MethodDesc{
|
|
{
|
|
MethodName: "GetBotStockMysTrade",
|
|
Handler: _ShareMys_GetBotStockMysTrade_Handler,
|
|
},
|
|
{
|
|
MethodName: "ShareMysPlaceOrder",
|
|
Handler: _ShareMys_ShareMysPlaceOrder_Handler,
|
|
},
|
|
{
|
|
MethodName: "ShareMysUpdateOrder",
|
|
Handler: _ShareMys_ShareMysUpdateOrder_Handler,
|
|
},
|
|
{
|
|
MethodName: "ShareMysPosition",
|
|
Handler: _ShareMys_ShareMysPosition_Handler,
|
|
},
|
|
{
|
|
MethodName: "ShareMysAllPosition",
|
|
Handler: _ShareMys_ShareMysAllPosition_Handler,
|
|
},
|
|
{
|
|
MethodName: "ShareMysCancel",
|
|
Handler: _ShareMys_ShareMysCancel_Handler,
|
|
},
|
|
},
|
|
Streams: []grpc.StreamDesc{},
|
|
Metadata: "matchmaking/v1/share/shareMys.proto",
|
|
}
|
|
|