Documentation ¶
Index ¶
- func RegisterBaseHandler(s server.Server, hdlr BaseHandler, opts ...server.HandlerOption) error
- type BaseHandler
- type BaseService
- type CommonOutput
- func (*CommonOutput) Descriptor() ([]byte, []int)
- func (m *CommonOutput) GetCode() int32
- func (m *CommonOutput) GetData() []byte
- func (m *CommonOutput) GetDetail() string
- func (m *CommonOutput) GetHttpCode() int32
- func (m *CommonOutput) GetMsg() string
- func (*CommonOutput) ProtoMessage()
- func (m *CommonOutput) Reset()
- func (m *CommonOutput) String() string
- func (m *CommonOutput) XXX_DiscardUnknown()
- func (m *CommonOutput) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CommonOutput) XXX_Merge(src proto.Message)
- func (m *CommonOutput) XXX_Size() int
- func (m *CommonOutput) XXX_Unmarshal(b []byte) error
- type IsMobileCodeOkIn
- func (*IsMobileCodeOkIn) Descriptor() ([]byte, []int)
- func (m *IsMobileCodeOkIn) GetCode() string
- func (m *IsMobileCodeOkIn) GetMobile() string
- func (m *IsMobileCodeOkIn) GetTimediff() int32
- func (*IsMobileCodeOkIn) ProtoMessage()
- func (m *IsMobileCodeOkIn) Reset()
- func (m *IsMobileCodeOkIn) String() string
- func (m *IsMobileCodeOkIn) XXX_DiscardUnknown()
- func (m *IsMobileCodeOkIn) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *IsMobileCodeOkIn) XXX_Merge(src proto.Message)
- func (m *IsMobileCodeOkIn) XXX_Size() int
- func (m *IsMobileCodeOkIn) XXX_Unmarshal(b []byte) error
- type SendMobileCodeIn
- func (*SendMobileCodeIn) Descriptor() ([]byte, []int)
- func (m *SendMobileCodeIn) GetMobile() string
- func (m *SendMobileCodeIn) GetTimediff() int64
- func (m *SendMobileCodeIn) GetTimes() int32
- func (*SendMobileCodeIn) ProtoMessage()
- func (m *SendMobileCodeIn) Reset()
- func (m *SendMobileCodeIn) String() string
- func (m *SendMobileCodeIn) XXX_DiscardUnknown()
- func (m *SendMobileCodeIn) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SendMobileCodeIn) XXX_Merge(src proto.Message)
- func (m *SendMobileCodeIn) XXX_Size() int
- func (m *SendMobileCodeIn) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterBaseHandler ¶
func RegisterBaseHandler(s server.Server, hdlr BaseHandler, opts ...server.HandlerOption) error
Types ¶
type BaseHandler ¶
type BaseHandler interface { SendMobileCode(context.Context, *SendMobileCodeIn, *CommonOutput) error IsMobileCodeOk(context.Context, *IsMobileCodeOkIn, *CommonOutput) error }
type BaseService ¶
type BaseService interface { SendMobileCode(ctx context.Context, in *SendMobileCodeIn, opts ...client.CallOption) (*CommonOutput, error) IsMobileCodeOk(ctx context.Context, in *IsMobileCodeOkIn, opts ...client.CallOption) (*CommonOutput, error) }
func NewBaseService ¶
func NewBaseService(name string, c client.Client) BaseService
type CommonOutput ¶
type CommonOutput struct { HttpCode int32 `protobuf:"varint,1,opt,name=http_code,json=httpCode,proto3" json:"http_code,omitempty"` Code int32 `protobuf:"varint,2,opt,name=code,proto3" json:"code,omitempty"` Msg string `protobuf:"bytes,3,opt,name=msg,proto3" json:"msg,omitempty"` Detail string `protobuf:"bytes,4,opt,name=detail,proto3" json:"detail,omitempty"` Data []byte `protobuf:"bytes,5,opt,name=data,proto3" json:"data,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CommonOutput) Descriptor ¶
func (*CommonOutput) Descriptor() ([]byte, []int)
func (*CommonOutput) GetCode ¶
func (m *CommonOutput) GetCode() int32
func (*CommonOutput) GetData ¶
func (m *CommonOutput) GetData() []byte
func (*CommonOutput) GetDetail ¶
func (m *CommonOutput) GetDetail() string
func (*CommonOutput) GetHttpCode ¶
func (m *CommonOutput) GetHttpCode() int32
func (*CommonOutput) GetMsg ¶
func (m *CommonOutput) GetMsg() string
func (*CommonOutput) ProtoMessage ¶
func (*CommonOutput) ProtoMessage()
func (*CommonOutput) Reset ¶
func (m *CommonOutput) Reset()
func (*CommonOutput) String ¶
func (m *CommonOutput) String() string
func (*CommonOutput) XXX_DiscardUnknown ¶
func (m *CommonOutput) XXX_DiscardUnknown()
func (*CommonOutput) XXX_Marshal ¶
func (m *CommonOutput) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CommonOutput) XXX_Merge ¶
func (m *CommonOutput) XXX_Merge(src proto.Message)
func (*CommonOutput) XXX_Size ¶
func (m *CommonOutput) XXX_Size() int
func (*CommonOutput) XXX_Unmarshal ¶
func (m *CommonOutput) XXX_Unmarshal(b []byte) error
type IsMobileCodeOkIn ¶
type IsMobileCodeOkIn struct { Mobile string `protobuf:"bytes,1,opt,name=mobile,proto3" json:"mobile,omitempty"` Code string `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"` Timediff int32 `protobuf:"varint,3,opt,name=timediff,proto3" json:"timediff,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
------------------get code -------------------
func (*IsMobileCodeOkIn) Descriptor ¶
func (*IsMobileCodeOkIn) Descriptor() ([]byte, []int)
func (*IsMobileCodeOkIn) GetCode ¶
func (m *IsMobileCodeOkIn) GetCode() string
func (*IsMobileCodeOkIn) GetMobile ¶
func (m *IsMobileCodeOkIn) GetMobile() string
func (*IsMobileCodeOkIn) GetTimediff ¶
func (m *IsMobileCodeOkIn) GetTimediff() int32
func (*IsMobileCodeOkIn) ProtoMessage ¶
func (*IsMobileCodeOkIn) ProtoMessage()
func (*IsMobileCodeOkIn) Reset ¶
func (m *IsMobileCodeOkIn) Reset()
func (*IsMobileCodeOkIn) String ¶
func (m *IsMobileCodeOkIn) String() string
func (*IsMobileCodeOkIn) XXX_DiscardUnknown ¶
func (m *IsMobileCodeOkIn) XXX_DiscardUnknown()
func (*IsMobileCodeOkIn) XXX_Marshal ¶
func (m *IsMobileCodeOkIn) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*IsMobileCodeOkIn) XXX_Merge ¶
func (m *IsMobileCodeOkIn) XXX_Merge(src proto.Message)
func (*IsMobileCodeOkIn) XXX_Size ¶
func (m *IsMobileCodeOkIn) XXX_Size() int
func (*IsMobileCodeOkIn) XXX_Unmarshal ¶
func (m *IsMobileCodeOkIn) XXX_Unmarshal(b []byte) error
type SendMobileCodeIn ¶
type SendMobileCodeIn struct { Mobile string `protobuf:"bytes,1,opt,name=mobile,proto3" json:"mobile,omitempty"` Times int32 `protobuf:"varint,2,opt,name=times,proto3" json:"times,omitempty"` Timediff int64 `protobuf:"varint,3,opt,name=timediff,proto3" json:"timediff,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
------------------发送验证码-----------------
func (*SendMobileCodeIn) Descriptor ¶
func (*SendMobileCodeIn) Descriptor() ([]byte, []int)
func (*SendMobileCodeIn) GetMobile ¶
func (m *SendMobileCodeIn) GetMobile() string
func (*SendMobileCodeIn) GetTimediff ¶
func (m *SendMobileCodeIn) GetTimediff() int64
func (*SendMobileCodeIn) GetTimes ¶
func (m *SendMobileCodeIn) GetTimes() int32
func (*SendMobileCodeIn) ProtoMessage ¶
func (*SendMobileCodeIn) ProtoMessage()
func (*SendMobileCodeIn) Reset ¶
func (m *SendMobileCodeIn) Reset()
func (*SendMobileCodeIn) String ¶
func (m *SendMobileCodeIn) String() string
func (*SendMobileCodeIn) XXX_DiscardUnknown ¶
func (m *SendMobileCodeIn) XXX_DiscardUnknown()
func (*SendMobileCodeIn) XXX_Marshal ¶
func (m *SendMobileCodeIn) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SendMobileCodeIn) XXX_Merge ¶
func (m *SendMobileCodeIn) XXX_Merge(src proto.Message)
func (*SendMobileCodeIn) XXX_Size ¶
func (m *SendMobileCodeIn) XXX_Size() int
func (*SendMobileCodeIn) XXX_Unmarshal ¶
func (m *SendMobileCodeIn) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.