repository

package
v2.3.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 6, 2024 License: MIT Imports: 4 Imported by: 0

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 (NewsRepository) With

func (r NewsRepository) With(models ...string) INewsRepository

type Repositories

type Repositories struct {
	NewsRepository INewsRepository
}

func NewRepositories

func NewRepositories(db *gorm.DB) Repositories

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL