Documentation ¶
Index ¶
- func NewOrderRepository() order.Repository
- func NewPositionRepository() position.Repository
- func NewProductRepository() product2.Repository
- func NewUnitRepository() unit2.Repository
- type GormOrderRepository
- func (g *GormOrderRepository) Count(ctx context.Context) (int64, error)
- func (g *GormOrderRepository) Create(ctx context.Context, data *order.Order) error
- func (g *GormOrderRepository) Delete(ctx context.Context, id uint) error
- func (g *GormOrderRepository) GetAll(ctx context.Context) ([]*order.Order, error)
- func (g *GormOrderRepository) GetByID(ctx context.Context, id uint) (*order.Order, error)
- func (g *GormOrderRepository) GetPaginated(ctx context.Context, limit, offset int, sortBy []string) ([]*order.Order, error)
- func (g *GormOrderRepository) Update(ctx context.Context, data *order.Order) error
- type GormPositionRepository
- func (g *GormPositionRepository) Count(ctx context.Context) (int64, error)
- func (g *GormPositionRepository) Create(ctx context.Context, data *position.Position) error
- func (g *GormPositionRepository) CreateOrUpdate(ctx context.Context, data *position.Position) error
- func (g *GormPositionRepository) Delete(ctx context.Context, id uint) error
- func (g *GormPositionRepository) GetAll(ctx context.Context) ([]*position.Position, error)
- func (g *GormPositionRepository) GetByID(ctx context.Context, id uint) (*position.Position, error)
- func (g *GormPositionRepository) GetPaginated(ctx context.Context, params *position.FindParams) ([]*position.Position, error)
- func (g *GormPositionRepository) Update(ctx context.Context, data *position.Position) error
- type GormProductRepository
- func (g *GormProductRepository) Count(ctx context.Context) (int64, error)
- func (g *GormProductRepository) Create(ctx context.Context, data *product2.Product) error
- func (g *GormProductRepository) CreateOrUpdate(ctx context.Context, data *product2.Product) error
- func (g *GormProductRepository) Delete(ctx context.Context, id uint) error
- func (g *GormProductRepository) GetAll(ctx context.Context) ([]*product2.Product, error)
- func (g *GormProductRepository) GetByID(ctx context.Context, id uint) (*product2.Product, error)
- func (g *GormProductRepository) GetPaginated(ctx context.Context, limit, offset int, sortBy []string) ([]*product2.Product, error)
- func (g *GormProductRepository) Update(ctx context.Context, data *product2.Product) error
- type GormUnitRepository
- func (g *GormUnitRepository) Count(ctx context.Context) (uint, error)
- func (g *GormUnitRepository) Create(ctx context.Context, data *unit2.Unit) error
- func (g *GormUnitRepository) CreateOrUpdate(ctx context.Context, data *unit2.Unit) error
- func (g *GormUnitRepository) Delete(ctx context.Context, id uint) error
- func (g *GormUnitRepository) GetAll(ctx context.Context) ([]*unit2.Unit, error)
- func (g *GormUnitRepository) GetByID(ctx context.Context, id uint) (*unit2.Unit, error)
- func (g *GormUnitRepository) GetPaginated(ctx context.Context, limit, offset int, sortBy []string) ([]*unit2.Unit, error)
- func (g *GormUnitRepository) Update(ctx context.Context, data *unit2.Unit) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewOrderRepository ¶
func NewOrderRepository() order.Repository
func NewPositionRepository ¶
func NewPositionRepository() position.Repository
func NewProductRepository ¶
func NewProductRepository() product2.Repository
func NewUnitRepository ¶
func NewUnitRepository() unit2.Repository
Types ¶
type GormOrderRepository ¶
type GormOrderRepository struct{}
func (*GormOrderRepository) Count ¶
func (g *GormOrderRepository) Count(ctx context.Context) (int64, error)
func (*GormOrderRepository) Delete ¶
func (g *GormOrderRepository) Delete(ctx context.Context, id uint) error
func (*GormOrderRepository) GetPaginated ¶
type GormPositionRepository ¶
type GormPositionRepository struct{}
func (*GormPositionRepository) Count ¶
func (g *GormPositionRepository) Count(ctx context.Context) (int64, error)
func (*GormPositionRepository) CreateOrUpdate ¶
func (*GormPositionRepository) Delete ¶
func (g *GormPositionRepository) Delete(ctx context.Context, id uint) error
func (*GormPositionRepository) GetPaginated ¶
func (g *GormPositionRepository) GetPaginated( ctx context.Context, params *position.FindParams, ) ([]*position.Position, error)
type GormProductRepository ¶
type GormProductRepository struct{}
func (*GormProductRepository) Count ¶
func (g *GormProductRepository) Count(ctx context.Context) (int64, error)
func (*GormProductRepository) CreateOrUpdate ¶
func (*GormProductRepository) Delete ¶
func (g *GormProductRepository) Delete(ctx context.Context, id uint) error
func (*GormProductRepository) GetPaginated ¶
type GormUnitRepository ¶
type GormUnitRepository struct{}
func (*GormUnitRepository) Count ¶
func (g *GormUnitRepository) Count(ctx context.Context) (uint, error)
func (*GormUnitRepository) CreateOrUpdate ¶
func (*GormUnitRepository) Delete ¶
func (g *GormUnitRepository) Delete(ctx context.Context, id uint) error
func (*GormUnitRepository) GetPaginated ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.