Documentation ¶
Index ¶
- type GenreRepository
- func (r GenreRepository) Create(ctx context.Context, i *entity.Genre) error
- func (r GenreRepository) Delete(ctx context.Context, i *entity.Genre) error
- func (r GenreRepository) FindAll(ctx context.Context) ([]entity.Genre, error)
- func (r GenreRepository) FindByID(ctx context.Context, id uint) (*entity.Genre, error)
- func (r GenreRepository) FindByIDs(ctx context.Context, ids []uint) ([]entity.Genre, error)
- func (r GenreRepository) Update(ctx context.Context, i *entity.Genre) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GenreRepository ¶
type GenreRepository struct {
// contains filtered or unexported fields
}
func New ¶
func New(env *env.Postgres) GenreRepository
Click to show internal directories.
Click to hide internal directories.