Documentation ¶
Index ¶
- Constants
- Variables
- type C2S
- func (*C2S) Descriptor() ([]byte, []int)deprecated
- func (x *C2S) GetFreq() int32
- func (x *C2S) GetKey() int64
- func (x *C2S) GetNote() string
- func (x *C2S) GetOp() int32
- func (x *C2S) GetSecurity() *qotcommon.Security
- func (x *C2S) GetType() int32
- func (x *C2S) GetValue() float64
- func (*C2S) ProtoMessage()
- func (x *C2S) ProtoReflect() protoreflect.Message
- func (x *C2S) Reset()
- func (x *C2S) String() string
- type Request
- type Response
- func (*Response) Descriptor() ([]byte, []int)deprecated
- func (x *Response) GetErrCode() int32
- func (x *Response) GetRetMsg() string
- func (x *Response) GetRetType() int32
- func (x *Response) GetS2C() *S2C
- func (*Response) ProtoMessage()
- func (x *Response) ProtoReflect() protoreflect.Message
- func (x *Response) Reset()
- func (x *Response) String() string
- type ResponseChan
- type S2C
- type SetPriceReminderOp
- func (SetPriceReminderOp) Descriptor() protoreflect.EnumDescriptor
- func (x SetPriceReminderOp) Enum() *SetPriceReminderOp
- func (SetPriceReminderOp) EnumDescriptor() ([]byte, []int)deprecated
- func (x SetPriceReminderOp) Number() protoreflect.EnumNumber
- func (x SetPriceReminderOp) String() string
- func (SetPriceReminderOp) Type() protoreflect.EnumType
- func (x *SetPriceReminderOp) UnmarshalJSON(b []byte) errordeprecated
Constants ¶
View Source
const (
Default_Response_RetType = int32(-400)
)
Default values for Response fields.
Variables ¶
View Source
var ( SetPriceReminderOp_name = map[int32]string{ 0: "SetPriceReminderOp_Unknown", 1: "SetPriceReminderOp_Add", 2: "SetPriceReminderOp_Del", 3: "SetPriceReminderOp_Enable", 4: "SetPriceReminderOp_Disable", 5: "SetPriceReminderOp_Modify", 6: "SetPriceReminderOp_DelAll", } SetPriceReminderOp_value = map[string]int32{ "SetPriceReminderOp_Unknown": 0, "SetPriceReminderOp_Add": 1, "SetPriceReminderOp_Del": 2, "SetPriceReminderOp_Enable": 3, "SetPriceReminderOp_Disable": 4, "SetPriceReminderOp_Modify": 5, "SetPriceReminderOp_DelAll": 6, } )
Enum value maps for SetPriceReminderOp.
View Source
var File_Qot_SetPriceReminder_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type C2S ¶
type C2S struct { Security *qotcommon.Security `protobuf:"bytes,1,req,name=security" json:"security,omitempty"` // 股票 Op *int32 `protobuf:"varint,2,req,name=op" json:"op,omitempty"` // SetPriceReminderOp,操作类型 Key *int64 `protobuf:"varint,3,opt,name=key" json:"key,omitempty"` // 到价提醒的标识,GetPriceReminder协议可获得,用于指定要操作的到价提醒项,对于新增的情况不需要填 Type *int32 `protobuf:"varint,4,opt,name=type" json:"type,omitempty"` // Qot_Common::PriceReminderType,提醒类型,删除、启用、禁用的情况下会忽略该字段 Freq *int32 `protobuf:"varint,7,opt,name=freq" json:"freq,omitempty"` // Qot_Common::PriceReminderFreq,提醒频率类型,删除、启用、禁用的情况下会忽略该字段 Value *float64 `protobuf:"fixed64,5,opt,name=value" json:"value,omitempty"` // 提醒值,删除、启用、禁用的情况下会忽略该字段(精确到小数点后 3 位,超出部分会被舍弃) Note *string `protobuf:"bytes,6,opt,name=note" json:"note,omitempty"` // 用户设置到价提醒时的标注,最多10个字符,删除、启用、禁用的情况下会忽略该字段 // contains filtered or unexported fields }
func (*C2S) Descriptor
deprecated
func (*C2S) GetSecurity ¶
func (*C2S) ProtoMessage ¶
func (*C2S) ProtoMessage()
func (*C2S) ProtoReflect ¶
func (x *C2S) ProtoReflect() protoreflect.Message
type Request ¶
type Request struct { C2S *C2S `protobuf:"bytes,1,req,name=c2s" json:"c2s,omitempty"` // contains filtered or unexported fields }
func (*Request) Descriptor
deprecated
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
func (*Request) ProtoReflect ¶
func (x *Request) ProtoReflect() protoreflect.Message
type Response ¶
type Response struct { RetType *int32 `protobuf:"varint,1,req,name=retType,def=-400" json:"retType,omitempty"` //RetType,返回结果 RetMsg *string `protobuf:"bytes,2,opt,name=retMsg" json:"retMsg,omitempty"` ErrCode *int32 `protobuf:"varint,3,opt,name=errCode" json:"errCode,omitempty"` S2C *S2C `protobuf:"bytes,4,opt,name=s2c" json:"s2c,omitempty"` // contains filtered or unexported fields }
func (*Response) Descriptor
deprecated
func (*Response) GetErrCode ¶
func (*Response) GetRetType ¶
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) ProtoReflect ¶
func (x *Response) ProtoReflect() protoreflect.Message
type ResponseChan ¶
type ResponseChan chan *Response
func (ResponseChan) Close ¶
func (ch ResponseChan) Close()
func (ResponseChan) Send ¶
func (ch ResponseChan) Send(b []byte) error
type S2C ¶
type S2C struct { Key *int64 `protobuf:"varint,1,req,name=key" json:"key,omitempty"` //设置成功的情况下返回对应的key,不成功返回0 // contains filtered or unexported fields }
func (*S2C) Descriptor
deprecated
func (*S2C) ProtoMessage ¶
func (*S2C) ProtoMessage()
func (*S2C) ProtoReflect ¶
func (x *S2C) ProtoReflect() protoreflect.Message
type SetPriceReminderOp ¶
type SetPriceReminderOp int32
const ( SetPriceReminderOp_SetPriceReminderOp_Unknown SetPriceReminderOp = 0 SetPriceReminderOp_SetPriceReminderOp_Add SetPriceReminderOp = 1 //新增 SetPriceReminderOp_SetPriceReminderOp_Del SetPriceReminderOp = 2 //删除 SetPriceReminderOp_SetPriceReminderOp_Enable SetPriceReminderOp = 3 //启用 SetPriceReminderOp_SetPriceReminderOp_Disable SetPriceReminderOp = 4 //禁用 SetPriceReminderOp_SetPriceReminderOp_Modify SetPriceReminderOp = 5 //修改 SetPriceReminderOp_SetPriceReminderOp_DelAll SetPriceReminderOp = 6 //删除该支股票下所有到价提醒 )
func (SetPriceReminderOp) Descriptor ¶
func (SetPriceReminderOp) Descriptor() protoreflect.EnumDescriptor
func (SetPriceReminderOp) Enum ¶
func (x SetPriceReminderOp) Enum() *SetPriceReminderOp
func (SetPriceReminderOp) EnumDescriptor
deprecated
func (SetPriceReminderOp) EnumDescriptor() ([]byte, []int)
Deprecated: Use SetPriceReminderOp.Descriptor instead.
func (SetPriceReminderOp) Number ¶
func (x SetPriceReminderOp) Number() protoreflect.EnumNumber
func (SetPriceReminderOp) String ¶
func (x SetPriceReminderOp) String() string
func (SetPriceReminderOp) Type ¶
func (SetPriceReminderOp) Type() protoreflect.EnumType
func (*SetPriceReminderOp) UnmarshalJSON
deprecated
func (x *SetPriceReminderOp) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
Click to show internal directories.
Click to hide internal directories.