Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type INewsRepository ¶
type INewsRepository interface { repository.Repository[INewsRepository, model.News] }
type NewsRepository ¶
type NewsRepository struct { repository.Repo[model.News] }
func NewNewsRepository ¶
func NewNewsRepository(db *gorm.DB) NewsRepository
func (NewsRepository) Joins ¶
func (r NewsRepository) Joins(models ...string) INewsRepository
func (NewsRepository) Omit ¶
func (r NewsRepository) Omit(columns ...string) INewsRepository
func (NewsRepository) Trx ¶
func (r NewsRepository) Trx(db *gorm.DB) INewsRepository
func (NewsRepository) With ¶
func (r NewsRepository) With(models ...string) INewsRepository
type Repositories ¶
type Repositories struct {
NewsRepository INewsRepository
}
func NewRepositories ¶
func NewRepositories(db *gorm.DB) Repositories
Click to show internal directories.
Click to hide internal directories.