pb

package
v0.0.0-...-378a548 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 1, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
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"
)
View Source
const (
	Transaction_Sell_FullMethodName = "/account.Transaction/Sell"
	Transaction_Buy_FullMethodName  = "/account.Transaction/Buy"
)
View Source
const (
	TransactionRecord_ListByUserId_FullMethodName = "/account.TransactionRecord/ListByUserId"
	TransactionRecord_ListByOpenID_FullMethodName = "/account.TransactionRecord/ListByOpenID"
)
View Source
const (
	Assets_ListByUserId_FullMethodName = "/account.Assets/ListByUserId"
)

Variables

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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)

View Source
var File_assets_proto protoreflect.FileDescriptor
View Source
var File_transaction_proto protoreflect.FileDescriptor
View Source
var File_transaction_record_proto protoreflect.FileDescriptor
View Source
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)

View Source
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)

View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use Account.ProtoReflect.Descriptor instead.

func (*Account) GetAliasName

func (x *Account) GetAliasName() string

func (*Account) GetEndCash

func (x *Account) GetEndCash() float64

func (*Account) GetFundNo

func (x *Account) GetFundNo() string

func (*Account) GetInitDatetime

func (x *Account) GetInitDatetime() int64

func (*Account) GetOpeningCash

func (x *Account) GetOpeningCash() float64

func (*Account) GetStatus

func (x *Account) GetStatus() int32

func (*Account) GetUserId

func (x *Account) GetUserId() string

func (*Account) GetYesterdayEndCash

func (x *Account) GetYesterdayEndCash() float64

func (*Account) ProtoMessage

func (*Account) ProtoMessage()

func (*Account) ProtoReflect

func (x *Account) ProtoReflect() protoreflect.Message

func (*Account) Reset

func (x *Account) Reset()

func (*Account) String

func (x *Account) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Fee.ProtoReflect.Descriptor instead.

func (*Fee) GetId

func (x *Fee) GetId() string

func (*Fee) GetItem

func (x *Fee) GetItem() string

func (*Fee) GetMoney

func (x *Fee) GetMoney() float64

func (*Fee) GetRecordId

func (x *Fee) GetRecordId() string

func (*Fee) ProtoMessage

func (*Fee) ProtoMessage()

func (*Fee) ProtoReflect

func (x *Fee) ProtoReflect() protoreflect.Message

func (*Fee) Reset

func (x *Fee) Reset()

func (*Fee) String

func (x *Fee) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Item.ProtoReflect.Descriptor instead.

func (*Item) GetCashPosition

func (x *Item) GetCashPosition() float64

func (*Item) GetCode

func (x *Item) GetCode() string

func (*Item) GetFirstBuyDatetime

func (x *Item) GetFirstBuyDatetime() int64

func (*Item) GetFundNo

func (x *Item) GetFundNo() string

func (*Item) GetName

func (x *Item) GetName() string

func (*Item) GetOpenId

func (x *Item) GetOpenId() string

func (*Item) GetOpenInterest

func (x *Item) GetOpenInterest() int64

func (*Item) GetType

func (x *Item) GetType() Item_Type

func (*Item) GetUserId

func (x *Item) GetUserId() string

func (*Item) ProtoMessage

func (*Item) ProtoMessage()

func (*Item) ProtoReflect

func (x *Item) ProtoReflect() protoreflect.Message

func (*Item) Reset

func (x *Item) Reset()

func (*Item) String

func (x *Item) String() string

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
const (
	Item_STOCK Item_Type = 0
	Item_ETF   Item_Type = 1
)

func (Item_Type) Descriptor

func (Item_Type) Descriptor() protoreflect.EnumDescriptor

func (Item_Type) Enum

func (x Item_Type) Enum() *Item_Type

func (Item_Type) EnumDescriptor deprecated

func (Item_Type) EnumDescriptor() ([]byte, []int)

Deprecated: Use Item_Type.Descriptor instead.

func (Item_Type) Number

func (x Item_Type) Number() protoreflect.EnumNumber

func (Item_Type) String

func (x Item_Type) String() string

func (Item_Type) Type

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) Descriptor() ([]byte, []int)

Deprecated: Use Record.ProtoReflect.Descriptor instead.

func (*Record) GetAction

func (x *Record) GetAction() Record_Action

func (*Record) GetClosePrice

func (x *Record) GetClosePrice() float64

func (*Record) GetCode

func (x *Record) GetCode() string

func (*Record) GetFee

func (x *Record) GetFee() []*Fee

func (*Record) GetFundNo

func (x *Record) GetFundNo() string

func (*Record) GetId

func (x *Record) GetId() string

func (*Record) GetName

func (x *Record) GetName() string

func (*Record) GetType

func (x *Record) GetType() Record_Type

func (*Record) GetUserId

func (x *Record) GetUserId() string

func (*Record) GetVolume

func (x *Record) GetVolume() int64

func (*Record) ProtoMessage

func (*Record) ProtoMessage()

func (*Record) ProtoReflect

func (x *Record) ProtoReflect() protoreflect.Message

func (*Record) Reset

func (x *Record) Reset()

func (*Record) String

func (x *Record) String() string

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) 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 (Record_Action) String

func (x Record_Action) String() string

func (Record_Action) Type

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) 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

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) 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 (Securities_Type) String

func (x Securities_Type) String() string

func (Securities_Type) Type

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.

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.

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.

func (UnimplementedAssetsServer) ListByUserId

type UnimplementedFundServer

type UnimplementedFundServer struct {
}

UnimplementedFundServer must be embedded to have forward compatible implementations.

func (UnimplementedFundServer) InitAccount

func (UnimplementedFundServer) ListByUserId

func (UnimplementedFundServer) ModifyAliasName

func (UnimplementedFundServer) ReblanceByUserId

type UnimplementedTransactionRecordServer

type UnimplementedTransactionRecordServer struct {
}

UnimplementedTransactionRecordServer must be embedded to have forward compatible implementations.

func (UnimplementedTransactionRecordServer) ListByOpenID

func (UnimplementedTransactionRecordServer) ListByUserId

type UnimplementedTransactionServer

type UnimplementedTransactionServer struct {
}

UnimplementedTransactionServer must be embedded to have forward compatible implementations.

func (UnimplementedTransactionServer) Buy

func (UnimplementedTransactionServer) Sell

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL