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