Documentation ¶
Index ¶
- type FairRepository
- type Repository
- func (repo *Repository) AlreadyAnID(userID int64) (bool, error)
- func (repo *Repository) DeleteByID(fairID int64) error
- func (repo *Repository) GetByID(fairID int64) (entity.Fair, error)
- func (repo *Repository) GetByQueryID(filters entity.Filter) ([]entity.Fair, error)
- func (repo *Repository) Save(fair entity.Fair) (int64, error)
- func (repo *Repository) Update(id int64, fair entity.Fair) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FairRepository ¶
type Repository ¶
func NewRepository ¶
func NewRepository(db *sqlx.DB) (*Repository, error)
func (*Repository) AlreadyAnID ¶
func (repo *Repository) AlreadyAnID(userID int64) (bool, error)
func (*Repository) DeleteByID ¶
func (repo *Repository) DeleteByID(fairID int64) error
func (*Repository) GetByQueryID ¶
Click to show internal directories.
Click to hide internal directories.