Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UserUsecase ¶
type UserUsecase interface { Create(ctx context.Context, user *models.User) (err error) Delete(ctx context.Context, userID uint) (err error) GetByUsername(ctx context.Context, username string) (user *models.User, err error) Login(ctx context.Context, param schemas.Login) (user *models.User, err error) Register(ctx context.Context, param schemas.Register) (err error) Update(ctx context.Context, user *models.User) (err error) }
func NewUserUsecase ¶
func NewUserUsecase(db *gorm.DB) UserUsecase
Click to show internal directories.
Click to hide internal directories.