Documentation ¶
Index ¶
- type SaleItemRepository
- func (r *SaleItemRepository) FindAll(dto interface{}, results interface{}, preloads ...string) (int64, error)
- func (r *SaleItemRepository) GetSaleProductSummary(dto salesDTO.QuerySalesProductSummaryDTO, results interface{}) (int64, error)
- func (r *SaleItemRepository) GetTotalQuantitySoldByCreatedMonth(month time.Month, year int) (int64, error)
- type SaleRepository
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SaleItemRepository ¶
type SaleItemRepository struct {
*appRepository.BaseRepository
}
func InitSaleItemRepository ¶
func InitSaleItemRepository(db *gorm.DB) *SaleItemRepository
func (*SaleItemRepository) FindAll ¶
func (r *SaleItemRepository) FindAll(dto interface{}, results interface{}, preloads ...string) (int64, error)
func (*SaleItemRepository) GetSaleProductSummary ¶
func (r *SaleItemRepository) GetSaleProductSummary( dto salesDTO.QuerySalesProductSummaryDTO, results interface{}, ) (int64, error)
func (*SaleItemRepository) GetTotalQuantitySoldByCreatedMonth ¶
type SaleRepository ¶
type SaleRepository struct {
*appRepository.BaseRepository
}
func InitSaleRepository ¶
func InitSaleRepository(db *gorm.DB) *SaleRepository
func (*SaleRepository) GetTotalValueSoldByCreatedMonth ¶
func (*SaleRepository) GetTotalValuesSold ¶
func (r *SaleRepository) GetTotalValuesSold( dto salesDTO.QueryTotalSalesSoldDTO, results interface{}, ) (int64, error)
Click to show internal directories.
Click to hide internal directories.