puso

package
v0.0.0-...-72605ad Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type Config

type Config struct {
	fx.In

	DB *gorm.DB
}

type Puso

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

func NewPusoRepo

func NewPusoRepo(config Config) *Puso

func (*Puso) Delete

func (p *Puso) Delete(id string) error

func (*Puso) Get

func (p *Puso) Get(id string) (*models.Puso, error)

func (*Puso) GetList

func (p *Puso) GetList() ([]models.Puso, error)

func (*Puso) Migrate

func (p *Puso) Migrate() error

func (*Puso) Save

func (p *Puso) Save(puso *models.Puso) error

func (*Puso) Update

func (p *Puso) Update(puso *models.Puso, id string) error

type PusoRepo

type PusoRepo interface {
	Save(puso *models.Puso) error
	GetList() ([]models.Puso, error)
	Get(id string) (*models.Puso, error)
	Delete(id string) error
	Update(puso *models.Puso, id string) error
	Migrate() error
}

Jump to

Keyboard shortcuts

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