Documentation ¶
Index ¶
- Variables
- type CodeService
- type UserService
- func (svc *UserService) EditProfile(ctx context.Context, p domain.Profile) error
- func (svc *UserService) GetProfileByEmail(ctx context.Context, email string) (domain.Profile, error)
- func (svc *UserService) Login(ctx context.Context, email, password string) (domain.User, error)
- func (svc *UserService) SignUp(ctx context.Context, u domain.User) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidUserOrPassword = errors.New("账号/邮箱或密码不对")
View Source
var ErrUserDuplicateEmail = repository.ErrUserDuplicateEmail
Functions ¶
This section is empty.
Types ¶
type CodeService ¶
type CodeService struct {
// contains filtered or unexported fields
}
type UserService ¶
type UserService struct {
// contains filtered or unexported fields
}
func NewUserService ¶
func NewUserService(repo *repository.UserRepository) *UserService
func (*UserService) EditProfile ¶
func (*UserService) GetProfileByEmail ¶
Click to show internal directories.
Click to hide internal directories.