Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterCommonHTTPServer(s *http.Server, srv CommonHTTPServer)
- func RegisterCommonServer(s grpc.ServiceRegistrar, srv CommonServer)
- type CommonClient
- type CommonHTTPClient
- type CommonHTTPClientImpl
- type CommonHTTPServer
- type CommonServer
- type FireWallReply
- func (*FireWallReply) Descriptor() ([]byte, []int)deprecated
- func (x *FireWallReply) GetStatus() bool
- func (*FireWallReply) ProtoMessage()
- func (x *FireWallReply) ProtoReflect() protoreflect.Message
- func (x *FireWallReply) Reset()
- func (x *FireWallReply) String() string
- func (m *FireWallReply) Validate() error
- func (m *FireWallReply) ValidateAll() error
- type FireWallReplyMultiError
- type FireWallReplyValidationError
- func (e FireWallReplyValidationError) Cause() error
- func (e FireWallReplyValidationError) Error() string
- func (e FireWallReplyValidationError) ErrorName() string
- func (e FireWallReplyValidationError) Field() string
- func (e FireWallReplyValidationError) Key() bool
- func (e FireWallReplyValidationError) Reason() string
- type FireWallRequest
- func (*FireWallRequest) Descriptor() ([]byte, []int)deprecated
- func (x *FireWallRequest) GetLastIp() string
- func (*FireWallRequest) ProtoMessage()
- func (x *FireWallRequest) ProtoReflect() protoreflect.Message
- func (x *FireWallRequest) Reset()
- func (x *FireWallRequest) String() string
- func (m *FireWallRequest) Validate() error
- func (m *FireWallRequest) ValidateAll() error
- type FireWallRequestMultiError
- type FireWallRequestValidationError
- func (e FireWallRequestValidationError) Cause() error
- func (e FireWallRequestValidationError) Error() string
- func (e FireWallRequestValidationError) ErrorName() string
- func (e FireWallRequestValidationError) Field() string
- func (e FireWallRequestValidationError) Key() bool
- func (e FireWallRequestValidationError) Reason() string
- type GetCaptchaReply
- func (*GetCaptchaReply) Descriptor() ([]byte, []int)deprecated
- func (x *GetCaptchaReply) GetCaptchaId() string
- func (x *GetCaptchaReply) GetData() string
- func (*GetCaptchaReply) ProtoMessage()
- func (x *GetCaptchaReply) ProtoReflect() protoreflect.Message
- func (x *GetCaptchaReply) Reset()
- func (x *GetCaptchaReply) String() string
- func (m *GetCaptchaReply) Validate() error
- func (m *GetCaptchaReply) ValidateAll() error
- type GetCaptchaReplyMultiError
- type GetCaptchaReplyValidationError
- func (e GetCaptchaReplyValidationError) Cause() error
- func (e GetCaptchaReplyValidationError) Error() string
- func (e GetCaptchaReplyValidationError) ErrorName() string
- func (e GetCaptchaReplyValidationError) Field() string
- func (e GetCaptchaReplyValidationError) Key() bool
- func (e GetCaptchaReplyValidationError) Reason() string
- type GetCaptchaRequest
- func (*GetCaptchaRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetCaptchaRequest) GetLastIp() string
- func (*GetCaptchaRequest) ProtoMessage()
- func (x *GetCaptchaRequest) ProtoReflect() protoreflect.Message
- func (x *GetCaptchaRequest) Reset()
- func (x *GetCaptchaRequest) String() string
- func (m *GetCaptchaRequest) Validate() error
- func (m *GetCaptchaRequest) ValidateAll() error
- type GetCaptchaRequestMultiError
- type GetCaptchaRequestValidationError
- func (e GetCaptchaRequestValidationError) Cause() error
- func (e GetCaptchaRequestValidationError) Error() string
- func (e GetCaptchaRequestValidationError) ErrorName() string
- func (e GetCaptchaRequestValidationError) Field() string
- func (e GetCaptchaRequestValidationError) Key() bool
- func (e GetCaptchaRequestValidationError) Reason() string
- type UnimplementedCommonServer
- type UnsafeCommonServer
- type VerifyCaptchaReply
- func (*VerifyCaptchaReply) Descriptor() ([]byte, []int)deprecated
- func (x *VerifyCaptchaReply) GetStatus() bool
- func (*VerifyCaptchaReply) ProtoMessage()
- func (x *VerifyCaptchaReply) ProtoReflect() protoreflect.Message
- func (x *VerifyCaptchaReply) Reset()
- func (x *VerifyCaptchaReply) String() string
- func (m *VerifyCaptchaReply) Validate() error
- func (m *VerifyCaptchaReply) ValidateAll() error
- type VerifyCaptchaReplyMultiError
- type VerifyCaptchaReplyValidationError
- func (e VerifyCaptchaReplyValidationError) Cause() error
- func (e VerifyCaptchaReplyValidationError) Error() string
- func (e VerifyCaptchaReplyValidationError) ErrorName() string
- func (e VerifyCaptchaReplyValidationError) Field() string
- func (e VerifyCaptchaReplyValidationError) Key() bool
- func (e VerifyCaptchaReplyValidationError) Reason() string
- type VerifyCaptchaRequest
- func (*VerifyCaptchaRequest) Descriptor() ([]byte, []int)deprecated
- func (x *VerifyCaptchaRequest) GetAnswer() string
- func (x *VerifyCaptchaRequest) GetCaptchaId() string
- func (x *VerifyCaptchaRequest) GetLastIp() string
- func (*VerifyCaptchaRequest) ProtoMessage()
- func (x *VerifyCaptchaRequest) ProtoReflect() protoreflect.Message
- func (x *VerifyCaptchaRequest) Reset()
- func (x *VerifyCaptchaRequest) String() string
- func (m *VerifyCaptchaRequest) Validate() error
- func (m *VerifyCaptchaRequest) ValidateAll() error
- type VerifyCaptchaRequestMultiError
- type VerifyCaptchaRequestValidationError
- func (e VerifyCaptchaRequestValidationError) Cause() error
- func (e VerifyCaptchaRequestValidationError) Error() string
- func (e VerifyCaptchaRequestValidationError) ErrorName() string
- func (e VerifyCaptchaRequestValidationError) Field() string
- func (e VerifyCaptchaRequestValidationError) Key() bool
- func (e VerifyCaptchaRequestValidationError) Reason() string
Constants ¶
const ( Common_GetCaptcha_FullMethodName = "/api.common.v1.Common/GetCaptcha" Common_VerifyCaptcha_FullMethodName = "/api.common.v1.Common/VerifyCaptcha" )
const OperationCommonGetCaptcha = "/api.common.v1.Common/GetCaptcha"
const OperationCommonVerifyCaptcha = "/api.common.v1.Common/VerifyCaptcha"
Variables ¶
var Common_ServiceDesc = grpc.ServiceDesc{ ServiceName: "api.common.v1.Common", HandlerType: (*CommonServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetCaptcha", Handler: _Common_GetCaptcha_Handler, }, { MethodName: "VerifyCaptcha", Handler: _Common_VerifyCaptcha_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "common/v1/common.proto", }
Common_ServiceDesc is the grpc.ServiceDesc for Common service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_api_common_v1_common_proto protoreflect.FileDescriptor
Functions ¶
func RegisterCommonHTTPServer ¶
func RegisterCommonHTTPServer(s *http.Server, srv CommonHTTPServer)
func RegisterCommonServer ¶
func RegisterCommonServer(s grpc.ServiceRegistrar, srv CommonServer)
Types ¶
type CommonClient ¶
type CommonClient interface { // 获取验证码 GetCaptcha(ctx context.Context, in *GetCaptchaRequest, opts ...grpc.CallOption) (*GetCaptchaReply, error) // 验证验证码 VerifyCaptcha(ctx context.Context, in *VerifyCaptchaRequest, opts ...grpc.CallOption) (*VerifyCaptchaReply, error) }
CommonClient is the client API for Common 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 NewCommonClient ¶
func NewCommonClient(cc grpc.ClientConnInterface) CommonClient
type CommonHTTPClient ¶
type CommonHTTPClient interface { GetCaptcha(ctx context.Context, req *GetCaptchaRequest, opts ...http.CallOption) (rsp *GetCaptchaReply, err error) VerifyCaptcha(ctx context.Context, req *VerifyCaptchaRequest, opts ...http.CallOption) (rsp *VerifyCaptchaReply, err error) }
func NewCommonHTTPClient ¶
func NewCommonHTTPClient(client *http.Client) CommonHTTPClient
type CommonHTTPClientImpl ¶
type CommonHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*CommonHTTPClientImpl) GetCaptcha ¶
func (c *CommonHTTPClientImpl) GetCaptcha(ctx context.Context, in *GetCaptchaRequest, opts ...http.CallOption) (*GetCaptchaReply, error)
func (*CommonHTTPClientImpl) VerifyCaptcha ¶
func (c *CommonHTTPClientImpl) VerifyCaptcha(ctx context.Context, in *VerifyCaptchaRequest, opts ...http.CallOption) (*VerifyCaptchaReply, error)
type CommonHTTPServer ¶
type CommonHTTPServer interface { // GetCaptcha 获取验证码 GetCaptcha(context.Context, *GetCaptchaRequest) (*GetCaptchaReply, error) // VerifyCaptcha 验证验证码 VerifyCaptcha(context.Context, *VerifyCaptchaRequest) (*VerifyCaptchaReply, error) }
type CommonServer ¶
type CommonServer interface { // 获取验证码 GetCaptcha(context.Context, *GetCaptchaRequest) (*GetCaptchaReply, error) // 验证验证码 VerifyCaptcha(context.Context, *VerifyCaptchaRequest) (*VerifyCaptchaReply, error) // contains filtered or unexported methods }
CommonServer is the server API for Common service. All implementations must embed UnimplementedCommonServer for forward compatibility
type FireWallReply ¶ added in v0.0.22
type FireWallReply struct { Status bool `protobuf:"varint,1,opt,name=Status,proto3" json:"Status,omitempty"` // contains filtered or unexported fields }
FireWallReply 获取验证码返回
func (*FireWallReply) Descriptor
deprecated
added in
v0.0.22
func (*FireWallReply) Descriptor() ([]byte, []int)
Deprecated: Use FireWallReply.ProtoReflect.Descriptor instead.
func (*FireWallReply) GetStatus ¶ added in v0.0.22
func (x *FireWallReply) GetStatus() bool
func (*FireWallReply) ProtoMessage ¶ added in v0.0.22
func (*FireWallReply) ProtoMessage()
func (*FireWallReply) ProtoReflect ¶ added in v0.0.22
func (x *FireWallReply) ProtoReflect() protoreflect.Message
func (*FireWallReply) Reset ¶ added in v0.0.22
func (x *FireWallReply) Reset()
func (*FireWallReply) String ¶ added in v0.0.22
func (x *FireWallReply) String() string
func (*FireWallReply) Validate ¶ added in v0.0.22
func (m *FireWallReply) Validate() error
Validate checks the field values on FireWallReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*FireWallReply) ValidateAll ¶ added in v0.0.22
func (m *FireWallReply) ValidateAll() error
ValidateAll checks the field values on FireWallReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in FireWallReplyMultiError, or nil if none found.
type FireWallReplyMultiError ¶ added in v0.0.22
type FireWallReplyMultiError []error
FireWallReplyMultiError is an error wrapping multiple validation errors returned by FireWallReply.ValidateAll() if the designated constraints aren't met.
func (FireWallReplyMultiError) AllErrors ¶ added in v0.0.22
func (m FireWallReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (FireWallReplyMultiError) Error ¶ added in v0.0.22
func (m FireWallReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type FireWallReplyValidationError ¶ added in v0.0.22
type FireWallReplyValidationError struct {
// contains filtered or unexported fields
}
FireWallReplyValidationError is the validation error returned by FireWallReply.Validate if the designated constraints aren't met.
func (FireWallReplyValidationError) Cause ¶ added in v0.0.22
func (e FireWallReplyValidationError) Cause() error
Cause function returns cause value.
func (FireWallReplyValidationError) Error ¶ added in v0.0.22
func (e FireWallReplyValidationError) Error() string
Error satisfies the builtin error interface
func (FireWallReplyValidationError) ErrorName ¶ added in v0.0.22
func (e FireWallReplyValidationError) ErrorName() string
ErrorName returns error name.
func (FireWallReplyValidationError) Field ¶ added in v0.0.22
func (e FireWallReplyValidationError) Field() string
Field function returns field value.
func (FireWallReplyValidationError) Key ¶ added in v0.0.22
func (e FireWallReplyValidationError) Key() bool
Key function returns key value.
func (FireWallReplyValidationError) Reason ¶ added in v0.0.22
func (e FireWallReplyValidationError) Reason() string
Reason function returns reason value.
type FireWallRequest ¶ added in v0.0.22
type FireWallRequest struct { // IP LastIp string `protobuf:"bytes,2,opt,name=LastIp,proto3" json:"LastIp,omitempty"` // contains filtered or unexported fields }
FireWallRequest 获取图形验证码
func (*FireWallRequest) Descriptor
deprecated
added in
v0.0.22
func (*FireWallRequest) Descriptor() ([]byte, []int)
Deprecated: Use FireWallRequest.ProtoReflect.Descriptor instead.
func (*FireWallRequest) GetLastIp ¶ added in v0.0.22
func (x *FireWallRequest) GetLastIp() string
func (*FireWallRequest) ProtoMessage ¶ added in v0.0.22
func (*FireWallRequest) ProtoMessage()
func (*FireWallRequest) ProtoReflect ¶ added in v0.0.22
func (x *FireWallRequest) ProtoReflect() protoreflect.Message
func (*FireWallRequest) Reset ¶ added in v0.0.22
func (x *FireWallRequest) Reset()
func (*FireWallRequest) String ¶ added in v0.0.22
func (x *FireWallRequest) String() string
func (*FireWallRequest) Validate ¶ added in v0.0.22
func (m *FireWallRequest) Validate() error
Validate checks the field values on FireWallRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*FireWallRequest) ValidateAll ¶ added in v0.0.22
func (m *FireWallRequest) ValidateAll() error
ValidateAll checks the field values on FireWallRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in FireWallRequestMultiError, or nil if none found.
type FireWallRequestMultiError ¶ added in v0.0.22
type FireWallRequestMultiError []error
FireWallRequestMultiError is an error wrapping multiple validation errors returned by FireWallRequest.ValidateAll() if the designated constraints aren't met.
func (FireWallRequestMultiError) AllErrors ¶ added in v0.0.22
func (m FireWallRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (FireWallRequestMultiError) Error ¶ added in v0.0.22
func (m FireWallRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type FireWallRequestValidationError ¶ added in v0.0.22
type FireWallRequestValidationError struct {
// contains filtered or unexported fields
}
FireWallRequestValidationError is the validation error returned by FireWallRequest.Validate if the designated constraints aren't met.
func (FireWallRequestValidationError) Cause ¶ added in v0.0.22
func (e FireWallRequestValidationError) Cause() error
Cause function returns cause value.
func (FireWallRequestValidationError) Error ¶ added in v0.0.22
func (e FireWallRequestValidationError) Error() string
Error satisfies the builtin error interface
func (FireWallRequestValidationError) ErrorName ¶ added in v0.0.22
func (e FireWallRequestValidationError) ErrorName() string
ErrorName returns error name.
func (FireWallRequestValidationError) Field ¶ added in v0.0.22
func (e FireWallRequestValidationError) Field() string
Field function returns field value.
func (FireWallRequestValidationError) Key ¶ added in v0.0.22
func (e FireWallRequestValidationError) Key() bool
Key function returns key value.
func (FireWallRequestValidationError) Reason ¶ added in v0.0.22
func (e FireWallRequestValidationError) Reason() string
Reason function returns reason value.
type GetCaptchaReply ¶
type GetCaptchaReply struct { CaptchaId string `protobuf:"bytes,2,opt,name=captchaId,proto3" json:"captchaId,omitempty"` Data string `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
GetCaptchaReply 获取验证码返回
func (*GetCaptchaReply) Descriptor
deprecated
func (*GetCaptchaReply) Descriptor() ([]byte, []int)
Deprecated: Use GetCaptchaReply.ProtoReflect.Descriptor instead.
func (*GetCaptchaReply) GetCaptchaId ¶
func (x *GetCaptchaReply) GetCaptchaId() string
func (*GetCaptchaReply) GetData ¶
func (x *GetCaptchaReply) GetData() string
func (*GetCaptchaReply) ProtoMessage ¶
func (*GetCaptchaReply) ProtoMessage()
func (*GetCaptchaReply) ProtoReflect ¶
func (x *GetCaptchaReply) ProtoReflect() protoreflect.Message
func (*GetCaptchaReply) Reset ¶
func (x *GetCaptchaReply) Reset()
func (*GetCaptchaReply) String ¶
func (x *GetCaptchaReply) String() string
func (*GetCaptchaReply) Validate ¶
func (m *GetCaptchaReply) Validate() error
Validate checks the field values on GetCaptchaReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GetCaptchaReply) ValidateAll ¶
func (m *GetCaptchaReply) ValidateAll() error
ValidateAll checks the field values on GetCaptchaReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetCaptchaReplyMultiError, or nil if none found.
type GetCaptchaReplyMultiError ¶
type GetCaptchaReplyMultiError []error
GetCaptchaReplyMultiError is an error wrapping multiple validation errors returned by GetCaptchaReply.ValidateAll() if the designated constraints aren't met.
func (GetCaptchaReplyMultiError) AllErrors ¶
func (m GetCaptchaReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetCaptchaReplyMultiError) Error ¶
func (m GetCaptchaReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetCaptchaReplyValidationError ¶
type GetCaptchaReplyValidationError struct {
// contains filtered or unexported fields
}
GetCaptchaReplyValidationError is the validation error returned by GetCaptchaReply.Validate if the designated constraints aren't met.
func (GetCaptchaReplyValidationError) Cause ¶
func (e GetCaptchaReplyValidationError) Cause() error
Cause function returns cause value.
func (GetCaptchaReplyValidationError) Error ¶
func (e GetCaptchaReplyValidationError) Error() string
Error satisfies the builtin error interface
func (GetCaptchaReplyValidationError) ErrorName ¶
func (e GetCaptchaReplyValidationError) ErrorName() string
ErrorName returns error name.
func (GetCaptchaReplyValidationError) Field ¶
func (e GetCaptchaReplyValidationError) Field() string
Field function returns field value.
func (GetCaptchaReplyValidationError) Key ¶
func (e GetCaptchaReplyValidationError) Key() bool
Key function returns key value.
func (GetCaptchaReplyValidationError) Reason ¶
func (e GetCaptchaReplyValidationError) Reason() string
Reason function returns reason value.
type GetCaptchaRequest ¶
type GetCaptchaRequest struct { // IP LastIp string `protobuf:"bytes,2,opt,name=LastIp,proto3" json:"LastIp,omitempty"` // contains filtered or unexported fields }
GetCaptchaRequest 获取图形验证码
func (*GetCaptchaRequest) Descriptor
deprecated
func (*GetCaptchaRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetCaptchaRequest.ProtoReflect.Descriptor instead.
func (*GetCaptchaRequest) GetLastIp ¶
func (x *GetCaptchaRequest) GetLastIp() string
func (*GetCaptchaRequest) ProtoMessage ¶
func (*GetCaptchaRequest) ProtoMessage()
func (*GetCaptchaRequest) ProtoReflect ¶
func (x *GetCaptchaRequest) ProtoReflect() protoreflect.Message
func (*GetCaptchaRequest) Reset ¶
func (x *GetCaptchaRequest) Reset()
func (*GetCaptchaRequest) String ¶
func (x *GetCaptchaRequest) String() string
func (*GetCaptchaRequest) Validate ¶
func (m *GetCaptchaRequest) Validate() error
Validate checks the field values on GetCaptchaRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GetCaptchaRequest) ValidateAll ¶
func (m *GetCaptchaRequest) ValidateAll() error
ValidateAll checks the field values on GetCaptchaRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetCaptchaRequestMultiError, or nil if none found.
type GetCaptchaRequestMultiError ¶
type GetCaptchaRequestMultiError []error
GetCaptchaRequestMultiError is an error wrapping multiple validation errors returned by GetCaptchaRequest.ValidateAll() if the designated constraints aren't met.
func (GetCaptchaRequestMultiError) AllErrors ¶
func (m GetCaptchaRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetCaptchaRequestMultiError) Error ¶
func (m GetCaptchaRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetCaptchaRequestValidationError ¶
type GetCaptchaRequestValidationError struct {
// contains filtered or unexported fields
}
GetCaptchaRequestValidationError is the validation error returned by GetCaptchaRequest.Validate if the designated constraints aren't met.
func (GetCaptchaRequestValidationError) Cause ¶
func (e GetCaptchaRequestValidationError) Cause() error
Cause function returns cause value.
func (GetCaptchaRequestValidationError) Error ¶
func (e GetCaptchaRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetCaptchaRequestValidationError) ErrorName ¶
func (e GetCaptchaRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetCaptchaRequestValidationError) Field ¶
func (e GetCaptchaRequestValidationError) Field() string
Field function returns field value.
func (GetCaptchaRequestValidationError) Key ¶
func (e GetCaptchaRequestValidationError) Key() bool
Key function returns key value.
func (GetCaptchaRequestValidationError) Reason ¶
func (e GetCaptchaRequestValidationError) Reason() string
Reason function returns reason value.
type UnimplementedCommonServer ¶
type UnimplementedCommonServer struct { }
UnimplementedCommonServer must be embedded to have forward compatible implementations.
func (UnimplementedCommonServer) GetCaptcha ¶
func (UnimplementedCommonServer) GetCaptcha(context.Context, *GetCaptchaRequest) (*GetCaptchaReply, error)
func (UnimplementedCommonServer) VerifyCaptcha ¶
func (UnimplementedCommonServer) VerifyCaptcha(context.Context, *VerifyCaptchaRequest) (*VerifyCaptchaReply, error)
type UnsafeCommonServer ¶
type UnsafeCommonServer interface {
// contains filtered or unexported methods
}
UnsafeCommonServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to CommonServer will result in compilation errors.
type VerifyCaptchaReply ¶
type VerifyCaptchaReply struct { // 状态 Status bool `protobuf:"varint,1,opt,name=Status,proto3" json:"Status,omitempty"` // contains filtered or unexported fields }
验证验证码
func (*VerifyCaptchaReply) Descriptor
deprecated
func (*VerifyCaptchaReply) Descriptor() ([]byte, []int)
Deprecated: Use VerifyCaptchaReply.ProtoReflect.Descriptor instead.
func (*VerifyCaptchaReply) GetStatus ¶
func (x *VerifyCaptchaReply) GetStatus() bool
func (*VerifyCaptchaReply) ProtoMessage ¶
func (*VerifyCaptchaReply) ProtoMessage()
func (*VerifyCaptchaReply) ProtoReflect ¶
func (x *VerifyCaptchaReply) ProtoReflect() protoreflect.Message
func (*VerifyCaptchaReply) Reset ¶
func (x *VerifyCaptchaReply) Reset()
func (*VerifyCaptchaReply) String ¶
func (x *VerifyCaptchaReply) String() string
func (*VerifyCaptchaReply) Validate ¶
func (m *VerifyCaptchaReply) Validate() error
Validate checks the field values on VerifyCaptchaReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*VerifyCaptchaReply) ValidateAll ¶
func (m *VerifyCaptchaReply) ValidateAll() error
ValidateAll checks the field values on VerifyCaptchaReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in VerifyCaptchaReplyMultiError, or nil if none found.
type VerifyCaptchaReplyMultiError ¶
type VerifyCaptchaReplyMultiError []error
VerifyCaptchaReplyMultiError is an error wrapping multiple validation errors returned by VerifyCaptchaReply.ValidateAll() if the designated constraints aren't met.
func (VerifyCaptchaReplyMultiError) AllErrors ¶
func (m VerifyCaptchaReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (VerifyCaptchaReplyMultiError) Error ¶
func (m VerifyCaptchaReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type VerifyCaptchaReplyValidationError ¶
type VerifyCaptchaReplyValidationError struct {
// contains filtered or unexported fields
}
VerifyCaptchaReplyValidationError is the validation error returned by VerifyCaptchaReply.Validate if the designated constraints aren't met.
func (VerifyCaptchaReplyValidationError) Cause ¶
func (e VerifyCaptchaReplyValidationError) Cause() error
Cause function returns cause value.
func (VerifyCaptchaReplyValidationError) Error ¶
func (e VerifyCaptchaReplyValidationError) Error() string
Error satisfies the builtin error interface
func (VerifyCaptchaReplyValidationError) ErrorName ¶
func (e VerifyCaptchaReplyValidationError) ErrorName() string
ErrorName returns error name.
func (VerifyCaptchaReplyValidationError) Field ¶
func (e VerifyCaptchaReplyValidationError) Field() string
Field function returns field value.
func (VerifyCaptchaReplyValidationError) Key ¶
func (e VerifyCaptchaReplyValidationError) Key() bool
Key function returns key value.
func (VerifyCaptchaReplyValidationError) Reason ¶
func (e VerifyCaptchaReplyValidationError) Reason() string
Reason function returns reason value.
type VerifyCaptchaRequest ¶
type VerifyCaptchaRequest struct { // 验证码ID CaptchaId string `protobuf:"bytes,2,opt,name=CaptchaId,proto3" json:"CaptchaId,omitempty"` // 回答 Answer string `protobuf:"bytes,3,opt,name=Answer,proto3" json:"Answer,omitempty"` // IP LastIp string `protobuf:"bytes,4,opt,name=LastIp,proto3" json:"LastIp,omitempty"` // contains filtered or unexported fields }
验证验证码
func (*VerifyCaptchaRequest) Descriptor
deprecated
func (*VerifyCaptchaRequest) Descriptor() ([]byte, []int)
Deprecated: Use VerifyCaptchaRequest.ProtoReflect.Descriptor instead.
func (*VerifyCaptchaRequest) GetAnswer ¶
func (x *VerifyCaptchaRequest) GetAnswer() string
func (*VerifyCaptchaRequest) GetCaptchaId ¶
func (x *VerifyCaptchaRequest) GetCaptchaId() string
func (*VerifyCaptchaRequest) GetLastIp ¶
func (x *VerifyCaptchaRequest) GetLastIp() string
func (*VerifyCaptchaRequest) ProtoMessage ¶
func (*VerifyCaptchaRequest) ProtoMessage()
func (*VerifyCaptchaRequest) ProtoReflect ¶
func (x *VerifyCaptchaRequest) ProtoReflect() protoreflect.Message
func (*VerifyCaptchaRequest) Reset ¶
func (x *VerifyCaptchaRequest) Reset()
func (*VerifyCaptchaRequest) String ¶
func (x *VerifyCaptchaRequest) String() string
func (*VerifyCaptchaRequest) Validate ¶
func (m *VerifyCaptchaRequest) Validate() error
Validate checks the field values on VerifyCaptchaRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*VerifyCaptchaRequest) ValidateAll ¶
func (m *VerifyCaptchaRequest) ValidateAll() error
ValidateAll checks the field values on VerifyCaptchaRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in VerifyCaptchaRequestMultiError, or nil if none found.
type VerifyCaptchaRequestMultiError ¶
type VerifyCaptchaRequestMultiError []error
VerifyCaptchaRequestMultiError is an error wrapping multiple validation errors returned by VerifyCaptchaRequest.ValidateAll() if the designated constraints aren't met.
func (VerifyCaptchaRequestMultiError) AllErrors ¶
func (m VerifyCaptchaRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (VerifyCaptchaRequestMultiError) Error ¶
func (m VerifyCaptchaRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type VerifyCaptchaRequestValidationError ¶
type VerifyCaptchaRequestValidationError struct {
// contains filtered or unexported fields
}
VerifyCaptchaRequestValidationError is the validation error returned by VerifyCaptchaRequest.Validate if the designated constraints aren't met.
func (VerifyCaptchaRequestValidationError) Cause ¶
func (e VerifyCaptchaRequestValidationError) Cause() error
Cause function returns cause value.
func (VerifyCaptchaRequestValidationError) Error ¶
func (e VerifyCaptchaRequestValidationError) Error() string
Error satisfies the builtin error interface
func (VerifyCaptchaRequestValidationError) ErrorName ¶
func (e VerifyCaptchaRequestValidationError) ErrorName() string
ErrorName returns error name.
func (VerifyCaptchaRequestValidationError) Field ¶
func (e VerifyCaptchaRequestValidationError) Field() string
Field function returns field value.
func (VerifyCaptchaRequestValidationError) Key ¶
func (e VerifyCaptchaRequestValidationError) Key() bool
Key function returns key value.
func (VerifyCaptchaRequestValidationError) Reason ¶
func (e VerifyCaptchaRequestValidationError) Reason() string
Reason function returns reason value.