getuserinfo

package
v0.0.0-...-66389ec Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2025 License: MIT Imports: 5 Imported by: 1

Documentation

Index

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

Deprecated: Use C2S.ProtoReflect.Descriptor instead.

func (*C2S) GetFlag

func (x *C2S) GetFlag() int32

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"` //返回结果,参见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) 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 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) Descriptor() ([]byte, []int)

Deprecated: Use S2C.ProtoReflect.Descriptor instead.

func (*S2C) GetApiLevel

func (x *S2C) GetApiLevel() string

func (*S2C) GetAvatarUrl

func (x *S2C) GetAvatarUrl() string

func (*S2C) GetCnQotRight

func (x *S2C) GetCnQotRight() int32

func (*S2C) GetHasUSOptionQotRight

func (x *S2C) GetHasUSOptionQotRight() bool

func (*S2C) GetHistoryKLQuota

func (x *S2C) GetHistoryKLQuota() int32

func (*S2C) GetHkFutureQotRight

func (x *S2C) GetHkFutureQotRight() int32

func (*S2C) GetHkOptionQotRight

func (x *S2C) GetHkOptionQotRight() int32

func (*S2C) GetHkQotRight

func (x *S2C) GetHkQotRight() int32

func (*S2C) GetIsAppNNOrMM

func (x *S2C) GetIsAppNNOrMM() bool

func (*S2C) GetIsNeedAgreeDisclaimer

func (x *S2C) GetIsNeedAgreeDisclaimer() bool

func (*S2C) GetJpFutureQotRight

func (x *S2C) GetJpFutureQotRight() int32

func (*S2C) GetNickName

func (x *S2C) GetNickName() string

func (*S2C) GetSgFutureQotRight

func (x *S2C) GetSgFutureQotRight() int32

func (*S2C) GetShQotRight

func (x *S2C) GetShQotRight() int32

func (*S2C) GetSubQuota

func (x *S2C) GetSubQuota() int32

func (*S2C) GetSzQotRight

func (x *S2C) GetSzQotRight() int32

func (*S2C) GetUpdateType

func (x *S2C) GetUpdateType() int32

func (*S2C) GetUpdateWhatsNew

func (x *S2C) GetUpdateWhatsNew() string

func (*S2C) GetUsCBOEFutureQotRight

func (x *S2C) GetUsCBOEFutureQotRight() int32

func (*S2C) GetUsCBOTFutureQotRight

func (x *S2C) GetUsCBOTFutureQotRight() int32

func (*S2C) GetUsCMEFutureQotRight

func (x *S2C) GetUsCMEFutureQotRight() int32

func (*S2C) GetUsCOMEXFutureQotRight

func (x *S2C) GetUsCOMEXFutureQotRight() int32

func (*S2C) GetUsFutureQotRight

func (x *S2C) GetUsFutureQotRight() int32

func (*S2C) GetUsIndexQotRight

func (x *S2C) GetUsIndexQotRight() int32

func (*S2C) GetUsNYMEXFutureQotRight

func (x *S2C) GetUsNYMEXFutureQotRight() int32

func (*S2C) GetUsOptionQotRight

func (x *S2C) GetUsOptionQotRight() int32

func (*S2C) GetUsOtcQotRight

func (x *S2C) GetUsOtcQotRight() int32

func (*S2C) GetUsQotRight

func (x *S2C) GetUsQotRight() int32

func (*S2C) GetUserAttribution

func (x *S2C) GetUserAttribution() int32

func (*S2C) GetUserID

func (x *S2C) GetUserID() int64

func (*S2C) GetWebJumpUrlHead

func (x *S2C) GetWebJumpUrlHead() string

func (*S2C) GetWebKey

func (x *S2C) GetWebKey() string

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

func (x UserInfoField) Enum() *UserInfoField

func (UserInfoField) EnumDescriptor deprecated

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

Deprecated: Use UserInfoField.Descriptor instead.

func (UserInfoField) Number

func (UserInfoField) String

func (x UserInfoField) String() string

func (UserInfoField) Type

func (*UserInfoField) UnmarshalJSON deprecated

func (x *UserInfoField) 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