Versions in this module Expand all Collapse all v0 v0.2.1 May 8, 2022 Changes in this version + var Code_ServiceDesc = grpc.ServiceDesc + var File_proto_sqlx_code_proto protoreflect.FileDescriptor + func InitCodeClient(addr string, alias ...string) + func RegisterCode(srv service.Service, impl 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 interface + GetSendStatus func(ctx context.Context, in *GetSendStatusRequest, opts ...grpc.CallOption) (*GetSendStatusResponse, error) + IsCheckImageCode func(ctx context.Context, in *IsCheckImageCodeRequest, opts ...grpc.CallOption) (*IsCheckImageCodeResponse, error) + SendCode func(ctx context.Context, in *SendCodeRequest, opts ...grpc.CallOption) (*SendCodeResponse, error) + Verify func(ctx context.Context, in *VerifyRequest, opts ...grpc.CallOption) (*VerifyResponse, error) + VerifyImageCode func(ctx context.Context, in *VerifyImageCodeRequest, opts ...grpc.CallOption) (*VerifyImageCodeResponse, error) + func NewCodeClient(cc grpc.ClientConnInterface) CodeClient + type CodeServer interface + GetSendStatus func(context.Context, *GetSendStatusRequest) (*GetSendStatusResponse, error) + IsCheckImageCode func(context.Context, *IsCheckImageCodeRequest) (*IsCheckImageCodeResponse, error) + SendCode func(context.Context, *SendCodeRequest) (*SendCodeResponse, error) + Verify func(context.Context, *VerifyRequest) (*VerifyResponse, error) + VerifyImageCode func(context.Context, *VerifyImageCodeRequest) (*VerifyImageCodeResponse, error) + type GetSendStatusRequest struct + Ip string + NationCode string + SendType string + SignR int64 + Telephone string + Template string + func (*GetSendStatusRequest) Descriptor() ([]byte, []int) + func (*GetSendStatusRequest) ProtoMessage() + 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 (x *GetSendStatusRequest) ProtoReflect() protoreflect.Message + func (x *GetSendStatusRequest) Reset() + func (x *GetSendStatusRequest) String() string + type GetSendStatusResponse struct + Code int64 + Data *SendStatus + Msg string + NowTime int64 + func (*GetSendStatusResponse) Descriptor() ([]byte, []int) + func (*GetSendStatusResponse) ProtoMessage() + func (x *GetSendStatusResponse) GetCode() int64 + func (x *GetSendStatusResponse) GetData() *SendStatus + func (x *GetSendStatusResponse) GetMsg() string + func (x *GetSendStatusResponse) GetNowTime() int64 + func (x *GetSendStatusResponse) ProtoReflect() protoreflect.Message + func (x *GetSendStatusResponse) Reset() + func (x *GetSendStatusResponse) String() string + type IsCheckImageCodeRequest struct + NationCode string + Scene string + Telephone string + func (*IsCheckImageCodeRequest) Descriptor() ([]byte, []int) + func (*IsCheckImageCodeRequest) ProtoMessage() + func (x *IsCheckImageCodeRequest) GetNationCode() string + func (x *IsCheckImageCodeRequest) GetScene() string + func (x *IsCheckImageCodeRequest) GetTelephone() string + func (x *IsCheckImageCodeRequest) ProtoReflect() protoreflect.Message + func (x *IsCheckImageCodeRequest) Reset() + func (x *IsCheckImageCodeRequest) String() string + type IsCheckImageCodeResponse struct + Code int64 + Data bool + Msg string + NowTime int64 + func (*IsCheckImageCodeResponse) Descriptor() ([]byte, []int) + func (*IsCheckImageCodeResponse) ProtoMessage() + func (x *IsCheckImageCodeResponse) GetCode() int64 + func (x *IsCheckImageCodeResponse) GetData() bool + func (x *IsCheckImageCodeResponse) GetMsg() string + func (x *IsCheckImageCodeResponse) GetNowTime() int64 + func (x *IsCheckImageCodeResponse) ProtoReflect() protoreflect.Message + func (x *IsCheckImageCodeResponse) Reset() + func (x *IsCheckImageCodeResponse) String() string + type SendCodeRequest struct + Ip string + NationCode string + SendType string + Telephone string + Template string + func (*SendCodeRequest) Descriptor() ([]byte, []int) + func (*SendCodeRequest) ProtoMessage() + 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 (x *SendCodeRequest) ProtoReflect() protoreflect.Message + func (x *SendCodeRequest) Reset() + func (x *SendCodeRequest) String() string + type SendCodeResponse struct + Code int64 + Data map[string]string + Msg string + NowTime int64 + Response *lava.Response + func (*SendCodeResponse) Descriptor() ([]byte, []int) + func (*SendCodeResponse) ProtoMessage() + func (x *SendCodeResponse) GetCode() int64 + func (x *SendCodeResponse) GetData() map[string]string + func (x *SendCodeResponse) GetMsg() string + func (x *SendCodeResponse) GetNowTime() int64 + func (x *SendCodeResponse) GetResponse() *lava.Response + func (x *SendCodeResponse) ProtoReflect() protoreflect.Message + func (x *SendCodeResponse) Reset() + func (x *SendCodeResponse) String() string + type SendStatus struct + ForceCall bool + IsForbidden bool + NeedImageCode bool + NumberLimit bool + func (*SendStatus) Descriptor() ([]byte, []int) + func (*SendStatus) ProtoMessage() + func (x *SendStatus) GetForceCall() bool + func (x *SendStatus) GetIsForbidden() bool + func (x *SendStatus) GetNeedImageCode() bool + func (x *SendStatus) GetNumberLimit() bool + func (x *SendStatus) ProtoReflect() protoreflect.Message + func (x *SendStatus) Reset() + func (x *SendStatus) String() string + type UnimplementedCodeServer struct + 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 interface + type VerifyImageCodeRequest struct + Ip string + NationCode string + RandStr string + Scene string + Telephone string + Ticket string + func (*VerifyImageCodeRequest) Descriptor() ([]byte, []int) + func (*VerifyImageCodeRequest) ProtoMessage() + 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 (x *VerifyImageCodeRequest) ProtoReflect() protoreflect.Message + func (x *VerifyImageCodeRequest) Reset() + func (x *VerifyImageCodeRequest) String() string + type VerifyImageCodeResponse struct + Code int64 + Msg string + NowTime int64 + func (*VerifyImageCodeResponse) Descriptor() ([]byte, []int) + func (*VerifyImageCodeResponse) ProtoMessage() + func (x *VerifyImageCodeResponse) GetCode() int64 + func (x *VerifyImageCodeResponse) GetMsg() string + func (x *VerifyImageCodeResponse) GetNowTime() int64 + func (x *VerifyImageCodeResponse) ProtoReflect() protoreflect.Message + func (x *VerifyImageCodeResponse) Reset() + func (x *VerifyImageCodeResponse) String() string + type VerifyRequest struct + Code string + NationCode string + Telephone string + Template string + func (*VerifyRequest) Descriptor() ([]byte, []int) + func (*VerifyRequest) ProtoMessage() + func (x *VerifyRequest) GetCode() string + func (x *VerifyRequest) GetNationCode() string + func (x *VerifyRequest) GetTelephone() string + func (x *VerifyRequest) GetTemplate() string + func (x *VerifyRequest) ProtoReflect() protoreflect.Message + func (x *VerifyRequest) Reset() + func (x *VerifyRequest) String() string + type VerifyResponse struct + Code int64 + Data map[string]string + Msg string + NowTime int64 + func (*VerifyResponse) Descriptor() ([]byte, []int) + func (*VerifyResponse) ProtoMessage() + func (x *VerifyResponse) GetCode() int64 + func (x *VerifyResponse) GetData() map[string]string + func (x *VerifyResponse) GetMsg() string + func (x *VerifyResponse) GetNowTime() int64 + func (x *VerifyResponse) ProtoReflect() protoreflect.Message + func (x *VerifyResponse) Reset() + func (x *VerifyResponse) String() string