repositories

package
v0.1.1-beta Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProductCSVRepo

type ProductCSVRepo struct{}

func (*ProductCSVRepo) GetProducts

func (r *ProductCSVRepo) GetProducts(csvPath string) []models.ProductCSV

type ProductCSVRepository

type ProductCSVRepository interface {
	GetProducts(csvPath string) []models.ProductCSV
}

func NewProductCSVRepository

func NewProductCSVRepository() ProductCSVRepository

type UplistOauthRepository

type UplistOauthRepository struct {
	// contains filtered or unexported fields
}

func NewUplistOauthRepository

func NewUplistOauthRepository(db *gorm.DB) *UplistOauthRepository

func (*UplistOauthRepository) Create

func (r *UplistOauthRepository) Create(oauth *models.UplistOauth) error

func (*UplistOauthRepository) Delete

func (r *UplistOauthRepository) Delete(id uint) error

func (*UplistOauthRepository) GetAll

func (r *UplistOauthRepository) GetAll() ([]models.UplistOauth, error)

func (*UplistOauthRepository) Read

func (*UplistOauthRepository) Update

func (r *UplistOauthRepository) Update(oauth *models.UplistOauth) error

func (*UplistOauthRepository) UpdateByID

func (r *UplistOauthRepository) UpdateByID(id uint, oauth *models.UplistOauth) error

Jump to

Keyboard shortcuts

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