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
- type VerificationOp
- func (VerificationOp) Descriptor() protoreflect.EnumDescriptor
- func (x VerificationOp) Enum() *VerificationOp
- func (VerificationOp) EnumDescriptor() ([]byte, []int)deprecated
- func (x VerificationOp) Number() protoreflect.EnumNumber
- func (x VerificationOp) String() string
- func (VerificationOp) Type() protoreflect.EnumType
- func (x *VerificationOp) UnmarshalJSON(b []byte) errordeprecated
- type VerificationType
- func (VerificationType) Descriptor() protoreflect.EnumDescriptor
- func (x VerificationType) Enum() *VerificationType
- func (VerificationType) EnumDescriptor() ([]byte, []int)deprecated
- func (x VerificationType) Number() protoreflect.EnumNumber
- func (x VerificationType) String() string
- func (VerificationType) Type() protoreflect.EnumType
- func (x *VerificationType) UnmarshalJSON(b []byte) errordeprecated
Constants ¶
View Source
const (
Default_Response_RetType = int32(-400)
)
Default values for Response fields.
Variables ¶
View Source
var ( VerificationType_name = map[int32]string{ 0: "VerificationType_Unknow", 1: "VerificationType_Picture", 2: "VerificationType_Phone", } VerificationType_value = map[string]int32{ "VerificationType_Unknow": 0, "VerificationType_Picture": 1, "VerificationType_Phone": 2, } )
Enum value maps for VerificationType.
View Source
var ( VerificationOp_name = map[int32]string{ 0: "VerificationOp_Unknow", 1: "VerificationOp_Request", 2: "VerificationOp_InputAndLogin", } VerificationOp_value = map[string]int32{ "VerificationOp_Unknow": 0, "VerificationOp_Request": 1, "VerificationOp_InputAndLogin": 2, } )
Enum value maps for VerificationOp.
View Source
var File_Verification_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type C2S ¶
type C2S struct { Type *int32 `protobuf:"varint,1,req,name=type" json:"type,omitempty"` //验证码类型, VerificationType Op *int32 `protobuf:"varint,2,req,name=op" json:"op,omitempty"` //操作, VerificationOp Code *string `protobuf:"bytes,3,opt,name=code" json:"code,omitempty"` //验证码,请求验证码时忽略该字段,输入时必填 // contains filtered or unexported fields }
图形验证码下载之后会将其存至固定路径,请到该路径下查看验证码 Windows平台:%appdata%/com.futunn.FutuOpenD/F3CNN/PicVerifyCode.png 非Windows平台:~/.com.futunn.FutuOpenD/F3CNN/PicVerifyCode.png 注意:只有最后一次请求验证码会生效,重复请求只有最后一次的验证码有效
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 {
// 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 VerificationOp ¶
type VerificationOp int32
const ( VerificationOp_VerificationOp_Unknow VerificationOp = 0 //未知操作 VerificationOp_VerificationOp_Request VerificationOp = 1 //请求验证码 VerificationOp_VerificationOp_InputAndLogin VerificationOp = 2 //输入验证码并继续登录操作 )
func (VerificationOp) Descriptor ¶
func (VerificationOp) Descriptor() protoreflect.EnumDescriptor
func (VerificationOp) Enum ¶
func (x VerificationOp) Enum() *VerificationOp
func (VerificationOp) EnumDescriptor
deprecated
func (VerificationOp) EnumDescriptor() ([]byte, []int)
Deprecated: Use VerificationOp.Descriptor instead.
func (VerificationOp) Number ¶
func (x VerificationOp) Number() protoreflect.EnumNumber
func (VerificationOp) String ¶
func (x VerificationOp) String() string
func (VerificationOp) Type ¶
func (VerificationOp) Type() protoreflect.EnumType
func (*VerificationOp) UnmarshalJSON
deprecated
func (x *VerificationOp) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
type VerificationType ¶
type VerificationType int32
const ( VerificationType_VerificationType_Unknow VerificationType = 0 //未知操作 VerificationType_VerificationType_Picture VerificationType = 1 // 图形验证码 VerificationType_VerificationType_Phone VerificationType = 2 // 手机验证码 )
func (VerificationType) Descriptor ¶
func (VerificationType) Descriptor() protoreflect.EnumDescriptor
func (VerificationType) Enum ¶
func (x VerificationType) Enum() *VerificationType
func (VerificationType) EnumDescriptor
deprecated
func (VerificationType) EnumDescriptor() ([]byte, []int)
Deprecated: Use VerificationType.Descriptor instead.
func (VerificationType) Number ¶
func (x VerificationType) Number() protoreflect.EnumNumber
func (VerificationType) String ¶
func (x VerificationType) String() string
func (VerificationType) Type ¶
func (VerificationType) Type() protoreflect.EnumType
func (*VerificationType) UnmarshalJSON
deprecated
func (x *VerificationType) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
Click to show internal directories.
Click to hide internal directories.