Documentation
¶
Index ¶
- Constants
- Variables
- type C2S
- 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 S2C
- func (*S2C) Descriptor() ([]byte, []int)deprecated
- func (x *S2C) GetApiLevel() string
- func (x *S2C) GetAvatarUrl() string
- func (x *S2C) GetCnQotRight() int32
- func (x *S2C) GetHasUSOptionQotRight() bool
- func (x *S2C) GetHistoryKLQuota() int32
- func (x *S2C) GetHkFutureQotRight() int32
- func (x *S2C) GetHkOptionQotRight() int32
- func (x *S2C) GetHkQotRight() int32
- func (x *S2C) GetIsAppNNOrMM() bool
- func (x *S2C) GetIsNeedAgreeDisclaimer() bool
- func (x *S2C) GetJpFutureQotRight() int32
- func (x *S2C) GetNickName() string
- func (x *S2C) GetSgFutureQotRight() int32
- func (x *S2C) GetShQotRight() int32
- func (x *S2C) GetSubQuota() int32
- func (x *S2C) GetSzQotRight() int32
- func (x *S2C) GetUpdateType() int32
- func (x *S2C) GetUpdateWhatsNew() string
- func (x *S2C) GetUsCBOEFutureQotRight() int32
- func (x *S2C) GetUsCBOTFutureQotRight() int32
- func (x *S2C) GetUsCMEFutureQotRight() int32
- func (x *S2C) GetUsCOMEXFutureQotRight() int32
- func (x *S2C) GetUsFutureQotRight() int32
- func (x *S2C) GetUsIndexQotRight() int32
- func (x *S2C) GetUsNYMEXFutureQotRight() int32
- func (x *S2C) GetUsOptionQotRight() int32
- func (x *S2C) GetUsOtcQotRight() int32
- func (x *S2C) GetUsQotRight() int32
- func (x *S2C) GetUserAttribution() int32
- func (x *S2C) GetUserID() int64
- func (x *S2C) GetWebJumpUrlHead() string
- func (x *S2C) GetWebKey() string
- func (*S2C) ProtoMessage()
- func (x *S2C) ProtoReflect() protoreflect.Message
- func (x *S2C) Reset()
- func (x *S2C) String() string
- type UpdateType
- func (UpdateType) Descriptor() protoreflect.EnumDescriptor
- func (x UpdateType) Enum() *UpdateType
- func (UpdateType) EnumDescriptor() ([]byte, []int)deprecated
- func (x UpdateType) Number() protoreflect.EnumNumber
- func (x UpdateType) String() string
- func (UpdateType) Type() protoreflect.EnumType
- func (x *UpdateType) UnmarshalJSON(b []byte) errordeprecated
- type UserInfoField
- func (UserInfoField) Descriptor() protoreflect.EnumDescriptor
- func (x UserInfoField) Enum() *UserInfoField
- func (UserInfoField) EnumDescriptor() ([]byte, []int)deprecated
- func (x UserInfoField) Number() protoreflect.EnumNumber
- func (x UserInfoField) String() string
- func (UserInfoField) Type() protoreflect.EnumType
- func (x *UserInfoField) UnmarshalJSON(b []byte) errordeprecated
Constants ¶
View Source
const (
Default_Response_RetType = int32(-400)
)
Default values for Response fields.
Variables ¶
View Source
var ( UpdateType_name = map[int32]string{ 0: "UpdateType_None", 1: "UpdateType_Advice", 2: "UpdateType_Force", } UpdateType_value = map[string]int32{ "UpdateType_None": 0, "UpdateType_Advice": 1, "UpdateType_Force": 2, } )
Enum value maps for UpdateType.
View Source
var ( UserInfoField_name = map[int32]string{ 1: "UserInfoField_Basic", 2: "UserInfoField_API", 4: "UserInfoField_QotRight", 8: "UserInfoField_Disclaimer", 16: "UserInfoField_Update", 2048: "UserInfoField_WebKey", } UserInfoField_value = map[string]int32{ "UserInfoField_Basic": 1, "UserInfoField_API": 2, "UserInfoField_QotRight": 4, "UserInfoField_Disclaimer": 8, "UserInfoField_Update": 16, "UserInfoField_WebKey": 2048, } )
Enum value maps for UserInfoField.
View Source
var File_GetUserInfo_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type C2S ¶
type C2S struct { Flag *int32 `protobuf:"varint,2,opt,name=flag" json:"flag,omitempty"` //UserInfoField集合,不设置默认返回全部信息 // contains filtered or unexported fields }
func (*C2S) Descriptor
deprecated
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"` //返回结果,参见Common.RetType的枚举定义 RetMsg *string `protobuf:"bytes,2,opt,name=retMsg" json:"retMsg,omitempty"` //返回结果描述 ErrCode *int32 `protobuf:"varint,3,opt,name=errCode" json:"errCode,omitempty"` //错误码,客户端一般通过retType和retMsg来判断结果和详情,errCode只做日志记录,仅在个别协议失败时对账用 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 S2C ¶
type S2C struct { NickName *string `protobuf:"bytes,1,opt,name=nickName" json:"nickName,omitempty"` //用户昵称 AvatarUrl *string `protobuf:"bytes,2,opt,name=avatarUrl" json:"avatarUrl,omitempty"` //用户头像url ApiLevel *string `protobuf:"bytes,3,opt,name=apiLevel" json:"apiLevel,omitempty"` //api用户等级描述, 已在2.10版本之后废弃 HkQotRight *int32 `protobuf:"varint,4,opt,name=hkQotRight" json:"hkQotRight,omitempty"` //港股行情权限, QotRight UsQotRight *int32 `protobuf:"varint,5,opt,name=usQotRight" json:"usQotRight,omitempty"` //美股行情权限, QotRight CnQotRight *int32 `protobuf:"varint,6,opt,name=cnQotRight" json:"cnQotRight,omitempty"` //A股行情权限, QotRight // 废弃,使用shQotRight和szQotRight IsNeedAgreeDisclaimer *bool `protobuf:"varint,7,opt,name=isNeedAgreeDisclaimer" json:"isNeedAgreeDisclaimer,omitempty"` //已开户用户需要同意免责声明,未开户或已同意的用户返回false UserID *int64 `protobuf:"varint,8,opt,name=userID" json:"userID,omitempty"` //用户牛牛号 UpdateType *int32 `protobuf:"varint,9,opt,name=updateType" json:"updateType,omitempty"` //升级类型,UpdateType WebKey *string `protobuf:"bytes,10,opt,name=webKey" json:"webKey,omitempty"` WebJumpUrlHead *string `protobuf:"bytes,18,opt,name=webJumpUrlHead" json:"webJumpUrlHead,omitempty"` HkOptionQotRight *int32 `protobuf:"varint,11,opt,name=hkOptionQotRight" json:"hkOptionQotRight,omitempty"` //港股期权行情权限, Qot_Common.QotRight HasUSOptionQotRight *bool `protobuf:"varint,12,opt,name=hasUSOptionQotRight" json:"hasUSOptionQotRight,omitempty"` //是否有美股期权行情权限 HkFutureQotRight *int32 `protobuf:"varint,13,opt,name=hkFutureQotRight" json:"hkFutureQotRight,omitempty"` //港股期货行情权限, Qot_Common.QotRight SubQuota *int32 `protobuf:"varint,14,opt,name=subQuota" json:"subQuota,omitempty"` //订阅额度 HistoryKLQuota *int32 `protobuf:"varint,15,opt,name=historyKLQuota" json:"historyKLQuota,omitempty"` //历史K线额度 UsFutureQotRight *int32 `protobuf:"varint,16,opt,name=usFutureQotRight" json:"usFutureQotRight,omitempty"` //美股期货行情权限, Qot_Common.QotRight(已废弃) UsOptionQotRight *int32 `protobuf:"varint,17,opt,name=usOptionQotRight" json:"usOptionQotRight,omitempty"` //美股期货行情权限, Qot_Common.QotRight UserAttribution *int32 `protobuf:"varint,19,opt,name=userAttribution" json:"userAttribution,omitempty"` //用户注册归属地, Common.UserAttribution UpdateWhatsNew *string `protobuf:"bytes,20,opt,name=updateWhatsNew" json:"updateWhatsNew,omitempty"` //升级提示 UsIndexQotRight *int32 `protobuf:"varint,21,opt,name=usIndexQotRight" json:"usIndexQotRight,omitempty"` //美股指数行情权限, Qot_Common.QotRight UsOtcQotRight *int32 `protobuf:"varint,22,opt,name=usOtcQotRight" json:"usOtcQotRight,omitempty"` //美股OTC市场行情权限, Qot_Common.QotRight UsCMEFutureQotRight *int32 `protobuf:"varint,23,opt,name=usCMEFutureQotRight" json:"usCMEFutureQotRight,omitempty"` //美股CME期货行情权限, Qot_Common.QotRight UsCBOTFutureQotRight *int32 `protobuf:"varint,24,opt,name=usCBOTFutureQotRight" json:"usCBOTFutureQotRight,omitempty"` //美股CBOT期货行情权限, Qot_Common.QotRight UsNYMEXFutureQotRight *int32 `protobuf:"varint,25,opt,name=usNYMEXFutureQotRight" json:"usNYMEXFutureQotRight,omitempty"` //美股NYMEX期货行情权限, Qot_Common.QotRight UsCOMEXFutureQotRight *int32 `protobuf:"varint,26,opt,name=usCOMEXFutureQotRight" json:"usCOMEXFutureQotRight,omitempty"` //美股COMEX期货行情权限, Qot_Common.QotRight UsCBOEFutureQotRight *int32 `protobuf:"varint,27,opt,name=usCBOEFutureQotRight" json:"usCBOEFutureQotRight,omitempty"` //美股CBOE期货行情权限, Qot_Common.QotRight SgFutureQotRight *int32 `protobuf:"varint,28,opt,name=sgFutureQotRight" json:"sgFutureQotRight,omitempty"` //新加坡市场期货行情权限, Qot_Common.QotRight JpFutureQotRight *int32 `protobuf:"varint,29,opt,name=jpFutureQotRight" json:"jpFutureQotRight,omitempty"` //日本市场期货行情权限, Qot_Common.QotRight IsAppNNOrMM *bool `protobuf:"varint,30,opt,name=isAppNNOrMM" json:"isAppNNOrMM,omitempty"` //true:NN false:MM ShQotRight *int32 `protobuf:"varint,31,opt,name=shQotRight" json:"shQotRight,omitempty"` //上海市场行情权限, Qot_Common.QotRight SzQotRight *int32 `protobuf:"varint,32,opt,name=szQotRight" json:"szQotRight,omitempty"` //深圳市场行情权限, Qot_Common.QotRight // contains filtered or unexported fields }
func (*S2C) Descriptor
deprecated
func (*S2C) GetApiLevel ¶
func (*S2C) GetAvatarUrl ¶
func (*S2C) GetCnQotRight ¶
func (*S2C) GetHasUSOptionQotRight ¶
func (*S2C) GetHistoryKLQuota ¶
func (*S2C) GetHkFutureQotRight ¶
func (*S2C) GetHkOptionQotRight ¶
func (*S2C) GetHkQotRight ¶
func (*S2C) GetIsAppNNOrMM ¶
func (*S2C) GetIsNeedAgreeDisclaimer ¶
func (*S2C) GetJpFutureQotRight ¶
func (*S2C) GetNickName ¶
func (*S2C) GetSgFutureQotRight ¶
func (*S2C) GetShQotRight ¶
func (*S2C) GetSubQuota ¶
func (*S2C) GetSzQotRight ¶
func (*S2C) GetUpdateType ¶
func (*S2C) GetUpdateWhatsNew ¶
func (*S2C) GetUsCBOEFutureQotRight ¶
func (*S2C) GetUsCBOTFutureQotRight ¶
func (*S2C) GetUsCMEFutureQotRight ¶
func (*S2C) GetUsCOMEXFutureQotRight ¶
func (*S2C) GetUsFutureQotRight ¶
func (*S2C) GetUsIndexQotRight ¶
func (*S2C) GetUsNYMEXFutureQotRight ¶
func (*S2C) GetUsOptionQotRight ¶
func (*S2C) GetUsOtcQotRight ¶
func (*S2C) GetUsQotRight ¶
func (*S2C) GetUserAttribution ¶
func (*S2C) GetWebJumpUrlHead ¶
func (*S2C) ProtoMessage ¶
func (*S2C) ProtoMessage()
func (*S2C) ProtoReflect ¶
func (x *S2C) ProtoReflect() protoreflect.Message
type UpdateType ¶
type UpdateType int32
const ( UpdateType_UpdateType_None UpdateType = 0 //无需升级 UpdateType_UpdateType_Advice UpdateType = 1 //建议升级 UpdateType_UpdateType_Force UpdateType = 2 //强制升级 )
func (UpdateType) Descriptor ¶
func (UpdateType) Descriptor() protoreflect.EnumDescriptor
func (UpdateType) Enum ¶
func (x UpdateType) Enum() *UpdateType
func (UpdateType) EnumDescriptor
deprecated
func (UpdateType) EnumDescriptor() ([]byte, []int)
Deprecated: Use UpdateType.Descriptor instead.
func (UpdateType) Number ¶
func (x UpdateType) Number() protoreflect.EnumNumber
func (UpdateType) String ¶
func (x UpdateType) String() string
func (UpdateType) Type ¶
func (UpdateType) Type() protoreflect.EnumType
func (*UpdateType) UnmarshalJSON
deprecated
func (x *UpdateType) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
type UserInfoField ¶
type UserInfoField int32
const ( UserInfoField_UserInfoField_Basic UserInfoField = 1 //昵称,用户头像,牛牛号 UserInfoField_UserInfoField_API UserInfoField = 2 //API权限信息 UserInfoField_UserInfoField_QotRight UserInfoField = 4 //市场的行情权限 UserInfoField_UserInfoField_Disclaimer UserInfoField = 8 //免责 UserInfoField_UserInfoField_Update UserInfoField = 16 //升级类型 UserInfoField_UserInfoField_WebKey UserInfoField = 2048 )
func (UserInfoField) Descriptor ¶
func (UserInfoField) Descriptor() protoreflect.EnumDescriptor
func (UserInfoField) Enum ¶
func (x UserInfoField) Enum() *UserInfoField
func (UserInfoField) EnumDescriptor
deprecated
func (UserInfoField) EnumDescriptor() ([]byte, []int)
Deprecated: Use UserInfoField.Descriptor instead.
func (UserInfoField) Number ¶
func (x UserInfoField) Number() protoreflect.EnumNumber
func (UserInfoField) String ¶
func (x UserInfoField) String() string
func (UserInfoField) Type ¶
func (UserInfoField) Type() protoreflect.EnumType
func (*UserInfoField) UnmarshalJSON
deprecated
func (x *UserInfoField) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
Click to show internal directories.
Click to hide internal directories.