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