Documentation ¶
Index ¶
- type Product2CRepository
- type ProductRepository
- type RepositoryRegistry
- func (r *RepositoryRegistry) GetProduct2CRepository() Product2CRepository
- func (r *RepositoryRegistry) GetProductRepository() ProductRepository
- func (r *RepositoryRegistry) GetStockRepository() StockRepository
- func (r *RepositoryRegistry) SetProduct2CRepository(product2CRepositoryIns Product2CRepository)
- func (r *RepositoryRegistry) SetProductRepository(productRepositoryIns ProductRepository)
- func (r *RepositoryRegistry) SetStockRepository(stockRepositoryIns StockRepository)
- type StockRepository
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Product2CRepository ¶
type ProductRepository ¶
type ProductRepository interface { AddProduct(ctx context.Context, product *entity.ProductEntity) error UpdateProduct(ctx context.Context, origin, target *entity.ProductEntity) error GetProductById(ctx context.Context, productId int64) (*entity.ProductEntity, error) ListProducts(ctx context.Context, filterParam map[string]interface{}) ([]*entity.ProductEntity, error) }
type RepositoryRegistry ¶
type RepositoryRegistry struct {
// contains filtered or unexported fields
}
func GetRegistry ¶
func GetRegistry() *RepositoryRegistry
func (*RepositoryRegistry) GetProduct2CRepository ¶
func (r *RepositoryRegistry) GetProduct2CRepository() Product2CRepository
func (*RepositoryRegistry) GetProductRepository ¶
func (r *RepositoryRegistry) GetProductRepository() ProductRepository
func (*RepositoryRegistry) GetStockRepository ¶
func (r *RepositoryRegistry) GetStockRepository() StockRepository
func (*RepositoryRegistry) SetProduct2CRepository ¶
func (r *RepositoryRegistry) SetProduct2CRepository(product2CRepositoryIns Product2CRepository)
func (*RepositoryRegistry) SetProductRepository ¶
func (r *RepositoryRegistry) SetProductRepository(productRepositoryIns ProductRepository)
func (*RepositoryRegistry) SetStockRepository ¶
func (r *RepositoryRegistry) SetStockRepository(stockRepositoryIns StockRepository)
Click to show internal directories.
Click to hide internal directories.