Documentation ¶
Index ¶
- func GeneralAvatar(name string, gender int32) (avatarSha1 string, err error)
- func RegistrationCheck(username, email, phone string) error
- type AccountService
- func (a *AccountService) CreateUser(ctx context.Context, in *proto.CreateUserRequest, ...) error
- func (a *AccountService) RegistrationCheck(ctx context.Context, in *proto.RegistrationCheckRequest, ...) error
- func (a *AccountService) SignIn(ctx context.Context, in *proto.SignInRequest, out *proto.SignInResponse) error
- func (a *AccountService) SignUp(ctx context.Context, in *proto.SignUpRequest, out *proto.SignUpResponse) error
- func (a *AccountService) UserInfo(ctx context.Context, in *proto.UserInfoRequest, out *proto.UserInfoResponse) error
- func (a *AccountService) UserPasswordCheck(ctx context.Context, in *proto.UserPasswordCheckRequest, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegistrationCheck ¶
用户是否可注册,用户名,用户电话,用户邮箱唯一
Types ¶
type AccountService ¶
type AccountService struct{}
func (*AccountService) CreateUser ¶
func (a *AccountService) CreateUser(ctx context.Context, in *proto.CreateUserRequest, out *proto.CreateUserResponse) error
func (*AccountService) RegistrationCheck ¶
func (a *AccountService) RegistrationCheck(ctx context.Context, in *proto.RegistrationCheckRequest, out *proto.RegistrationCheckResponse) error
func (*AccountService) SignIn ¶
func (a *AccountService) SignIn(ctx context.Context, in *proto.SignInRequest, out *proto.SignInResponse) error
func (*AccountService) SignUp ¶
func (a *AccountService) SignUp(ctx context.Context, in *proto.SignUpRequest, out *proto.SignUpResponse) error
func (*AccountService) UserInfo ¶
func (a *AccountService) UserInfo(ctx context.Context, in *proto.UserInfoRequest, out *proto.UserInfoResponse) error
func (*AccountService) UserPasswordCheck ¶
func (a *AccountService) UserPasswordCheck(ctx context.Context, in *proto.UserPasswordCheckRequest, out *proto.UserPasswordCheckResponse) error
Click to show internal directories.
Click to hide internal directories.