Documentation ¶
Index ¶
- Variables
- func Init()
- type Product2CRepositoryImpl
- type ProductRepositoryImpl
- func (i ProductRepositoryImpl) AddProduct(ctx context.Context, product *entity.ProductEntity) error
- func (i ProductRepositoryImpl) GetProductById(ctx context.Context, productId int64) (*entity.ProductEntity, error)
- func (i ProductRepositoryImpl) ListProducts(ctx context.Context, filterParam map[string]interface{}) ([]*entity.ProductEntity, error)
- func (i ProductRepositoryImpl) UpdateProduct(ctx context.Context, origin, target *entity.ProductEntity) error
- type StockRepositoryImpl
Constants ¶
This section is empty.
Variables ¶
View Source
var DB *gorm.DB
Functions ¶
Types ¶
type Product2CRepositoryImpl ¶
type Product2CRepositoryImpl struct{}
func (Product2CRepositoryImpl) MGetProducts2C ¶
func (i Product2CRepositoryImpl) MGetProducts2C(ctx context.Context, productIds []int64) ([]*entity.ProductEntity, error)
func (Product2CRepositoryImpl) SearchProducts ¶
func (i Product2CRepositoryImpl) SearchProducts(ctx context.Context, name, description, spuName *string) ([]*entity.ProductEntity, error)
type ProductRepositoryImpl ¶
type ProductRepositoryImpl struct{}
func (ProductRepositoryImpl) AddProduct ¶
func (i ProductRepositoryImpl) AddProduct(ctx context.Context, product *entity.ProductEntity) error
func (ProductRepositoryImpl) GetProductById ¶
func (i ProductRepositoryImpl) GetProductById(ctx context.Context, productId int64) (*entity.ProductEntity, error)
func (ProductRepositoryImpl) ListProducts ¶
func (i ProductRepositoryImpl) ListProducts(ctx context.Context, filterParam map[string]interface{}) ([]*entity.ProductEntity, error)
func (ProductRepositoryImpl) UpdateProduct ¶
func (i ProductRepositoryImpl) UpdateProduct(ctx context.Context, origin, target *entity.ProductEntity) error
type StockRepositoryImpl ¶
type StockRepositoryImpl struct{}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.