sqlxpb

package
v0.0.0-...-48c4086 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2022 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Overview

Package sqlxpb is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const CodePathPrefix = "/twirp/hello.v1.sqlx.Code/"

CodePathPrefix is a convenience constant that may identify URL paths. Should be used with caution, it only matches routes generated by Twirp Go clients, with the default "/twirp" prefix and default CamelCase service and method names. More info: https://twitchtv.github.io/twirp/docs/routing.html

Variables

View Source
var (
	NN_name = map[int32]string{
		0: "Hello",
		1: "HelloHello",
		2: "HelloHello1",
		3: "HelloHello2",
		4: "HelloHello3",
	}
	NN_value = map[string]int32{
		"Hello":       0,
		"HelloHello":  1,
		"HelloHello1": 2,
		"HelloHello2": 3,
		"HelloHello3": 4,
	}
)

Enum value maps for NN.

View Source
var Code_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "hello.v1.sqlx.Code",
	HandlerType: (*CodeServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "SendCode",
			Handler:    _Code_SendCode_Handler,
		},
		{
			MethodName: "Verify",
			Handler:    _Code_Verify_Handler,
		},
		{
			MethodName: "IsCheckImageCode",
			Handler:    _Code_IsCheckImageCode_Handler,
		},
		{
			MethodName: "VerifyImageCode",
			Handler:    _Code_VerifyImageCode_Handler,
		},
		{
			MethodName: "GetSendStatus",
			Handler:    _Code_GetSendStatus_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "example/sqlx/code.proto",
}

Code_ServiceDesc is the grpc.ServiceDesc for Code service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_example_sqlx_code_proto protoreflect.FileDescriptor
View Source
var File_example_test_proto protoreflect.FileDescriptor

Functions

func RegisterCodeHandler

func RegisterCodeHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterCodeHandler registers the http handlers for service Code to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterCodeHandlerClient

func RegisterCodeHandlerClient(ctx context.Context, mux *runtime.ServeMux, client CodeClient) error

RegisterCodeHandlerClient registers the http handlers for service Code to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "CodeClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "CodeClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "CodeClient" to call the correct interceptors.

func RegisterCodeHandlerFromEndpoint

func RegisterCodeHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterCodeHandlerFromEndpoint is same as RegisterCodeHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterCodeHandlerServer

func RegisterCodeHandlerServer(ctx context.Context, mux *runtime.ServeMux, server CodeServer) error

RegisterCodeHandlerServer registers the http handlers for service Code to "mux". UnaryRPC :call CodeServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterCodeHandlerFromEndpoint instead.

func RegisterCodeServer

func RegisterCodeServer(s grpc.ServiceRegistrar, srv CodeServer)

func WriteError

func WriteError(resp http.ResponseWriter, err error)

WriteError writes an HTTP response with a valid Twirp error format (code, msg, meta). Useful outside of the Twirp server (e.g. http middleware), but does not trigger hooks. If err is not a twirp.Error, it will get wrapped with twirp.InternalErrorWith(err)

Types

type Code

type Code interface {
	// 发送
	SendCode(context.Context, *SendCodeRequest) (*SendCodeResponse, error)

	// 校验
	Verify(context.Context, *VerifyRequest) (*VerifyResponse, error)

	// 是否校验图片验证码
	IsCheckImageCode(context.Context, *IsCheckImageCodeRequest) (*IsCheckImageCodeResponse, error)

	// 校验图片验证码
	VerifyImageCode(context.Context, *VerifyImageCodeRequest) (*VerifyImageCodeResponse, error)

	// 获取发送状态
	GetSendStatus(context.Context, *GetSendStatusRequest) (*GetSendStatusResponse, error)
}

验证码

func NewCodeJSONClient

func NewCodeJSONClient(baseURL string, client HTTPClient, opts ...twirp.ClientOption) Code

NewCodeJSONClient creates a JSON client that implements the Code interface. It communicates using JSON and can be configured with a custom HTTPClient.

func NewCodeProtobufClient

func NewCodeProtobufClient(baseURL string, client HTTPClient, opts ...twirp.ClientOption) Code

NewCodeProtobufClient creates a Protobuf client that implements the Code interface. It communicates using Protobuf and can be configured with a custom HTTPClient.

type CodeClient

type CodeClient interface {
	// 发送
	SendCode(ctx context.Context, in *SendCodeRequest, opts ...grpc.CallOption) (*SendCodeResponse, error)
	// 校验
	Verify(ctx context.Context, in *VerifyRequest, opts ...grpc.CallOption) (*VerifyResponse, error)
	// 是否校验图片验证码
	IsCheckImageCode(ctx context.Context, in *IsCheckImageCodeRequest, opts ...grpc.CallOption) (*IsCheckImageCodeResponse, error)
	// 校验图片验证码
	VerifyImageCode(ctx context.Context, in *VerifyImageCodeRequest, opts ...grpc.CallOption) (*VerifyImageCodeResponse, error)
	// 获取发送状态
	GetSendStatus(ctx context.Context, in *GetSendStatusRequest, opts ...grpc.CallOption) (*GetSendStatusResponse, error)
}

CodeClient is the client API for Code service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewCodeClient

func NewCodeClient(cc grpc.ClientConnInterface) CodeClient

type CodeServer

type CodeServer interface {
	// 发送
	SendCode(context.Context, *SendCodeRequest) (*SendCodeResponse, error)
	// 校验
	Verify(context.Context, *VerifyRequest) (*VerifyResponse, error)
	// 是否校验图片验证码
	IsCheckImageCode(context.Context, *IsCheckImageCodeRequest) (*IsCheckImageCodeResponse, error)
	// 校验图片验证码
	VerifyImageCode(context.Context, *VerifyImageCodeRequest) (*VerifyImageCodeResponse, error)
	// 获取发送状态
	GetSendStatus(context.Context, *GetSendStatusRequest) (*GetSendStatusResponse, error)
}

CodeServer is the server API for Code service. All implementations should embed UnimplementedCodeServer for forward compatibility

type GetSendStatusRequest

type GetSendStatusRequest struct {

	// 区号
	NationCode string `protobuf:"bytes,1,opt,name=nationCode,proto3" json:"nationCode,omitempty"`
	// 手机号
	Telephone string `protobuf:"bytes,2,opt,name=telephone,proto3" json:"telephone,omitempty"`
	// 发送类型
	SendType string `protobuf:"bytes,3,opt,name=sendType,proto3" json:"sendType,omitempty"`
	// 模板
	Template string `protobuf:"bytes,4,opt,name=template,proto3" json:"template,omitempty"`
	// 是否越狱标示
	SignR int64 `protobuf:"varint,5,opt,name=signR,proto3" json:"signR,omitempty"`
	// ip
	Ip string `protobuf:"bytes,6,opt,name=ip,proto3" json:"ip,omitempty"`
	// contains filtered or unexported fields
}

func (*GetSendStatusRequest) Descriptor deprecated

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

Deprecated: Use GetSendStatusRequest.ProtoReflect.Descriptor instead.

func (*GetSendStatusRequest) GetIp

func (x *GetSendStatusRequest) GetIp() string

func (*GetSendStatusRequest) GetNationCode

func (x *GetSendStatusRequest) GetNationCode() string

func (*GetSendStatusRequest) GetSendType

func (x *GetSendStatusRequest) GetSendType() string

func (*GetSendStatusRequest) GetSignR

func (x *GetSendStatusRequest) GetSignR() int64

func (*GetSendStatusRequest) GetTelephone

func (x *GetSendStatusRequest) GetTelephone() string

func (*GetSendStatusRequest) GetTemplate

func (x *GetSendStatusRequest) GetTemplate() string

func (*GetSendStatusRequest) ProtoMessage

func (*GetSendStatusRequest) ProtoMessage()

func (*GetSendStatusRequest) ProtoReflect

func (x *GetSendStatusRequest) ProtoReflect() protoreflect.Message

func (*GetSendStatusRequest) Reset

func (x *GetSendStatusRequest) Reset()

func (*GetSendStatusRequest) String

func (x *GetSendStatusRequest) String() string

type GetSendStatusResponse

type GetSendStatusResponse struct {

	// code
	Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	// msg
	Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	// 时间戳
	NowTime int64 `protobuf:"varint,3,opt,name=nowTime,proto3" json:"nowTime,omitempty"`
	// 数据
	Data *SendStatus `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*GetSendStatusResponse) Descriptor deprecated

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

Deprecated: Use GetSendStatusResponse.ProtoReflect.Descriptor instead.

func (*GetSendStatusResponse) GetCode

func (x *GetSendStatusResponse) GetCode() int64

func (*GetSendStatusResponse) GetData

func (x *GetSendStatusResponse) GetData() *SendStatus

func (*GetSendStatusResponse) GetMsg

func (x *GetSendStatusResponse) GetMsg() string

func (*GetSendStatusResponse) GetNowTime

func (x *GetSendStatusResponse) GetNowTime() int64

func (*GetSendStatusResponse) ProtoMessage

func (*GetSendStatusResponse) ProtoMessage()

func (*GetSendStatusResponse) ProtoReflect

func (x *GetSendStatusResponse) ProtoReflect() protoreflect.Message

func (*GetSendStatusResponse) Reset

func (x *GetSendStatusResponse) Reset()

func (*GetSendStatusResponse) String

func (x *GetSendStatusResponse) String() string

type HTTPClient

type HTTPClient interface {
	Do(req *http.Request) (*http.Response, error)
}

HTTPClient is the interface used by generated clients to send HTTP requests. It is fulfilled by *(net/http).Client, which is sufficient for most users. Users can provide their own implementation for special retry policies.

HTTPClient implementations should not follow redirects. Redirects are automatically disabled if *(net/http).Client is passed to client constructors. See the withoutRedirects function in this file for more details.

type IsCheckImageCodeRequest

type IsCheckImageCodeRequest struct {

	// 区号
	NationCode string `protobuf:"bytes,1,opt,name=nationCode,proto3" json:"nationCode,omitempty"`
	// 手机号
	Telephone string `protobuf:"bytes,2,opt,name=telephone,proto3" json:"telephone,omitempty"`
	// 场景
	Scene string `protobuf:"bytes,3,opt,name=scene,proto3" json:"scene,omitempty"`
	// contains filtered or unexported fields
}

func (*IsCheckImageCodeRequest) Descriptor deprecated

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

Deprecated: Use IsCheckImageCodeRequest.ProtoReflect.Descriptor instead.

func (*IsCheckImageCodeRequest) GetNationCode

func (x *IsCheckImageCodeRequest) GetNationCode() string

func (*IsCheckImageCodeRequest) GetScene

func (x *IsCheckImageCodeRequest) GetScene() string

func (*IsCheckImageCodeRequest) GetTelephone

func (x *IsCheckImageCodeRequest) GetTelephone() string

func (*IsCheckImageCodeRequest) ProtoMessage

func (*IsCheckImageCodeRequest) ProtoMessage()

func (*IsCheckImageCodeRequest) ProtoReflect

func (x *IsCheckImageCodeRequest) ProtoReflect() protoreflect.Message

func (*IsCheckImageCodeRequest) Reset

func (x *IsCheckImageCodeRequest) Reset()

func (*IsCheckImageCodeRequest) String

func (x *IsCheckImageCodeRequest) String() string

type IsCheckImageCodeResponse

type IsCheckImageCodeResponse struct {

	// code
	Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	// msg
	Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	// 时间戳
	NowTime int64 `protobuf:"varint,3,opt,name=nowTime,proto3" json:"nowTime,omitempty"`
	// 数据
	Data bool `protobuf:"varint,4,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*IsCheckImageCodeResponse) Descriptor deprecated

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

Deprecated: Use IsCheckImageCodeResponse.ProtoReflect.Descriptor instead.

func (*IsCheckImageCodeResponse) GetCode

func (x *IsCheckImageCodeResponse) GetCode() int64

func (*IsCheckImageCodeResponse) GetData

func (x *IsCheckImageCodeResponse) GetData() bool

func (*IsCheckImageCodeResponse) GetMsg

func (x *IsCheckImageCodeResponse) GetMsg() string

func (*IsCheckImageCodeResponse) GetNowTime

func (x *IsCheckImageCodeResponse) GetNowTime() int64

func (*IsCheckImageCodeResponse) ProtoMessage

func (*IsCheckImageCodeResponse) ProtoMessage()

func (*IsCheckImageCodeResponse) ProtoReflect

func (x *IsCheckImageCodeResponse) ProtoReflect() protoreflect.Message

func (*IsCheckImageCodeResponse) Reset

func (x *IsCheckImageCodeResponse) Reset()

func (*IsCheckImageCodeResponse) String

func (x *IsCheckImageCodeResponse) String() string

type NN

type NN int32
const (
	NN_Hello       NN = 0
	NN_HelloHello  NN = 1
	NN_HelloHello1 NN = 2
	NN_HelloHello2 NN = 3
	NN_HelloHello3 NN = 4
)

func (NN) Descriptor

func (NN) Descriptor() protoreflect.EnumDescriptor

func (NN) Enum

func (x NN) Enum() *NN

func (NN) EnumDescriptor deprecated

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

Deprecated: Use NN.Descriptor instead.

func (NN) Number

func (x NN) Number() protoreflect.EnumNumber

func (NN) String

func (x NN) String() string

func (NN) Type

func (NN) Type() protoreflect.EnumType

type SendCodeRequest

type SendCodeRequest struct {

	// 区号
	NationCode string `protobuf:"bytes,1,opt,name=nationCode,proto3" json:"nationCode,omitempty"`
	// Types that are assignable to OneOf:
	//	*SendCodeRequest_A
	OneOf isSendCodeRequest_OneOf `protobuf_oneof:"one_of"`
	// 电话
	Telephone string `protobuf:"bytes,2,opt,name=telephone,proto3" json:"telephone,omitempty"`
	// 发送类型,call ,sms
	SendType string `protobuf:"bytes,3,opt,name=sendType,proto3" json:"sendType,omitempty"`
	// ip
	Ip string `protobuf:"bytes,4,opt,name=ip,proto3" json:"ip,omitempty"`
	// contains filtered or unexported fields
}

func (*SendCodeRequest) Descriptor deprecated

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

Deprecated: Use SendCodeRequest.ProtoReflect.Descriptor instead.

func (*SendCodeRequest) GetA

func (x *SendCodeRequest) GetA() string

func (*SendCodeRequest) GetIp

func (x *SendCodeRequest) GetIp() string

func (*SendCodeRequest) GetNationCode

func (x *SendCodeRequest) GetNationCode() string

func (*SendCodeRequest) GetOneOf

func (m *SendCodeRequest) GetOneOf() isSendCodeRequest_OneOf

func (*SendCodeRequest) GetSendType

func (x *SendCodeRequest) GetSendType() string

func (*SendCodeRequest) GetTelephone

func (x *SendCodeRequest) GetTelephone() string

func (*SendCodeRequest) ProtoMessage

func (*SendCodeRequest) ProtoMessage()

func (*SendCodeRequest) ProtoReflect

func (x *SendCodeRequest) ProtoReflect() protoreflect.Message

func (*SendCodeRequest) Reset

func (x *SendCodeRequest) Reset()

func (*SendCodeRequest) String

func (x *SendCodeRequest) String() string

type SendCodeRequest_A

type SendCodeRequest_A struct {
	A string `protobuf:"bytes,5,opt,name=a,proto3,oneof"`
}

type SendCodeResponse

type SendCodeResponse struct {

	// code
	Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	// msg
	Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	// 时间戳
	// @gotags: valid:"ip" custom_tag:"custom_value"
	NowTime int64 `protobuf:"varint,3,opt,name=nowTime,proto3" json:"nowTime,omitempty"`
	// 数据
	Data map[string]string `` /* 149-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*SendCodeResponse) Descriptor deprecated

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

Deprecated: Use SendCodeResponse.ProtoReflect.Descriptor instead.

func (*SendCodeResponse) GetCode

func (x *SendCodeResponse) GetCode() int64

func (*SendCodeResponse) GetData

func (x *SendCodeResponse) GetData() map[string]string

func (*SendCodeResponse) GetMsg

func (x *SendCodeResponse) GetMsg() string

func (*SendCodeResponse) GetNowTime

func (x *SendCodeResponse) GetNowTime() int64

func (*SendCodeResponse) ProtoMessage

func (*SendCodeResponse) ProtoMessage()

func (*SendCodeResponse) ProtoReflect

func (x *SendCodeResponse) ProtoReflect() protoreflect.Message

func (*SendCodeResponse) Reset

func (x *SendCodeResponse) Reset()

func (*SendCodeResponse) String

func (x *SendCodeResponse) String() string

type SendStatus

type SendStatus struct {

	// 需要图形验证码
	NeedImageCode bool `protobuf:"varint,1,opt,name=needImageCode,proto3" json:"needImageCode,omitempty"`
	// 强制语音
	ForceCall bool `protobuf:"varint,2,opt,name=forceCall,proto3" json:"forceCall,omitempty"`
	// 被禁止
	IsForbidden bool `protobuf:"varint,3,opt,name=isForbidden,proto3" json:"isForbidden,omitempty"`
	// 数量超限制
	NumberLimit bool `protobuf:"varint,4,opt,name=numberLimit,proto3" json:"numberLimit,omitempty"`
	// contains filtered or unexported fields
}

func (*SendStatus) Descriptor deprecated

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

Deprecated: Use SendStatus.ProtoReflect.Descriptor instead.

func (*SendStatus) GetForceCall

func (x *SendStatus) GetForceCall() bool

func (*SendStatus) GetIsForbidden

func (x *SendStatus) GetIsForbidden() bool

func (*SendStatus) GetNeedImageCode

func (x *SendStatus) GetNeedImageCode() bool

func (*SendStatus) GetNumberLimit

func (x *SendStatus) GetNumberLimit() bool

func (*SendStatus) ProtoMessage

func (*SendStatus) ProtoMessage()

func (*SendStatus) ProtoReflect

func (x *SendStatus) ProtoReflect() protoreflect.Message

func (*SendStatus) Reset

func (x *SendStatus) Reset()

func (*SendStatus) String

func (x *SendStatus) String() string

type Test

type Test struct {
	UserId    uint32 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	UserId1   uint32 `protobuf:"varint,2,opt,name=user_id1,json=userId1,proto3" json:"user_id1,omitempty"`
	ExpireAt  uint32 `protobuf:"varint,3,opt,name=expire_at,json=expireAt,proto3" json:"expire_at,omitempty"`
	ExpireAt1 uint32 `protobuf:"varint,4,opt,name=expire_at1,json=expireAt1,proto3" json:"expire_at1,omitempty"`
	Nn        NN     `protobuf:"varint,5,opt,name=nn,proto3,enum=hello.v1.test.NN" json:"nn,omitempty"`
	// contains filtered or unexported fields
}

func (*Test) Descriptor deprecated

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

Deprecated: Use Test.ProtoReflect.Descriptor instead.

func (*Test) GetExpireAt

func (x *Test) GetExpireAt() uint32

func (*Test) GetExpireAt1

func (x *Test) GetExpireAt1() uint32

func (*Test) GetNn

func (x *Test) GetNn() NN

func (*Test) GetUserId

func (x *Test) GetUserId() uint32

func (*Test) GetUserId1

func (x *Test) GetUserId1() uint32

func (*Test) ProtoMessage

func (*Test) ProtoMessage()

func (*Test) ProtoReflect

func (x *Test) ProtoReflect() protoreflect.Message

func (*Test) Reset

func (x *Test) Reset()

func (*Test) String

func (x *Test) String() string

type TwirpServer

type TwirpServer interface {
	http.Handler

	// ServiceDescriptor returns gzipped bytes describing the .proto file that
	// this service was generated from. Once unzipped, the bytes can be
	// unmarshalled as a
	// google.golang.org/protobuf/types/descriptorpb.FileDescriptorProto.
	//
	// The returned integer is the index of this particular service within that
	// FileDescriptorProto's 'Service' slice of ServiceDescriptorProtos. This is a
	// low-level field, expected to be used for reflection.
	ServiceDescriptor() ([]byte, int)

	// ProtocGenTwirpVersion is the semantic version string of the version of
	// twirp used to generate this file.
	ProtocGenTwirpVersion() string

	// PathPrefix returns the HTTP URL path prefix for all methods handled by this
	// service. This can be used with an HTTP mux to route Twirp requests.
	// The path prefix is in the form: "/<prefix>/<package>.<Service>/"
	// that is, everything in a Twirp route except for the <Method> at the end.
	PathPrefix() string
}

TwirpServer is the interface generated server structs will support: they're HTTP handlers with additional methods for accessing metadata about the service. Those accessors are a low-level API for building reflection tools. Most people can think of TwirpServers as just http.Handlers.

func NewCodeServer

func NewCodeServer(svc Code, opts ...interface{}) TwirpServer

NewCodeServer builds a TwirpServer that can be used as an http.Handler to handle HTTP requests that are routed to the right method in the provided svc implementation. The opts are twirp.ServerOption modifiers, for example twirp.WithServerHooks(hooks).

type UnimplementedCodeServer

type UnimplementedCodeServer struct {
}

UnimplementedCodeServer should be embedded to have forward compatible implementations.

func (UnimplementedCodeServer) GetSendStatus

func (UnimplementedCodeServer) SendCode

func (UnimplementedCodeServer) Verify

func (UnimplementedCodeServer) VerifyImageCode

type UnsafeCodeServer

type UnsafeCodeServer interface {
	// contains filtered or unexported methods
}

UnsafeCodeServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to CodeServer will result in compilation errors.

type VerifyImageCodeRequest

type VerifyImageCodeRequest struct {

	// 区号
	NationCode string `protobuf:"bytes,1,opt,name=nationCode,proto3" json:"nationCode,omitempty"`
	// 手机号
	Telephone string `protobuf:"bytes,2,opt,name=telephone,proto3" json:"telephone,omitempty"`
	// 图形验证码ticket
	Ticket string `protobuf:"bytes,3,opt,name=ticket,proto3" json:"ticket,omitempty"`
	// 图形验证码randStr
	RandStr string `protobuf:"bytes,4,opt,name=randStr,proto3" json:"randStr,omitempty"`
	// 图形验证码ip
	Ip string `protobuf:"bytes,5,opt,name=ip,proto3" json:"ip,omitempty"`
	// 场景
	Scene string `protobuf:"bytes,6,opt,name=scene,proto3" json:"scene,omitempty"`
	// contains filtered or unexported fields
}

func (*VerifyImageCodeRequest) Descriptor deprecated

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

Deprecated: Use VerifyImageCodeRequest.ProtoReflect.Descriptor instead.

func (*VerifyImageCodeRequest) GetIp

func (x *VerifyImageCodeRequest) GetIp() string

func (*VerifyImageCodeRequest) GetNationCode

func (x *VerifyImageCodeRequest) GetNationCode() string

func (*VerifyImageCodeRequest) GetRandStr

func (x *VerifyImageCodeRequest) GetRandStr() string

func (*VerifyImageCodeRequest) GetScene

func (x *VerifyImageCodeRequest) GetScene() string

func (*VerifyImageCodeRequest) GetTelephone

func (x *VerifyImageCodeRequest) GetTelephone() string

func (*VerifyImageCodeRequest) GetTicket

func (x *VerifyImageCodeRequest) GetTicket() string

func (*VerifyImageCodeRequest) ProtoMessage

func (*VerifyImageCodeRequest) ProtoMessage()

func (*VerifyImageCodeRequest) ProtoReflect

func (x *VerifyImageCodeRequest) ProtoReflect() protoreflect.Message

func (*VerifyImageCodeRequest) Reset

func (x *VerifyImageCodeRequest) Reset()

func (*VerifyImageCodeRequest) String

func (x *VerifyImageCodeRequest) String() string

type VerifyImageCodeResponse

type VerifyImageCodeResponse struct {

	// code
	Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	// msg
	Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	// 时间戳
	NowTime int64 `protobuf:"varint,3,opt,name=nowTime,proto3" json:"nowTime,omitempty"`
	// contains filtered or unexported fields
}

func (*VerifyImageCodeResponse) Descriptor deprecated

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

Deprecated: Use VerifyImageCodeResponse.ProtoReflect.Descriptor instead.

func (*VerifyImageCodeResponse) GetCode

func (x *VerifyImageCodeResponse) GetCode() int64

func (*VerifyImageCodeResponse) GetMsg

func (x *VerifyImageCodeResponse) GetMsg() string

func (*VerifyImageCodeResponse) GetNowTime

func (x *VerifyImageCodeResponse) GetNowTime() int64

func (*VerifyImageCodeResponse) ProtoMessage

func (*VerifyImageCodeResponse) ProtoMessage()

func (*VerifyImageCodeResponse) ProtoReflect

func (x *VerifyImageCodeResponse) ProtoReflect() protoreflect.Message

func (*VerifyImageCodeResponse) Reset

func (x *VerifyImageCodeResponse) Reset()

func (*VerifyImageCodeResponse) String

func (x *VerifyImageCodeResponse) String() string

type VerifyRequest

type VerifyRequest struct {

	// 区号
	NationCode string `protobuf:"bytes,1,opt,name=nationCode,proto3" json:"nationCode,omitempty"`
	// 手机号
	Telephone string `protobuf:"bytes,2,opt,name=telephone,proto3" json:"telephone,omitempty"`
	// 验证码
	Code string `protobuf:"bytes,3,opt,name=code,proto3" json:"code,omitempty"`
	// 模板
	Template string `protobuf:"bytes,4,opt,name=template,proto3" json:"template,omitempty"`
	// contains filtered or unexported fields
}

func (*VerifyRequest) Descriptor deprecated

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

Deprecated: Use VerifyRequest.ProtoReflect.Descriptor instead.

func (*VerifyRequest) GetCode

func (x *VerifyRequest) GetCode() string

func (*VerifyRequest) GetNationCode

func (x *VerifyRequest) GetNationCode() string

func (*VerifyRequest) GetTelephone

func (x *VerifyRequest) GetTelephone() string

func (*VerifyRequest) GetTemplate

func (x *VerifyRequest) GetTemplate() string

func (*VerifyRequest) ProtoMessage

func (*VerifyRequest) ProtoMessage()

func (*VerifyRequest) ProtoReflect

func (x *VerifyRequest) ProtoReflect() protoreflect.Message

func (*VerifyRequest) Reset

func (x *VerifyRequest) Reset()

func (*VerifyRequest) String

func (x *VerifyRequest) String() string

type VerifyResponse

type VerifyResponse struct {

	// code
	Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	// msg
	Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	// 时间戳
	NowTime int64 `protobuf:"varint,3,opt,name=nowTime,proto3" json:"nowTime,omitempty"`
	// 数据
	Data map[string]string `` /* 149-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*VerifyResponse) Descriptor deprecated

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

Deprecated: Use VerifyResponse.ProtoReflect.Descriptor instead.

func (*VerifyResponse) GetCode

func (x *VerifyResponse) GetCode() int64

func (*VerifyResponse) GetData

func (x *VerifyResponse) GetData() map[string]string

func (*VerifyResponse) GetMsg

func (x *VerifyResponse) GetMsg() string

func (*VerifyResponse) GetNowTime

func (x *VerifyResponse) GetNowTime() int64

func (*VerifyResponse) ProtoMessage

func (*VerifyResponse) ProtoMessage()

func (*VerifyResponse) ProtoReflect

func (x *VerifyResponse) ProtoReflect() protoreflect.Message

func (*VerifyResponse) Reset

func (x *VerifyResponse) Reset()

func (*VerifyResponse) String

func (x *VerifyResponse) String() string

Jump to

Keyboard shortcuts

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