user

package
v0.0.0-...-4d35d9b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 12, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

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) InitFill

func (u *User) InitFill(username string) *User

func (*User) ToDbModel

func (u *User) ToDbModel() *repository.User

func (*User) UpdatePassword

func (u *User) UpdatePassword(password string) error

func (*User) VerifyPassword

func (u *User) VerifyPassword(password string) bool

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL