Documentation ¶
Index ¶
- type OrderMysqlRepo
- type ProductMysqlRepo
- func (p *ProductMysqlRepo) AddProduct(ctx context.Context, prod *entities.Product) (*entities.Product, error)
- func (p *ProductMysqlRepo) GetProduct(ctx context.Context, id int64) (*entities.Product, error)
- func (p *ProductMysqlRepo) ListProducts(ctx context.Context, page int, limit int) ([]*entities.Product, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OrderMysqlRepo ¶
type OrderMysqlRepo struct {
// contains filtered or unexported fields
}
func NewOrderMysqlRepo ¶
func NewOrderMysqlRepo( db *infras.MysqlConnector, ) *OrderMysqlRepo
func (*OrderMysqlRepo) UpdateOrderStatus ¶
func (o *OrderMysqlRepo) UpdateOrderStatus( ctx context.Context, id int, status entities.OrderStatus, ) (*entities.Order, error)
type ProductMysqlRepo ¶
type ProductMysqlRepo struct {
// contains filtered or unexported fields
}
func NewProductMysqlRepo ¶
func NewProductMysqlRepo( db *infras.MysqlConnector, ) *ProductMysqlRepo
func (*ProductMysqlRepo) AddProduct ¶
func (*ProductMysqlRepo) GetProduct ¶
func (*ProductMysqlRepo) ListProducts ¶
Click to show internal directories.
Click to hide internal directories.