qotsetpricereminder

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

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

Deprecated: Use C2S.ProtoReflect.Descriptor instead.

func (*C2S) GetFreq

func (x *C2S) GetFreq() int32

func (*C2S) GetKey

func (x *C2S) GetKey() int64

func (*C2S) GetNote

func (x *C2S) GetNote() string

func (*C2S) GetOp

func (x *C2S) GetOp() int32

func (*C2S) GetSecurity

func (x *C2S) GetSecurity() *qotcommon.Security

func (*C2S) GetType

func (x *C2S) GetType() int32

func (*C2S) GetValue

func (x *C2S) GetValue() float64

func (*C2S) ProtoMessage

func (*C2S) ProtoMessage()

func (*C2S) ProtoReflect

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

func (*C2S) Reset

func (x *C2S) Reset()

func (*C2S) String

func (x *C2S) String() string

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

Deprecated: Use Request.ProtoReflect.Descriptor instead.

func (*Request) GetC2S

func (x *Request) GetC2S() *C2S

func (*Request) ProtoMessage

func (*Request) ProtoMessage()

func (*Request) ProtoReflect

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

func (*Request) Reset

func (x *Request) Reset()

func (*Request) String

func (x *Request) String() string

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

Deprecated: Use Response.ProtoReflect.Descriptor instead.

func (*Response) GetErrCode

func (x *Response) GetErrCode() int32

func (*Response) GetRetMsg

func (x *Response) GetRetMsg() string

func (*Response) GetRetType

func (x *Response) GetRetType() int32

func (*Response) GetS2C

func (x *Response) GetS2C() *S2C

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) ProtoReflect

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

func (*Response) Reset

func (x *Response) Reset()

func (*Response) String

func (x *Response) String() string

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

Deprecated: Use S2C.ProtoReflect.Descriptor instead.

func (*S2C) GetKey

func (x *S2C) GetKey() int64

func (*S2C) ProtoMessage

func (*S2C) ProtoMessage()

func (*S2C) ProtoReflect

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

func (*S2C) Reset

func (x *S2C) Reset()

func (*S2C) String

func (x *S2C) String() string

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

func (SetPriceReminderOp) EnumDescriptor deprecated

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

Deprecated: Use SetPriceReminderOp.Descriptor instead.

func (SetPriceReminderOp) Number

func (SetPriceReminderOp) String

func (x SetPriceReminderOp) String() string

func (SetPriceReminderOp) Type

func (*SetPriceReminderOp) UnmarshalJSON deprecated

func (x *SetPriceReminderOp) UnmarshalJSON(b []byte) error

Deprecated: Do not use.

Jump to

Keyboard shortcuts

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