Documentation ¶
Index ¶
- Variables
- func NewLoginEndpoints() []*api.Endpoint
- func NewRegisterEndpoints() []*api.Endpoint
- func RegisterLoginHandler(s server.Server, hdlr LoginHandler, opts ...server.HandlerOption) error
- func RegisterRegisterHandler(s server.Server, hdlr RegisterHandler, opts ...server.HandlerOption) error
- type LoginByAccountRequest
- func (*LoginByAccountRequest) Descriptor() ([]byte, []int)deprecated
- func (x *LoginByAccountRequest) GetAccount() string
- func (*LoginByAccountRequest) ProtoMessage()
- func (x *LoginByAccountRequest) ProtoReflect() protoreflect.Message
- func (x *LoginByAccountRequest) Reset()
- func (x *LoginByAccountRequest) String() string
- type LoginByAccountResponse
- func (*LoginByAccountResponse) Descriptor() ([]byte, []int)deprecated
- func (x *LoginByAccountResponse) GetCode() uint32
- func (x *LoginByAccountResponse) GetMessage() string
- func (x *LoginByAccountResponse) GetStatus() string
- func (x *LoginByAccountResponse) GetToken() string
- func (*LoginByAccountResponse) ProtoMessage()
- func (x *LoginByAccountResponse) ProtoReflect() protoreflect.Message
- func (x *LoginByAccountResponse) Reset()
- func (x *LoginByAccountResponse) String() string
- type LoginByPhoneRequest
- func (*LoginByPhoneRequest) Descriptor() ([]byte, []int)deprecated
- func (x *LoginByPhoneRequest) GetPhone() string
- func (x *LoginByPhoneRequest) GetSmscode() string
- func (*LoginByPhoneRequest) ProtoMessage()
- func (x *LoginByPhoneRequest) ProtoReflect() protoreflect.Message
- func (x *LoginByPhoneRequest) Reset()
- func (x *LoginByPhoneRequest) String() string
- type LoginByPhoneResponse
- func (*LoginByPhoneResponse) Descriptor() ([]byte, []int)deprecated
- func (x *LoginByPhoneResponse) GetCode() uint32
- func (x *LoginByPhoneResponse) GetMessage() string
- func (x *LoginByPhoneResponse) GetStatus() string
- func (x *LoginByPhoneResponse) GetToken() string
- func (*LoginByPhoneResponse) ProtoMessage()
- func (x *LoginByPhoneResponse) ProtoReflect() protoreflect.Message
- func (x *LoginByPhoneResponse) Reset()
- func (x *LoginByPhoneResponse) String() string
- type LoginHandler
- type LoginService
- type RegisterByEmailRequest
- func (*RegisterByEmailRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterByEmailRequest) GetEmail() string
- func (x *RegisterByEmailRequest) GetPassword() string
- func (*RegisterByEmailRequest) ProtoMessage()
- func (x *RegisterByEmailRequest) ProtoReflect() protoreflect.Message
- func (x *RegisterByEmailRequest) Reset()
- func (x *RegisterByEmailRequest) String() string
- type RegisterByEmailResponse
- func (*RegisterByEmailResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterByEmailResponse) GetCode() uint32
- func (x *RegisterByEmailResponse) GetMessage() string
- func (x *RegisterByEmailResponse) GetStatus() string
- func (*RegisterByEmailResponse) ProtoMessage()
- func (x *RegisterByEmailResponse) ProtoReflect() protoreflect.Message
- func (x *RegisterByEmailResponse) Reset()
- func (x *RegisterByEmailResponse) String() string
- type RegisterByPhoneRequest
- func (*RegisterByPhoneRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterByPhoneRequest) GetName() string
- func (*RegisterByPhoneRequest) ProtoMessage()
- func (x *RegisterByPhoneRequest) ProtoReflect() protoreflect.Message
- func (x *RegisterByPhoneRequest) Reset()
- func (x *RegisterByPhoneRequest) String() string
- type RegisterByPhoneResponse
- func (*RegisterByPhoneResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterByPhoneResponse) GetGreeting() string
- func (*RegisterByPhoneResponse) ProtoMessage()
- func (x *RegisterByPhoneResponse) ProtoReflect() protoreflect.Message
- func (x *RegisterByPhoneResponse) Reset()
- func (x *RegisterByPhoneResponse) String() string
- type RegisterHandler
- type RegisterService
Constants ¶
This section is empty.
Variables ¶
View Source
var File_account_login_proto protoreflect.FileDescriptor
View Source
var File_account_register_proto protoreflect.FileDescriptor
Functions ¶
func NewLoginEndpoints ¶
func NewRegisterEndpoints ¶
func RegisterLoginHandler ¶
func RegisterLoginHandler(s server.Server, hdlr LoginHandler, opts ...server.HandlerOption) error
func RegisterRegisterHandler ¶
func RegisterRegisterHandler(s server.Server, hdlr RegisterHandler, opts ...server.HandlerOption) error
Types ¶
type LoginByAccountRequest ¶
type LoginByAccountRequest struct { Account string `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` // contains filtered or unexported fields }
func (*LoginByAccountRequest) Descriptor
deprecated
func (*LoginByAccountRequest) Descriptor() ([]byte, []int)
Deprecated: Use LoginByAccountRequest.ProtoReflect.Descriptor instead.
func (*LoginByAccountRequest) GetAccount ¶
func (x *LoginByAccountRequest) GetAccount() string
func (*LoginByAccountRequest) ProtoMessage ¶
func (*LoginByAccountRequest) ProtoMessage()
func (*LoginByAccountRequest) ProtoReflect ¶
func (x *LoginByAccountRequest) ProtoReflect() protoreflect.Message
func (*LoginByAccountRequest) Reset ¶
func (x *LoginByAccountRequest) Reset()
func (*LoginByAccountRequest) String ¶
func (x *LoginByAccountRequest) String() string
type LoginByAccountResponse ¶
type LoginByAccountResponse struct { Code uint32 `protobuf:"fixed32,1,opt,name=code,proto3" json:"code,omitempty"` Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"` Token string `protobuf:"bytes,4,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
func (*LoginByAccountResponse) Descriptor
deprecated
func (*LoginByAccountResponse) Descriptor() ([]byte, []int)
Deprecated: Use LoginByAccountResponse.ProtoReflect.Descriptor instead.
func (*LoginByAccountResponse) GetCode ¶
func (x *LoginByAccountResponse) GetCode() uint32
func (*LoginByAccountResponse) GetMessage ¶
func (x *LoginByAccountResponse) GetMessage() string
func (*LoginByAccountResponse) GetStatus ¶
func (x *LoginByAccountResponse) GetStatus() string
func (*LoginByAccountResponse) GetToken ¶
func (x *LoginByAccountResponse) GetToken() string
func (*LoginByAccountResponse) ProtoMessage ¶
func (*LoginByAccountResponse) ProtoMessage()
func (*LoginByAccountResponse) ProtoReflect ¶
func (x *LoginByAccountResponse) ProtoReflect() protoreflect.Message
func (*LoginByAccountResponse) Reset ¶
func (x *LoginByAccountResponse) Reset()
func (*LoginByAccountResponse) String ¶
func (x *LoginByAccountResponse) String() string
type LoginByPhoneRequest ¶
type LoginByPhoneRequest struct { Phone string `protobuf:"bytes,1,opt,name=phone,proto3" json:"phone,omitempty"` Smscode string `protobuf:"bytes,2,opt,name=smscode,proto3" json:"smscode,omitempty"` // contains filtered or unexported fields }
func (*LoginByPhoneRequest) Descriptor
deprecated
func (*LoginByPhoneRequest) Descriptor() ([]byte, []int)
Deprecated: Use LoginByPhoneRequest.ProtoReflect.Descriptor instead.
func (*LoginByPhoneRequest) GetPhone ¶
func (x *LoginByPhoneRequest) GetPhone() string
func (*LoginByPhoneRequest) GetSmscode ¶
func (x *LoginByPhoneRequest) GetSmscode() string
func (*LoginByPhoneRequest) ProtoMessage ¶
func (*LoginByPhoneRequest) ProtoMessage()
func (*LoginByPhoneRequest) ProtoReflect ¶
func (x *LoginByPhoneRequest) ProtoReflect() protoreflect.Message
func (*LoginByPhoneRequest) Reset ¶
func (x *LoginByPhoneRequest) Reset()
func (*LoginByPhoneRequest) String ¶
func (x *LoginByPhoneRequest) String() string
type LoginByPhoneResponse ¶
type LoginByPhoneResponse struct { Code uint32 `protobuf:"fixed32,1,opt,name=code,proto3" json:"code,omitempty"` Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"` Token string `protobuf:"bytes,4,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
func (*LoginByPhoneResponse) Descriptor
deprecated
func (*LoginByPhoneResponse) Descriptor() ([]byte, []int)
Deprecated: Use LoginByPhoneResponse.ProtoReflect.Descriptor instead.
func (*LoginByPhoneResponse) GetCode ¶
func (x *LoginByPhoneResponse) GetCode() uint32
func (*LoginByPhoneResponse) GetMessage ¶
func (x *LoginByPhoneResponse) GetMessage() string
func (*LoginByPhoneResponse) GetStatus ¶
func (x *LoginByPhoneResponse) GetStatus() string
func (*LoginByPhoneResponse) GetToken ¶
func (x *LoginByPhoneResponse) GetToken() string
func (*LoginByPhoneResponse) ProtoMessage ¶
func (*LoginByPhoneResponse) ProtoMessage()
func (*LoginByPhoneResponse) ProtoReflect ¶
func (x *LoginByPhoneResponse) ProtoReflect() protoreflect.Message
func (*LoginByPhoneResponse) Reset ¶
func (x *LoginByPhoneResponse) Reset()
func (*LoginByPhoneResponse) String ¶
func (x *LoginByPhoneResponse) String() string
type LoginHandler ¶
type LoginHandler interface { ByAccount(context.Context, *LoginByAccountRequest, *LoginByAccountResponse) error ByPhone(context.Context, *LoginByPhoneRequest, *LoginByPhoneResponse) error }
type LoginService ¶
type LoginService interface { ByAccount(ctx context.Context, in *LoginByAccountRequest, opts ...client.CallOption) (*LoginByAccountResponse, error) ByPhone(ctx context.Context, in *LoginByPhoneRequest, opts ...client.CallOption) (*LoginByPhoneResponse, error) }
func NewLoginService ¶
func NewLoginService(name string, c client.Client) LoginService
type RegisterByEmailRequest ¶
type RegisterByEmailRequest struct { Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` // contains filtered or unexported fields }
使用邮箱注册请求体
func (*RegisterByEmailRequest) Descriptor
deprecated
func (*RegisterByEmailRequest) Descriptor() ([]byte, []int)
Deprecated: Use RegisterByEmailRequest.ProtoReflect.Descriptor instead.
func (*RegisterByEmailRequest) GetEmail ¶
func (x *RegisterByEmailRequest) GetEmail() string
func (*RegisterByEmailRequest) GetPassword ¶
func (x *RegisterByEmailRequest) GetPassword() string
func (*RegisterByEmailRequest) ProtoMessage ¶
func (*RegisterByEmailRequest) ProtoMessage()
func (*RegisterByEmailRequest) ProtoReflect ¶
func (x *RegisterByEmailRequest) ProtoReflect() protoreflect.Message
func (*RegisterByEmailRequest) Reset ¶
func (x *RegisterByEmailRequest) Reset()
func (*RegisterByEmailRequest) String ¶
func (x *RegisterByEmailRequest) String() string
type RegisterByEmailResponse ¶
type RegisterByEmailResponse struct { Code uint32 `protobuf:"fixed32,1,opt,name=code,proto3" json:"code,omitempty"` Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
使用邮箱注册返回体
func (*RegisterByEmailResponse) Descriptor
deprecated
func (*RegisterByEmailResponse) Descriptor() ([]byte, []int)
Deprecated: Use RegisterByEmailResponse.ProtoReflect.Descriptor instead.
func (*RegisterByEmailResponse) GetCode ¶
func (x *RegisterByEmailResponse) GetCode() uint32
func (*RegisterByEmailResponse) GetMessage ¶
func (x *RegisterByEmailResponse) GetMessage() string
func (*RegisterByEmailResponse) GetStatus ¶
func (x *RegisterByEmailResponse) GetStatus() string
func (*RegisterByEmailResponse) ProtoMessage ¶
func (*RegisterByEmailResponse) ProtoMessage()
func (*RegisterByEmailResponse) ProtoReflect ¶
func (x *RegisterByEmailResponse) ProtoReflect() protoreflect.Message
func (*RegisterByEmailResponse) Reset ¶
func (x *RegisterByEmailResponse) Reset()
func (*RegisterByEmailResponse) String ¶
func (x *RegisterByEmailResponse) String() string
type RegisterByPhoneRequest ¶
type RegisterByPhoneRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
使用手机号注册请求体
func (*RegisterByPhoneRequest) Descriptor
deprecated
func (*RegisterByPhoneRequest) Descriptor() ([]byte, []int)
Deprecated: Use RegisterByPhoneRequest.ProtoReflect.Descriptor instead.
func (*RegisterByPhoneRequest) GetName ¶
func (x *RegisterByPhoneRequest) GetName() string
func (*RegisterByPhoneRequest) ProtoMessage ¶
func (*RegisterByPhoneRequest) ProtoMessage()
func (*RegisterByPhoneRequest) ProtoReflect ¶
func (x *RegisterByPhoneRequest) ProtoReflect() protoreflect.Message
func (*RegisterByPhoneRequest) Reset ¶
func (x *RegisterByPhoneRequest) Reset()
func (*RegisterByPhoneRequest) String ¶
func (x *RegisterByPhoneRequest) String() string
type RegisterByPhoneResponse ¶
type RegisterByPhoneResponse struct { Greeting string `protobuf:"bytes,2,opt,name=greeting,proto3" json:"greeting,omitempty"` // contains filtered or unexported fields }
使用手机号注册返回体
func (*RegisterByPhoneResponse) Descriptor
deprecated
func (*RegisterByPhoneResponse) Descriptor() ([]byte, []int)
Deprecated: Use RegisterByPhoneResponse.ProtoReflect.Descriptor instead.
func (*RegisterByPhoneResponse) GetGreeting ¶
func (x *RegisterByPhoneResponse) GetGreeting() string
func (*RegisterByPhoneResponse) ProtoMessage ¶
func (*RegisterByPhoneResponse) ProtoMessage()
func (*RegisterByPhoneResponse) ProtoReflect ¶
func (x *RegisterByPhoneResponse) ProtoReflect() protoreflect.Message
func (*RegisterByPhoneResponse) Reset ¶
func (x *RegisterByPhoneResponse) Reset()
func (*RegisterByPhoneResponse) String ¶
func (x *RegisterByPhoneResponse) String() string
type RegisterHandler ¶
type RegisterHandler interface { ByEmail(context.Context, *RegisterByEmailRequest, *RegisterByEmailResponse) error ByPhone(context.Context, *RegisterByPhoneRequest, *RegisterByPhoneResponse) error }
type RegisterService ¶
type RegisterService interface { ByEmail(ctx context.Context, in *RegisterByEmailRequest, opts ...client.CallOption) (*RegisterByEmailResponse, error) ByPhone(ctx context.Context, in *RegisterByPhoneRequest, opts ...client.CallOption) (*RegisterByPhoneResponse, error) }
func NewRegisterService ¶
func NewRegisterService(name string, c client.Client) RegisterService
Click to show internal directories.
Click to hide internal directories.