Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterAssetsServer(s grpc.ServiceRegistrar, srv AssetsServer)
- func RegisterFundServer(s grpc.ServiceRegistrar, srv FundServer)
- func RegisterTransactionRecordServer(s grpc.ServiceRegistrar, srv TransactionRecordServer)
- func RegisterTransactionServer(s grpc.ServiceRegistrar, srv TransactionServer)
- type Account
- func (*Account) Descriptor() ([]byte, []int)deprecated
- func (x *Account) GetAliasName() string
- func (x *Account) GetEndCash() float64
- func (x *Account) GetFundNo() string
- func (x *Account) GetInitDatetime() int64
- func (x *Account) GetOpeningCash() float64
- func (x *Account) GetStatus() int32
- func (x *Account) GetUserId() string
- func (x *Account) GetYesterdayEndCash() float64
- func (*Account) ProtoMessage()
- func (x *Account) ProtoReflect() protoreflect.Message
- func (x *Account) Reset()
- func (x *Account) String() string
- type AccountListResp
- func (*AccountListResp) Descriptor() ([]byte, []int)deprecated
- func (x *AccountListResp) GetAccounts() []*Account
- func (x *AccountListResp) GetTotalCount() int64
- func (*AccountListResp) ProtoMessage()
- func (x *AccountListResp) ProtoReflect() protoreflect.Message
- func (x *AccountListResp) Reset()
- func (x *AccountListResp) String() string
- type AssetsClient
- type AssetsServer
- type Fee
- func (*Fee) Descriptor() ([]byte, []int)deprecated
- func (x *Fee) GetId() string
- func (x *Fee) GetItem() string
- func (x *Fee) GetMoney() float64
- func (x *Fee) GetRecordId() string
- func (*Fee) ProtoMessage()
- func (x *Fee) ProtoReflect() protoreflect.Message
- func (x *Fee) Reset()
- func (x *Fee) String() string
- type FundClient
- type FundServer
- type InitAccountReq
- func (*InitAccountReq) Descriptor() ([]byte, []int)deprecated
- func (x *InitAccountReq) GetAliasName() string
- func (x *InitAccountReq) GetOpeningCash() float64
- func (x *InitAccountReq) GetUserId() string
- func (*InitAccountReq) ProtoMessage()
- func (x *InitAccountReq) ProtoReflect() protoreflect.Message
- func (x *InitAccountReq) Reset()
- func (x *InitAccountReq) String() string
- type Item
- func (*Item) Descriptor() ([]byte, []int)deprecated
- func (x *Item) GetCashPosition() float64
- func (x *Item) GetCode() string
- func (x *Item) GetFirstBuyDatetime() int64
- func (x *Item) GetFundNo() string
- func (x *Item) GetName() string
- func (x *Item) GetOpenId() string
- func (x *Item) GetOpenInterest() int64
- func (x *Item) GetType() Item_Type
- func (x *Item) GetUserId() string
- func (*Item) ProtoMessage()
- func (x *Item) ProtoReflect() protoreflect.Message
- func (x *Item) Reset()
- func (x *Item) String() string
- type ItemListResp
- func (*ItemListResp) Descriptor() ([]byte, []int)deprecated
- func (x *ItemListResp) GetItems() []*Item
- func (x *ItemListResp) GetTotalCount() int64
- func (*ItemListResp) ProtoMessage()
- func (x *ItemListResp) ProtoReflect() protoreflect.Message
- func (x *ItemListResp) Reset()
- func (x *ItemListResp) String() string
- type Item_Type
- type ModifyAliasNameReq
- func (*ModifyAliasNameReq) Descriptor() ([]byte, []int)deprecated
- func (x *ModifyAliasNameReq) GetAliasName() string
- func (x *ModifyAliasNameReq) GetFundNo() string
- func (*ModifyAliasNameReq) ProtoMessage()
- func (x *ModifyAliasNameReq) ProtoReflect() protoreflect.Message
- func (x *ModifyAliasNameReq) Reset()
- func (x *ModifyAliasNameReq) String() string
- type Record
- func (*Record) Descriptor() ([]byte, []int)deprecated
- func (x *Record) GetAction() Record_Action
- func (x *Record) GetClosePrice() float64
- func (x *Record) GetCode() string
- func (x *Record) GetFee() []*Fee
- func (x *Record) GetFundNo() string
- func (x *Record) GetId() string
- func (x *Record) GetName() string
- func (x *Record) GetType() Record_Type
- func (x *Record) GetUserId() string
- func (x *Record) GetVolume() int64
- func (*Record) ProtoMessage()
- func (x *Record) ProtoReflect() protoreflect.Message
- func (x *Record) Reset()
- func (x *Record) String() string
- type RecordResp
- func (*RecordResp) Descriptor() ([]byte, []int)deprecated
- func (x *RecordResp) GetRecords() []*Record
- func (x *RecordResp) GetTotalCount() int64
- func (*RecordResp) ProtoMessage()
- func (x *RecordResp) ProtoReflect() protoreflect.Message
- func (x *RecordResp) Reset()
- func (x *RecordResp) String() string
- type Record_Action
- func (Record_Action) Descriptor() protoreflect.EnumDescriptor
- func (x Record_Action) Enum() *Record_Action
- func (Record_Action) EnumDescriptor() ([]byte, []int)deprecated
- func (x Record_Action) Number() protoreflect.EnumNumber
- func (x Record_Action) String() string
- func (Record_Action) Type() protoreflect.EnumType
- type Record_Type
- func (Record_Type) Descriptor() protoreflect.EnumDescriptor
- func (x Record_Type) Enum() *Record_Type
- func (Record_Type) EnumDescriptor() ([]byte, []int)deprecated
- func (x Record_Type) Number() protoreflect.EnumNumber
- func (x Record_Type) String() string
- func (Record_Type) Type() protoreflect.EnumType
- type Securities
- func (*Securities) Descriptor() ([]byte, []int)deprecated
- func (x *Securities) GetClosePrice() float64
- func (x *Securities) GetCode() string
- func (x *Securities) GetFundNo() string
- func (x *Securities) GetType() Securities_Type
- func (x *Securities) GetUserId() string
- func (x *Securities) GetVolume() int64
- func (*Securities) ProtoMessage()
- func (x *Securities) ProtoReflect() protoreflect.Message
- func (x *Securities) Reset()
- func (x *Securities) String() string
- type Securities_Type
- func (Securities_Type) Descriptor() protoreflect.EnumDescriptor
- func (x Securities_Type) Enum() *Securities_Type
- func (Securities_Type) EnumDescriptor() ([]byte, []int)deprecated
- func (x Securities_Type) Number() protoreflect.EnumNumber
- func (x Securities_Type) String() string
- func (Securities_Type) Type() protoreflect.EnumType
- type TransactionClient
- type TransactionRecordClient
- type TransactionRecordServer
- type TransactionServer
- type UnimplementedAssetsServer
- type UnimplementedFundServer
- func (UnimplementedFundServer) InitAccount(context.Context, *InitAccountReq) (*emptypb.Empty, error)
- func (UnimplementedFundServer) ListByUserId(context.Context, *wrapperspb.StringValue) (*AccountListResp, error)
- func (UnimplementedFundServer) ModifyAliasName(context.Context, *ModifyAliasNameReq) (*emptypb.Empty, error)
- func (UnimplementedFundServer) ReblanceByUserId(context.Context, *wrapperspb.StringValue) (*emptypb.Empty, error)
- type UnimplementedTransactionRecordServer
- type UnimplementedTransactionServer
- type UnsafeAssetsServer
- type UnsafeFundServer
- type UnsafeTransactionRecordServer
- type UnsafeTransactionServer
Constants ¶
const ( Fund_ReblanceByUserId_FullMethodName = "/account.Fund/ReblanceByUserId" Fund_InitAccount_FullMethodName = "/account.Fund/InitAccount" Fund_ListByUserId_FullMethodName = "/account.Fund/ListByUserId" Fund_ModifyAliasName_FullMethodName = "/account.Fund/ModifyAliasName" )
const ( Transaction_Sell_FullMethodName = "/account.Transaction/Sell" Transaction_Buy_FullMethodName = "/account.Transaction/Buy" )
const ( TransactionRecord_ListByUserId_FullMethodName = "/account.TransactionRecord/ListByUserId" TransactionRecord_ListByOpenID_FullMethodName = "/account.TransactionRecord/ListByOpenID" )
const (
Assets_ListByUserId_FullMethodName = "/account.Assets/ListByUserId"
)
Variables ¶
var ( Item_Type_name = map[int32]string{ 0: "STOCK", 1: "ETF", } Item_Type_value = map[string]int32{ "STOCK": 0, "ETF": 1, } )
Enum value maps for Item_Type.
var ( Securities_Type_name = map[int32]string{ 0: "STOCK", 1: "ETF", } Securities_Type_value = map[string]int32{ "STOCK": 0, "ETF": 1, } )
Enum value maps for Securities_Type.
var ( Record_Action_name = map[int32]string{ 0: "BUY", 1: "SELL", } Record_Action_value = map[string]int32{ "BUY": 0, "SELL": 1, } )
Enum value maps for Record_Action.
var ( Record_Type_name = map[int32]string{ 0: "STOCK", 1: "ETF", } Record_Type_value = map[string]int32{ "STOCK": 0, "ETF": 1, } )
Enum value maps for Record_Type.
var Assets_ServiceDesc = grpc.ServiceDesc{ ServiceName: "account.Assets", HandlerType: (*AssetsServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ListByUserId", Handler: _Assets_ListByUserId_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "assets.proto", }
Assets_ServiceDesc is the grpc.ServiceDesc for Assets service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_assets_proto protoreflect.FileDescriptor
var File_fund_proto protoreflect.FileDescriptor
var File_transaction_proto protoreflect.FileDescriptor
var File_transaction_record_proto protoreflect.FileDescriptor
var Fund_ServiceDesc = grpc.ServiceDesc{ ServiceName: "account.Fund", HandlerType: (*FundServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ReblanceByUserId", Handler: _Fund_ReblanceByUserId_Handler, }, { MethodName: "InitAccount", Handler: _Fund_InitAccount_Handler, }, { MethodName: "ListByUserId", Handler: _Fund_ListByUserId_Handler, }, { MethodName: "ModifyAliasName", Handler: _Fund_ModifyAliasName_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "fund.proto", }
Fund_ServiceDesc is the grpc.ServiceDesc for Fund service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var TransactionRecord_ServiceDesc = grpc.ServiceDesc{ ServiceName: "account.TransactionRecord", HandlerType: (*TransactionRecordServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ListByUserId", Handler: _TransactionRecord_ListByUserId_Handler, }, { MethodName: "ListByOpenID", Handler: _TransactionRecord_ListByOpenID_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "transaction_record.proto", }
TransactionRecord_ServiceDesc is the grpc.ServiceDesc for TransactionRecord service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var Transaction_ServiceDesc = grpc.ServiceDesc{ ServiceName: "account.Transaction", HandlerType: (*TransactionServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Sell", Handler: _Transaction_Sell_Handler, }, { MethodName: "Buy", Handler: _Transaction_Buy_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "transaction.proto", }
Transaction_ServiceDesc is the grpc.ServiceDesc for Transaction service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterAssetsServer ¶
func RegisterAssetsServer(s grpc.ServiceRegistrar, srv AssetsServer)
func RegisterFundServer ¶
func RegisterFundServer(s grpc.ServiceRegistrar, srv FundServer)
func RegisterTransactionRecordServer ¶
func RegisterTransactionRecordServer(s grpc.ServiceRegistrar, srv TransactionRecordServer)
func RegisterTransactionServer ¶
func RegisterTransactionServer(s grpc.ServiceRegistrar, srv TransactionServer)
Types ¶
type Account ¶
type Account struct { AliasName string `protobuf:"bytes,1,opt,name=alias_name,json=aliasName,proto3" json:"alias_name,omitempty"` UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` FundNo string `protobuf:"bytes,3,opt,name=fund_no,json=fundNo,proto3" json:"fund_no,omitempty"` OpeningCash float64 `protobuf:"fixed64,4,opt,name=opening_cash,json=openingCash,proto3" json:"opening_cash,omitempty"` EndCash float64 `protobuf:"fixed64,5,opt,name=end_cash,json=endCash,proto3" json:"end_cash,omitempty"` YesterdayEndCash float64 `protobuf:"fixed64,6,opt,name=yesterday_end_cash,json=yesterdayEndCash,proto3" json:"yesterday_end_cash,omitempty"` Status int32 `protobuf:"varint,7,opt,name=status,proto3" json:"status,omitempty"` InitDatetime int64 `protobuf:"varint,8,opt,name=init_datetime,json=initDatetime,proto3" json:"init_datetime,omitempty"` // contains filtered or unexported fields }
func (*Account) Descriptor
deprecated
func (*Account) GetAliasName ¶
func (*Account) GetEndCash ¶
func (*Account) GetInitDatetime ¶
func (*Account) GetOpeningCash ¶
func (*Account) GetYesterdayEndCash ¶
func (*Account) ProtoMessage ¶
func (*Account) ProtoMessage()
func (*Account) ProtoReflect ¶
func (x *Account) ProtoReflect() protoreflect.Message
type AccountListResp ¶
type AccountListResp struct { Accounts []*Account `protobuf:"bytes,1,rep,name=accounts,proto3" json:"accounts,omitempty"` TotalCount int64 `protobuf:"varint,2,opt,name=total_count,json=totalCount,proto3" json:"total_count,omitempty"` // contains filtered or unexported fields }
func (*AccountListResp) Descriptor
deprecated
func (*AccountListResp) Descriptor() ([]byte, []int)
Deprecated: Use AccountListResp.ProtoReflect.Descriptor instead.
func (*AccountListResp) GetAccounts ¶
func (x *AccountListResp) GetAccounts() []*Account
func (*AccountListResp) GetTotalCount ¶
func (x *AccountListResp) GetTotalCount() int64
func (*AccountListResp) ProtoMessage ¶
func (*AccountListResp) ProtoMessage()
func (*AccountListResp) ProtoReflect ¶
func (x *AccountListResp) ProtoReflect() protoreflect.Message
func (*AccountListResp) Reset ¶
func (x *AccountListResp) Reset()
func (*AccountListResp) String ¶
func (x *AccountListResp) String() string
type AssetsClient ¶
type AssetsClient interface {
ListByUserId(ctx context.Context, in *wrapperspb.StringValue, opts ...grpc.CallOption) (*ItemListResp, error)
}
AssetsClient is the client API for Assets 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.
func NewAssetsClient ¶
func NewAssetsClient(cc grpc.ClientConnInterface) AssetsClient
type AssetsServer ¶
type AssetsServer interface { ListByUserId(context.Context, *wrapperspb.StringValue) (*ItemListResp, error) // contains filtered or unexported methods }
AssetsServer is the server API for Assets service. All implementations must embed UnimplementedAssetsServer for forward compatibility.
type Fee ¶
type Fee struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` RecordId string `protobuf:"bytes,2,opt,name=record_id,json=recordId,proto3" json:"record_id,omitempty"` Item string `protobuf:"bytes,3,opt,name=item,proto3" json:"item,omitempty"` Money float64 `protobuf:"fixed64,4,opt,name=money,proto3" json:"money,omitempty"` // contains filtered or unexported fields }
func (*Fee) Descriptor
deprecated
func (*Fee) GetRecordId ¶
func (*Fee) ProtoMessage ¶
func (*Fee) ProtoMessage()
func (*Fee) ProtoReflect ¶
func (x *Fee) ProtoReflect() protoreflect.Message
type FundClient ¶
type FundClient interface { ReblanceByUserId(ctx context.Context, in *wrapperspb.StringValue, opts ...grpc.CallOption) (*emptypb.Empty, error) InitAccount(ctx context.Context, in *InitAccountReq, opts ...grpc.CallOption) (*emptypb.Empty, error) ListByUserId(ctx context.Context, in *wrapperspb.StringValue, opts ...grpc.CallOption) (*AccountListResp, error) ModifyAliasName(ctx context.Context, in *ModifyAliasNameReq, opts ...grpc.CallOption) (*emptypb.Empty, error) }
FundClient is the client API for Fund 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.
func NewFundClient ¶
func NewFundClient(cc grpc.ClientConnInterface) FundClient
type FundServer ¶
type FundServer interface { ReblanceByUserId(context.Context, *wrapperspb.StringValue) (*emptypb.Empty, error) InitAccount(context.Context, *InitAccountReq) (*emptypb.Empty, error) ListByUserId(context.Context, *wrapperspb.StringValue) (*AccountListResp, error) ModifyAliasName(context.Context, *ModifyAliasNameReq) (*emptypb.Empty, error) // contains filtered or unexported methods }
FundServer is the server API for Fund service. All implementations must embed UnimplementedFundServer for forward compatibility.
type InitAccountReq ¶
type InitAccountReq struct { AliasName string `protobuf:"bytes,1,opt,name=alias_name,json=aliasName,proto3" json:"alias_name,omitempty"` UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` OpeningCash float64 `protobuf:"fixed64,3,opt,name=opening_cash,json=openingCash,proto3" json:"opening_cash,omitempty"` // contains filtered or unexported fields }
func (*InitAccountReq) Descriptor
deprecated
func (*InitAccountReq) Descriptor() ([]byte, []int)
Deprecated: Use InitAccountReq.ProtoReflect.Descriptor instead.
func (*InitAccountReq) GetAliasName ¶
func (x *InitAccountReq) GetAliasName() string
func (*InitAccountReq) GetOpeningCash ¶
func (x *InitAccountReq) GetOpeningCash() float64
func (*InitAccountReq) GetUserId ¶
func (x *InitAccountReq) GetUserId() string
func (*InitAccountReq) ProtoMessage ¶
func (*InitAccountReq) ProtoMessage()
func (*InitAccountReq) ProtoReflect ¶
func (x *InitAccountReq) ProtoReflect() protoreflect.Message
func (*InitAccountReq) Reset ¶
func (x *InitAccountReq) Reset()
func (*InitAccountReq) String ¶
func (x *InitAccountReq) String() string
type Item ¶
type Item struct { UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` FundNo string `protobuf:"bytes,2,opt,name=fund_no,json=fundNo,proto3" json:"fund_no,omitempty"` Type Item_Type `protobuf:"varint,3,opt,name=type,proto3,enum=account.Item_Type" json:"type,omitempty"` CashPosition float64 `protobuf:"fixed64,4,opt,name=cash_position,json=cashPosition,proto3" json:"cash_position,omitempty"` Code string `protobuf:"bytes,5,opt,name=code,proto3" json:"code,omitempty"` Name string `protobuf:"bytes,6,opt,name=name,proto3" json:"name,omitempty"` OpenInterest int64 `protobuf:"varint,7,opt,name=open_interest,json=openInterest,proto3" json:"open_interest,omitempty"` OpenId string `protobuf:"bytes,8,opt,name=open_id,json=openId,proto3" json:"open_id,omitempty"` FirstBuyDatetime int64 `protobuf:"varint,9,opt,name=first_buy_datetime,json=firstBuyDatetime,proto3" json:"first_buy_datetime,omitempty"` // contains filtered or unexported fields }
func (*Item) Descriptor
deprecated
func (*Item) GetCashPosition ¶
func (*Item) GetFirstBuyDatetime ¶
func (*Item) GetOpenInterest ¶
func (*Item) ProtoMessage ¶
func (*Item) ProtoMessage()
func (*Item) ProtoReflect ¶
func (x *Item) ProtoReflect() protoreflect.Message
type ItemListResp ¶
type ItemListResp struct { Items []*Item `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"` TotalCount int64 `protobuf:"varint,2,opt,name=total_count,json=totalCount,proto3" json:"total_count,omitempty"` // contains filtered or unexported fields }
func (*ItemListResp) Descriptor
deprecated
func (*ItemListResp) Descriptor() ([]byte, []int)
Deprecated: Use ItemListResp.ProtoReflect.Descriptor instead.
func (*ItemListResp) GetItems ¶
func (x *ItemListResp) GetItems() []*Item
func (*ItemListResp) GetTotalCount ¶
func (x *ItemListResp) GetTotalCount() int64
func (*ItemListResp) ProtoMessage ¶
func (*ItemListResp) ProtoMessage()
func (*ItemListResp) ProtoReflect ¶
func (x *ItemListResp) ProtoReflect() protoreflect.Message
func (*ItemListResp) Reset ¶
func (x *ItemListResp) Reset()
func (*ItemListResp) String ¶
func (x *ItemListResp) String() string
type Item_Type ¶
type Item_Type int32
func (Item_Type) Descriptor ¶
func (Item_Type) Descriptor() protoreflect.EnumDescriptor
func (Item_Type) EnumDescriptor
deprecated
func (Item_Type) Number ¶
func (x Item_Type) Number() protoreflect.EnumNumber
func (Item_Type) Type ¶
func (Item_Type) Type() protoreflect.EnumType
type ModifyAliasNameReq ¶
type ModifyAliasNameReq struct { AliasName string `protobuf:"bytes,1,opt,name=alias_name,json=aliasName,proto3" json:"alias_name,omitempty"` FundNo string `protobuf:"bytes,2,opt,name=fund_no,json=fundNo,proto3" json:"fund_no,omitempty"` // contains filtered or unexported fields }
func (*ModifyAliasNameReq) Descriptor
deprecated
func (*ModifyAliasNameReq) Descriptor() ([]byte, []int)
Deprecated: Use ModifyAliasNameReq.ProtoReflect.Descriptor instead.
func (*ModifyAliasNameReq) GetAliasName ¶
func (x *ModifyAliasNameReq) GetAliasName() string
func (*ModifyAliasNameReq) GetFundNo ¶
func (x *ModifyAliasNameReq) GetFundNo() string
func (*ModifyAliasNameReq) ProtoMessage ¶
func (*ModifyAliasNameReq) ProtoMessage()
func (*ModifyAliasNameReq) ProtoReflect ¶
func (x *ModifyAliasNameReq) ProtoReflect() protoreflect.Message
func (*ModifyAliasNameReq) Reset ¶
func (x *ModifyAliasNameReq) Reset()
func (*ModifyAliasNameReq) String ¶
func (x *ModifyAliasNameReq) String() string
type Record ¶
type Record struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` FundNo string `protobuf:"bytes,3,opt,name=fund_no,json=fundNo,proto3" json:"fund_no,omitempty"` Action Record_Action `protobuf:"varint,4,opt,name=action,proto3,enum=account.Record_Action" json:"action,omitempty"` Type Record_Type `protobuf:"varint,5,opt,name=type,proto3,enum=account.Record_Type" json:"type,omitempty"` Code string `protobuf:"bytes,6,opt,name=code,proto3" json:"code,omitempty"` Name string `protobuf:"bytes,7,opt,name=name,proto3" json:"name,omitempty"` Volume int64 `protobuf:"varint,8,opt,name=volume,proto3" json:"volume,omitempty"` ClosePrice float64 `protobuf:"fixed64,9,opt,name=close_price,json=closePrice,proto3" json:"close_price,omitempty"` Fee []*Fee `protobuf:"bytes,10,rep,name=fee,proto3" json:"fee,omitempty"` // contains filtered or unexported fields }
func (*Record) Descriptor
deprecated
func (*Record) GetAction ¶
func (x *Record) GetAction() Record_Action
func (*Record) GetClosePrice ¶
func (*Record) GetType ¶
func (x *Record) GetType() Record_Type
func (*Record) ProtoMessage ¶
func (*Record) ProtoMessage()
func (*Record) ProtoReflect ¶
func (x *Record) ProtoReflect() protoreflect.Message
type RecordResp ¶
type RecordResp struct { Records []*Record `protobuf:"bytes,1,rep,name=records,proto3" json:"records,omitempty"` TotalCount int64 `protobuf:"varint,2,opt,name=total_count,json=totalCount,proto3" json:"total_count,omitempty"` // contains filtered or unexported fields }
func (*RecordResp) Descriptor
deprecated
func (*RecordResp) Descriptor() ([]byte, []int)
Deprecated: Use RecordResp.ProtoReflect.Descriptor instead.
func (*RecordResp) GetRecords ¶
func (x *RecordResp) GetRecords() []*Record
func (*RecordResp) GetTotalCount ¶
func (x *RecordResp) GetTotalCount() int64
func (*RecordResp) ProtoMessage ¶
func (*RecordResp) ProtoMessage()
func (*RecordResp) ProtoReflect ¶
func (x *RecordResp) ProtoReflect() protoreflect.Message
func (*RecordResp) Reset ¶
func (x *RecordResp) Reset()
func (*RecordResp) String ¶
func (x *RecordResp) String() string
type Record_Action ¶
type Record_Action int32
const ( Record_BUY Record_Action = 0 Record_SELL Record_Action = 1 )
func (Record_Action) Descriptor ¶
func (Record_Action) Descriptor() protoreflect.EnumDescriptor
func (Record_Action) Enum ¶
func (x Record_Action) Enum() *Record_Action
func (Record_Action) EnumDescriptor
deprecated
func (Record_Action) EnumDescriptor() ([]byte, []int)
Deprecated: Use Record_Action.Descriptor instead.
func (Record_Action) Number ¶
func (x Record_Action) Number() protoreflect.EnumNumber
func (Record_Action) String ¶
func (x Record_Action) String() string
func (Record_Action) Type ¶
func (Record_Action) Type() protoreflect.EnumType
type Record_Type ¶
type Record_Type int32
const ( Record_STOCK Record_Type = 0 Record_ETF Record_Type = 1 )
func (Record_Type) Descriptor ¶
func (Record_Type) Descriptor() protoreflect.EnumDescriptor
func (Record_Type) Enum ¶
func (x Record_Type) Enum() *Record_Type
func (Record_Type) EnumDescriptor
deprecated
func (Record_Type) EnumDescriptor() ([]byte, []int)
Deprecated: Use Record_Type.Descriptor instead.
func (Record_Type) Number ¶
func (x Record_Type) Number() protoreflect.EnumNumber
func (Record_Type) String ¶
func (x Record_Type) String() string
func (Record_Type) Type ¶
func (Record_Type) Type() protoreflect.EnumType
type Securities ¶
type Securities struct { UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` FundNo string `protobuf:"bytes,2,opt,name=fund_no,json=fundNo,proto3" json:"fund_no,omitempty"` Type Securities_Type `protobuf:"varint,3,opt,name=type,proto3,enum=account.Securities_Type" json:"type,omitempty"` Code string `protobuf:"bytes,4,opt,name=code,proto3" json:"code,omitempty"` Volume int64 `protobuf:"varint,5,opt,name=volume,proto3" json:"volume,omitempty"` ClosePrice float64 `protobuf:"fixed64,6,opt,name=close_price,json=closePrice,proto3" json:"close_price,omitempty"` // contains filtered or unexported fields }
func (*Securities) Descriptor
deprecated
func (*Securities) Descriptor() ([]byte, []int)
Deprecated: Use Securities.ProtoReflect.Descriptor instead.
func (*Securities) GetClosePrice ¶
func (x *Securities) GetClosePrice() float64
func (*Securities) GetCode ¶
func (x *Securities) GetCode() string
func (*Securities) GetFundNo ¶
func (x *Securities) GetFundNo() string
func (*Securities) GetType ¶
func (x *Securities) GetType() Securities_Type
func (*Securities) GetUserId ¶
func (x *Securities) GetUserId() string
func (*Securities) GetVolume ¶
func (x *Securities) GetVolume() int64
func (*Securities) ProtoMessage ¶
func (*Securities) ProtoMessage()
func (*Securities) ProtoReflect ¶
func (x *Securities) ProtoReflect() protoreflect.Message
func (*Securities) Reset ¶
func (x *Securities) Reset()
func (*Securities) String ¶
func (x *Securities) String() string
type Securities_Type ¶
type Securities_Type int32
const ( Securities_STOCK Securities_Type = 0 Securities_ETF Securities_Type = 1 )
func (Securities_Type) Descriptor ¶
func (Securities_Type) Descriptor() protoreflect.EnumDescriptor
func (Securities_Type) Enum ¶
func (x Securities_Type) Enum() *Securities_Type
func (Securities_Type) EnumDescriptor
deprecated
func (Securities_Type) EnumDescriptor() ([]byte, []int)
Deprecated: Use Securities_Type.Descriptor instead.
func (Securities_Type) Number ¶
func (x Securities_Type) Number() protoreflect.EnumNumber
func (Securities_Type) String ¶
func (x Securities_Type) String() string
func (Securities_Type) Type ¶
func (Securities_Type) Type() protoreflect.EnumType
type TransactionClient ¶
type TransactionClient interface { Sell(ctx context.Context, in *Securities, opts ...grpc.CallOption) (*wrapperspb.StringValue, error) Buy(ctx context.Context, in *Securities, opts ...grpc.CallOption) (*wrapperspb.StringValue, error) }
TransactionClient is the client API for Transaction 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.
func NewTransactionClient ¶
func NewTransactionClient(cc grpc.ClientConnInterface) TransactionClient
type TransactionRecordClient ¶
type TransactionRecordClient interface { ListByUserId(ctx context.Context, in *wrapperspb.StringValue, opts ...grpc.CallOption) (*RecordResp, error) ListByOpenID(ctx context.Context, in *wrapperspb.StringValue, opts ...grpc.CallOption) (*RecordResp, error) }
TransactionRecordClient is the client API for TransactionRecord 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.
func NewTransactionRecordClient ¶
func NewTransactionRecordClient(cc grpc.ClientConnInterface) TransactionRecordClient
type TransactionRecordServer ¶
type TransactionRecordServer interface { ListByUserId(context.Context, *wrapperspb.StringValue) (*RecordResp, error) ListByOpenID(context.Context, *wrapperspb.StringValue) (*RecordResp, error) // contains filtered or unexported methods }
TransactionRecordServer is the server API for TransactionRecord service. All implementations must embed UnimplementedTransactionRecordServer for forward compatibility.
type TransactionServer ¶
type TransactionServer interface { Sell(context.Context, *Securities) (*wrapperspb.StringValue, error) Buy(context.Context, *Securities) (*wrapperspb.StringValue, error) // contains filtered or unexported methods }
TransactionServer is the server API for Transaction service. All implementations must embed UnimplementedTransactionServer for forward compatibility.
type UnimplementedAssetsServer ¶
type UnimplementedAssetsServer struct{}
UnimplementedAssetsServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedAssetsServer) ListByUserId ¶
func (UnimplementedAssetsServer) ListByUserId(context.Context, *wrapperspb.StringValue) (*ItemListResp, error)
type UnimplementedFundServer ¶
type UnimplementedFundServer struct{}
UnimplementedFundServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedFundServer) InitAccount ¶
func (UnimplementedFundServer) InitAccount(context.Context, *InitAccountReq) (*emptypb.Empty, error)
func (UnimplementedFundServer) ListByUserId ¶
func (UnimplementedFundServer) ListByUserId(context.Context, *wrapperspb.StringValue) (*AccountListResp, error)
func (UnimplementedFundServer) ModifyAliasName ¶
func (UnimplementedFundServer) ModifyAliasName(context.Context, *ModifyAliasNameReq) (*emptypb.Empty, error)
func (UnimplementedFundServer) ReblanceByUserId ¶
func (UnimplementedFundServer) ReblanceByUserId(context.Context, *wrapperspb.StringValue) (*emptypb.Empty, error)
type UnimplementedTransactionRecordServer ¶
type UnimplementedTransactionRecordServer struct{}
UnimplementedTransactionRecordServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedTransactionRecordServer) ListByOpenID ¶
func (UnimplementedTransactionRecordServer) ListByOpenID(context.Context, *wrapperspb.StringValue) (*RecordResp, error)
func (UnimplementedTransactionRecordServer) ListByUserId ¶
func (UnimplementedTransactionRecordServer) ListByUserId(context.Context, *wrapperspb.StringValue) (*RecordResp, error)
type UnimplementedTransactionServer ¶
type UnimplementedTransactionServer struct{}
UnimplementedTransactionServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedTransactionServer) Buy ¶
func (UnimplementedTransactionServer) Buy(context.Context, *Securities) (*wrapperspb.StringValue, error)
func (UnimplementedTransactionServer) Sell ¶
func (UnimplementedTransactionServer) Sell(context.Context, *Securities) (*wrapperspb.StringValue, error)
type UnsafeAssetsServer ¶
type UnsafeAssetsServer interface {
// contains filtered or unexported methods
}
UnsafeAssetsServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AssetsServer will result in compilation errors.
type UnsafeFundServer ¶
type UnsafeFundServer interface {
// contains filtered or unexported methods
}
UnsafeFundServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to FundServer will result in compilation errors.
type UnsafeTransactionRecordServer ¶
type UnsafeTransactionRecordServer interface {
// contains filtered or unexported methods
}
UnsafeTransactionRecordServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to TransactionRecordServer will result in compilation errors.
type UnsafeTransactionServer ¶
type UnsafeTransactionServer interface {
// contains filtered or unexported methods
}
UnsafeTransactionServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to TransactionServer will result in compilation errors.