Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type User ¶
type User struct { UserId string Username string AliasName string Status int // contains filtered or unexported fields }
func (*User) FromDbModel ¶
func (u *User) FromDbModel(dbUser *repository.User) *User
func (*User) ToDbModel ¶
func (u *User) ToDbModel() *repository.User
func (*User) UpdatePassword ¶
func (*User) VerifyPassword ¶
type UserDomainService ¶
type UserDomainService struct {
// contains filtered or unexported fields
}
func (*UserDomainService) DependOn ¶
func (u *UserDomainService) DependOn(db *repository.Db)
func (*UserDomainService) DoUserRegister ¶
func (u *UserDomainService) DoUserRegister(user *struct { Email string Password string }) (*User, error)
func (*UserDomainService) UserAuthByPassword ¶
func (u *UserDomainService) UserAuthByPassword(username, password string) (*User, error)
func (*UserDomainService) UserExistsByEmail ¶
func (u *UserDomainService) UserExistsByEmail(email string) (bool, error)
Click to show internal directories.
Click to hide internal directories.