Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewUserRepository ¶
Types ¶
type UserRepository ¶
type UserRepository interface { Create(ctx context.Context, user *entity.User) error GetAll(ctx context.Context) ([]*entity.User, error) GetUserByID(ctx context.Context, id uint) (*entity.User, error) GetUserByEmail(ctx context.Context, email string) (*entity.User, error) SoftDelete(ctx context.Context, id uint) error ChangePassword(ctx context.Context, id uint, password string) error }
Click to show internal directories.
Click to hide internal directories.