Documentation ¶
Overview ¶
Package sqlx is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func Code_SendCodeRaw(db *gorm.DB, arg *SendCodeRequest) *gorm.DB
- func RegisterCodeGinServer(r gin.IRouter, server CodeServer)
- func RegisterCodeHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterCodeHandlerClient(ctx context.Context, mux *runtime.ServeMux, client CodeClient) error
- func RegisterCodeHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterCodeHandlerServer(ctx context.Context, mux *runtime.ServeMux, server CodeServer) error
- func RegisterCodeServer(s grpc.ServiceRegistrar, srv CodeServer)
- type CodeClient
- type CodeServer
- type GetSendStatusRequest
- func (*GetSendStatusRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetSendStatusRequest) GetIp() string
- func (x *GetSendStatusRequest) GetNationCode() string
- func (x *GetSendStatusRequest) GetSendType() string
- func (x *GetSendStatusRequest) GetSignR() int64
- func (x *GetSendStatusRequest) GetTelephone() string
- func (x *GetSendStatusRequest) GetTemplate() string
- func (*GetSendStatusRequest) ProtoMessage()
- func (x *GetSendStatusRequest) ProtoReflect() protoreflect.Message
- func (x *GetSendStatusRequest) Reset()
- func (x *GetSendStatusRequest) String() string
- func (this *GetSendStatusRequest) Validate() error
- type GetSendStatusResponse
- func (*GetSendStatusResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetSendStatusResponse) GetCode() int64
- func (x *GetSendStatusResponse) GetData() *SendStatus
- func (x *GetSendStatusResponse) GetMsg() string
- func (x *GetSendStatusResponse) GetNowTime() int64
- func (*GetSendStatusResponse) ProtoMessage()
- func (x *GetSendStatusResponse) ProtoReflect() protoreflect.Message
- func (x *GetSendStatusResponse) Reset()
- func (x *GetSendStatusResponse) String() string
- func (this *GetSendStatusResponse) Validate() error
- type IsCheckImageCodeRequest
- func (*IsCheckImageCodeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *IsCheckImageCodeRequest) GetNationCode() string
- func (x *IsCheckImageCodeRequest) GetScene() string
- func (x *IsCheckImageCodeRequest) GetTelephone() string
- func (*IsCheckImageCodeRequest) ProtoMessage()
- func (x *IsCheckImageCodeRequest) ProtoReflect() protoreflect.Message
- func (x *IsCheckImageCodeRequest) Reset()
- func (x *IsCheckImageCodeRequest) String() string
- func (this *IsCheckImageCodeRequest) Validate() error
- type IsCheckImageCodeResponse
- func (*IsCheckImageCodeResponse) Descriptor() ([]byte, []int)deprecated
- func (x *IsCheckImageCodeResponse) GetCode() int64
- func (x *IsCheckImageCodeResponse) GetData() bool
- func (x *IsCheckImageCodeResponse) GetMsg() string
- func (x *IsCheckImageCodeResponse) GetNowTime() int64
- func (*IsCheckImageCodeResponse) ProtoMessage()
- func (x *IsCheckImageCodeResponse) ProtoReflect() protoreflect.Message
- func (x *IsCheckImageCodeResponse) Reset()
- func (x *IsCheckImageCodeResponse) String() string
- func (this *IsCheckImageCodeResponse) Validate() error
- type SendCodeRequest
- func (*SendCodeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SendCodeRequest) GetIp() string
- func (x *SendCodeRequest) GetNationCode() string
- func (x *SendCodeRequest) GetSendType() string
- func (x *SendCodeRequest) GetTelephone() string
- func (x *SendCodeRequest) GetTemplate() string
- func (*SendCodeRequest) ProtoMessage()
- func (x *SendCodeRequest) ProtoReflect() protoreflect.Message
- func (x *SendCodeRequest) Reset()
- func (x *SendCodeRequest) String() string
- func (this *SendCodeRequest) Validate() error
- type SendCodeResponse
- func (*SendCodeResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SendCodeResponse) GetCode() int64
- func (x *SendCodeResponse) GetData() map[string]string
- func (x *SendCodeResponse) GetMsg() string
- func (x *SendCodeResponse) GetNowTime() int64
- func (*SendCodeResponse) ProtoMessage()
- func (x *SendCodeResponse) ProtoReflect() protoreflect.Message
- func (x *SendCodeResponse) Reset()
- func (x *SendCodeResponse) String() string
- func (this *SendCodeResponse) Validate() error
- type SendStatus
- func (*SendStatus) Descriptor() ([]byte, []int)deprecated
- func (x *SendStatus) GetForceCall() bool
- func (x *SendStatus) GetIsForbidden() bool
- func (x *SendStatus) GetNeedImageCode() bool
- func (x *SendStatus) GetNumberLimit() bool
- func (*SendStatus) ProtoMessage()
- func (x *SendStatus) ProtoReflect() protoreflect.Message
- func (x *SendStatus) Reset()
- func (x *SendStatus) String() string
- func (this *SendStatus) Validate() error
- type UnimplementedCodeServer
- func (UnimplementedCodeServer) GetSendStatus(context.Context, *GetSendStatusRequest) (*GetSendStatusResponse, error)
- func (UnimplementedCodeServer) IsCheckImageCode(context.Context, *IsCheckImageCodeRequest) (*IsCheckImageCodeResponse, error)
- func (UnimplementedCodeServer) SendCode(context.Context, *SendCodeRequest) (*SendCodeResponse, error)
- func (UnimplementedCodeServer) Verify(context.Context, *VerifyRequest) (*VerifyResponse, error)
- func (UnimplementedCodeServer) VerifyImageCode(context.Context, *VerifyImageCodeRequest) (*VerifyImageCodeResponse, error)
- type UnsafeCodeServer
- type VerifyImageCodeRequest
- func (*VerifyImageCodeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *VerifyImageCodeRequest) GetIp() string
- func (x *VerifyImageCodeRequest) GetNationCode() string
- func (x *VerifyImageCodeRequest) GetRandStr() string
- func (x *VerifyImageCodeRequest) GetScene() string
- func (x *VerifyImageCodeRequest) GetTelephone() string
- func (x *VerifyImageCodeRequest) GetTicket() string
- func (*VerifyImageCodeRequest) ProtoMessage()
- func (x *VerifyImageCodeRequest) ProtoReflect() protoreflect.Message
- func (x *VerifyImageCodeRequest) Reset()
- func (x *VerifyImageCodeRequest) String() string
- func (this *VerifyImageCodeRequest) Validate() error
- type VerifyImageCodeResponse
- func (*VerifyImageCodeResponse) Descriptor() ([]byte, []int)deprecated
- func (x *VerifyImageCodeResponse) GetCode() int64
- func (x *VerifyImageCodeResponse) GetMsg() string
- func (x *VerifyImageCodeResponse) GetNowTime() int64
- func (*VerifyImageCodeResponse) ProtoMessage()
- func (x *VerifyImageCodeResponse) ProtoReflect() protoreflect.Message
- func (x *VerifyImageCodeResponse) Reset()
- func (x *VerifyImageCodeResponse) String() string
- func (this *VerifyImageCodeResponse) Validate() error
- type VerifyRequest
- func (*VerifyRequest) Descriptor() ([]byte, []int)deprecated
- func (x *VerifyRequest) GetCode() string
- func (x *VerifyRequest) GetNationCode() string
- func (x *VerifyRequest) GetTelephone() string
- func (x *VerifyRequest) GetTemplate() string
- func (*VerifyRequest) ProtoMessage()
- func (x *VerifyRequest) ProtoReflect() protoreflect.Message
- func (x *VerifyRequest) Reset()
- func (x *VerifyRequest) String() string
- func (this *VerifyRequest) Validate() error
- type VerifyResponse
- func (*VerifyResponse) Descriptor() ([]byte, []int)deprecated
- func (x *VerifyResponse) GetCode() int64
- func (x *VerifyResponse) GetData() map[string]string
- func (x *VerifyResponse) GetMsg() string
- func (x *VerifyResponse) GetNowTime() int64
- func (*VerifyResponse) ProtoMessage()
- func (x *VerifyResponse) ProtoReflect() protoreflect.Message
- func (x *VerifyResponse) Reset()
- func (x *VerifyResponse) String() string
- func (this *VerifyResponse) Validate() error
Constants ¶
This section is empty.
Variables ¶
var File_proto_sqlx_code_proto protoreflect.FileDescriptor
Functions ¶
func Code_SendCodeRaw ¶
func Code_SendCodeRaw(db *gorm.DB, arg *SendCodeRequest) *gorm.DB
func RegisterCodeGinServer ¶
func RegisterCodeGinServer(r gin.IRouter, server CodeServer)
func RegisterCodeHandler ¶
RegisterCodeHandler registers the http handlers for service Code to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterCodeHandlerClient ¶
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 ¶
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)
Types ¶
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 GetCodeClient ¶
func GetCodeClient(srv string, opts ...func(cfg *grpcc.Cfg)) CodeClient
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
func (*GetSendStatusRequest) Validate ¶
func (this *GetSendStatusRequest) Validate() error
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
func (*GetSendStatusResponse) Validate ¶
func (this *GetSendStatusResponse) Validate() error
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
func (*IsCheckImageCodeRequest) Validate ¶
func (this *IsCheckImageCodeRequest) Validate() error
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
func (*IsCheckImageCodeResponse) Validate ¶
func (this *IsCheckImageCodeResponse) Validate() error
type SendCodeRequest ¶
type SendCodeRequest struct { // 区号 NationCode string `protobuf:"bytes,1,opt,name=nationCode,proto3" json:"nationCode,omitempty" hello:"world" hello1:"world1"` // 电话 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"` // 模板 Template string `protobuf:"bytes,5,opt,name=template,proto3" json:"template,omitempty"` // contains filtered or unexported fields }
func (*SendCodeRequest) Descriptor
deprecated
func (*SendCodeRequest) Descriptor() ([]byte, []int)
Deprecated: Use SendCodeRequest.ProtoReflect.Descriptor instead.
func (*SendCodeRequest) GetIp ¶
func (x *SendCodeRequest) GetIp() string
func (*SendCodeRequest) GetNationCode ¶
func (x *SendCodeRequest) GetNationCode() string
func (*SendCodeRequest) GetSendType ¶
func (x *SendCodeRequest) GetSendType() string
func (*SendCodeRequest) GetTelephone ¶
func (x *SendCodeRequest) GetTelephone() string
func (*SendCodeRequest) GetTemplate ¶
func (x *SendCodeRequest) GetTemplate() 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
func (*SendCodeRequest) Validate ¶
func (this *SendCodeRequest) Validate() error
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
func (*SendCodeResponse) Validate ¶
func (this *SendCodeResponse) Validate() error
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
func (*SendStatus) Validate ¶
func (this *SendStatus) Validate() error
type UnimplementedCodeServer ¶
type UnimplementedCodeServer struct { }
UnimplementedCodeServer should be embedded to have forward compatible implementations.
func (UnimplementedCodeServer) GetSendStatus ¶
func (UnimplementedCodeServer) GetSendStatus(context.Context, *GetSendStatusRequest) (*GetSendStatusResponse, error)
func (UnimplementedCodeServer) IsCheckImageCode ¶
func (UnimplementedCodeServer) IsCheckImageCode(context.Context, *IsCheckImageCodeRequest) (*IsCheckImageCodeResponse, error)
func (UnimplementedCodeServer) SendCode ¶
func (UnimplementedCodeServer) SendCode(context.Context, *SendCodeRequest) (*SendCodeResponse, error)
func (UnimplementedCodeServer) Verify ¶
func (UnimplementedCodeServer) Verify(context.Context, *VerifyRequest) (*VerifyResponse, error)
func (UnimplementedCodeServer) VerifyImageCode ¶
func (UnimplementedCodeServer) VerifyImageCode(context.Context, *VerifyImageCodeRequest) (*VerifyImageCodeResponse, error)
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
func (*VerifyImageCodeRequest) Validate ¶
func (this *VerifyImageCodeRequest) Validate() error
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
func (*VerifyImageCodeResponse) Validate ¶
func (this *VerifyImageCodeResponse) Validate() error
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
func (*VerifyRequest) Validate ¶
func (this *VerifyRequest) Validate() error
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
func (*VerifyResponse) Validate ¶
func (this *VerifyResponse) Validate() error