qotupdatepricereminder

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 (
	MarketStatus_name = map[int32]string{
		0: "MarketStatus_Unknow",
		1: "MarketStatus_Open",
		2: "MarketStatus_USPre",
		3: "MarketStatus_USAfter",
	}
	MarketStatus_value = map[string]int32{
		"MarketStatus_Unknow":  0,
		"MarketStatus_Open":    1,
		"MarketStatus_USPre":   2,
		"MarketStatus_USAfter": 3,
	}
)

Enum value maps for MarketStatus.

View Source
var File_Qot_UpdatePriceReminder_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type MarketStatus

type MarketStatus int32
const (
	MarketStatus_MarketStatus_Unknow  MarketStatus = 0
	MarketStatus_MarketStatus_Open    MarketStatus = 1 // 盘中
	MarketStatus_MarketStatus_USPre   MarketStatus = 2 // 美股盘前
	MarketStatus_MarketStatus_USAfter MarketStatus = 3 // 美股盘后
)

func (MarketStatus) Descriptor

func (MarketStatus) Enum

func (x MarketStatus) Enum() *MarketStatus

func (MarketStatus) EnumDescriptor deprecated

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

Deprecated: Use MarketStatus.Descriptor instead.

func (MarketStatus) Number

func (MarketStatus) String

func (x MarketStatus) String() string

func (MarketStatus) Type

func (*MarketStatus) UnmarshalJSON deprecated

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

Deprecated: Do not use.

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 {
	Security     *qotcommon.Security `protobuf:"bytes,1,req,name=security" json:"security,omitempty"`          //股票
	Price        *float64            `protobuf:"fixed64,2,req,name=price" json:"price,omitempty"`              //价格
	ChangeRate   *float64            `protobuf:"fixed64,3,req,name=changeRate" json:"changeRate,omitempty"`    //涨跌幅
	MarketStatus *int32              `protobuf:"varint,4,req,name=marketStatus" json:"marketStatus,omitempty"` //市场状态
	Content      *string             `protobuf:"bytes,5,req,name=content" json:"content,omitempty"`            //内容
	Note         *string             `protobuf:"bytes,6,req,name=note" json:"note,omitempty"`                  //备注
	Key          *int64              `protobuf:"varint,7,opt,name=key" json:"key,omitempty"`                   // 到价提醒的标识
	Type         *int32              `protobuf:"varint,8,opt,name=type" json:"type,omitempty"`                 // Qot_Common::PriceReminderType,提醒类型
	SetValue     *float64            `protobuf:"fixed64,9,opt,name=setValue" json:"setValue,omitempty"`        // 设置的提醒值
	CurValue     *float64            `protobuf:"fixed64,10,opt,name=curValue" json:"curValue,omitempty"`       // 设置的提醒类型触发时当前值
	// contains filtered or unexported fields
}

func (*S2C) Descriptor deprecated

func (*S2C) Descriptor() ([]byte, []int)

Deprecated: Use S2C.ProtoReflect.Descriptor instead.

func (*S2C) GetChangeRate

func (x *S2C) GetChangeRate() float64

func (*S2C) GetContent

func (x *S2C) GetContent() string

func (*S2C) GetCurValue

func (x *S2C) GetCurValue() float64

func (*S2C) GetKey

func (x *S2C) GetKey() int64

func (*S2C) GetMarketStatus

func (x *S2C) GetMarketStatus() int32

func (*S2C) GetNote

func (x *S2C) GetNote() string

func (*S2C) GetPrice

func (x *S2C) GetPrice() float64

func (*S2C) GetSecurity

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

func (*S2C) GetSetValue

func (x *S2C) GetSetValue() float64

func (*S2C) GetType

func (x *S2C) GetType() int32

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

Jump to

Keyboard shortcuts

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