Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type UserRepository ¶
type UserRepository interface { RegisterUser(ctx context.Context, tx *gorm.DB, user entity.User) (entity.User, error) GetAllUserWithPagination(ctx context.Context, tx *gorm.DB, req dto.PaginationRequest) (dto.GetAllUserRepositoryResponse, error) GetUserById(ctx context.Context, tx *gorm.DB, userId string) (entity.User, error) GetUserByEmail(ctx context.Context, tx *gorm.DB, email string) (entity.User, error) CheckEmail(ctx context.Context, tx *gorm.DB, email string) (entity.User, bool, error) UpdateUser(ctx context.Context, tx *gorm.DB, user entity.User) (entity.User, error) DeleteUser(ctx context.Context, tx *gorm.DB, userId string) error }
func NewUserRepository ¶
func NewUserRepository(db *gorm.DB) UserRepository
Click to show internal directories.
Click to hide internal directories.