Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ICartRepository ¶
type ICartService ¶
type IDbHandler ¶
type IOrderRepository ¶
type IOrderRepository interface { Create(productId int, userId int, name string, price float32) (int, error) GetById(orderId int) (models.OrderModel, error) Update(model models.OrderModel) (bool, error) List(userId int) []models.OrderModel GetUnProcessedOrders(status string) []models.OrderModel }
type IOrderService ¶
type IPayHandler ¶
type IProductRepository ¶
type IProductRepository interface {
GetById(id int) (models.ProductModel, error)
}
type IProductService ¶
type IProductService interface { GetProduct(userId int, productId int) (DTO.ProductDTO, error) GetById(id int) (models.ProductModel, error) }
type IUserRepository ¶
Click to show internal directories.
Click to hide internal directories.