verification

package
v0.0.0-...-6059486 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

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

Deprecated: Use C2S.ProtoReflect.Descriptor instead.

func (*C2S) GetCode

func (x *C2S) GetCode() string

func (*C2S) GetOp

func (x *C2S) GetOp() int32

func (*C2S) GetType

func (x *C2S) GetType() 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 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 {
	// contains filtered or unexported fields
}

func (*S2C) Descriptor deprecated

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

Deprecated: Use S2C.ProtoReflect.Descriptor instead.

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

func (x VerificationOp) Enum() *VerificationOp

func (VerificationOp) EnumDescriptor deprecated

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

Deprecated: Use VerificationOp.Descriptor instead.

func (VerificationOp) Number

func (VerificationOp) String

func (x VerificationOp) String() string

func (VerificationOp) Type

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

func (VerificationType) EnumDescriptor deprecated

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

Deprecated: Use VerificationType.Descriptor instead.

func (VerificationType) Number

func (VerificationType) String

func (x VerificationType) String() string

func (VerificationType) Type

func (*VerificationType) UnmarshalJSON deprecated

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