Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
type Repository struct {
User
}
func NewRepository ¶
func NewRepository(db *sqlx.DB) *Repository
type UserRepository ¶
type UserRepository struct {
// contains filtered or unexported fields
}
func NewUserRepository ¶
func NewUserRepository(db *sqlx.DB) *UserRepository
func (*UserRepository) CreateUser ¶
func (r *UserRepository) CreateUser(user entity.User) (int, error)
func (*UserRepository) GetUserByEmail ¶
func (r *UserRepository) GetUserByEmail(email string) (entity.User, error)
func (*UserRepository) GetUserById ¶
func (r *UserRepository) GetUserById(id int) (entity.User, error)
Click to show internal directories.
Click to hide internal directories.