Documentation ¶
Index ¶
- type Repository
- func (r *Repository) DeleteByID(id int) error
- func (r *Repository) Save(c *models.Content) (*models.Content, error)
- func (r *Repository) SelectAll() ([]*models.Content, error)
- func (r *Repository) SelectByID(id int) (*models.Content, error)
- func (r *Repository) Update(id int, c *models.Content) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
type Repository struct {
// contains filtered or unexported fields
}
func New ¶
func New(db *sqlx.DB) *Repository
func (*Repository) DeleteByID ¶
func (r *Repository) DeleteByID(id int) error
func (*Repository) SelectByID ¶
func (r *Repository) SelectByID(id int) (*models.Content, error)
Click to show internal directories.
Click to hide internal directories.