Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CustomerAdapter ¶
type CustomerAdapter interface { Create(dto *customer_infrastructure.CustomerDTO) (*customer_infrastructure.CustomerDTO, error) FindOne(id primitive.ObjectID) (*customer_infrastructure.CustomerDTO, error) UpdateHistory(ID primitive.ObjectID, orderID primitive.ObjectID) error }
type Order ¶
type OrderAdapter ¶
type OrderAdapter interface { Create(dto *order_infrastructure.OrderDTO) (*order_infrastructure.OrderDTO, error) FindByCustomerID(customerID primitive.ObjectID) ([]order_infrastructure.OrderDTO, error) GetTotalAmountSpent(orderHistories []primitive.ObjectID) (float64, error) }
type OrderDetail ¶
func NewOrderDetail ¶
func NewOrderDetail(productID primitive.ObjectID, quantity int, price float64) *OrderDetail
type Product ¶
type ProductAdapter ¶
type ProductAdapter interface { Create(dto *product_infrastructure.ProductDTO) (*product_infrastructure.ProductDTO, error) FindOne(id primitive.ObjectID) (*product_infrastructure.ProductDTO, error) }
Click to show internal directories.
Click to hide internal directories.