Documentation ¶
Index ¶
- type CustomerRepo
- type CustomerRepoImpl
- func (customerRepo CustomerRepoImpl) Create(customer *model.Customer) (*model.Customer, error)
- func (customerRepo CustomerRepoImpl) Delete(id uint) (bool, error)
- func (customerRepo CustomerRepoImpl) Find(id uint) (*model.Customer, error)
- func (customerRepo CustomerRepoImpl) Update(id uint, info request.CustomerUpdateInfo) (*model.Customer, error)
- type ProductRepo
- type ProductRepoImpl
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CustomerRepo ¶
type CustomerRepoImpl ¶
func (CustomerRepoImpl) Delete ¶
func (customerRepo CustomerRepoImpl) Delete(id uint) (bool, error)
Delete a customer
func (CustomerRepoImpl) Find ¶
func (customerRepo CustomerRepoImpl) Find(id uint) (*model.Customer, error)
Find a customer
func (CustomerRepoImpl) Update ¶
func (customerRepo CustomerRepoImpl) Update(id uint, info request.CustomerUpdateInfo) (*model.Customer, error)
Update a customer
type ProductRepo ¶
type ProductRepoImpl ¶
func (ProductRepoImpl) Find ¶
func (productRepo ProductRepoImpl) Find(id uint) (*model.Product, error)
Find Product
func (ProductRepoImpl) GetInfo ¶
func (productRepo ProductRepoImpl) GetInfo(id uint) (response.ProductInfo, error)
Get Product Info
Click to show internal directories.
Click to hide internal directories.