Documentation ¶
Index ¶
- type ProductCSVRepo
- type ProductCSVRepository
- type UplistOauthRepository
- func (r *UplistOauthRepository) Create(oauth *models.UplistOauth) error
- func (r *UplistOauthRepository) Delete(id uint) error
- func (r *UplistOauthRepository) GetAll() ([]models.UplistOauth, error)
- func (r *UplistOauthRepository) Read(id uint) (*models.UplistOauth, error)
- func (r *UplistOauthRepository) Update(oauth *models.UplistOauth) error
- func (r *UplistOauthRepository) UpdateByID(id uint, oauth *models.UplistOauth) error
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 (r *UplistOauthRepository) Read(id uint) (*models.UplistOauth, error)
func (*UplistOauthRepository) Update ¶
func (r *UplistOauthRepository) Update(oauth *models.UplistOauth) error
func (*UplistOauthRepository) UpdateByID ¶
func (r *UplistOauthRepository) UpdateByID(id uint, oauth *models.UplistOauth) error
Click to show internal directories.
Click to hide internal directories.