Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OrderMessageUseCase ¶
type OrderMessageUseCase struct {
// contains filtered or unexported fields
}
OrderMessageUseCase object
func NewOrderMessageUseCase ¶
func NewOrderMessageUseCase(repo storage.Storager, msgr messenger.Messenger) OrderMessageUseCase
NewOrderMessageUseCase constructor
func (OrderMessageUseCase) OrderMessage ¶
func (u OrderMessageUseCase) OrderMessage(phone string, message, description string)
OrderMessage show message to customers messenger by phone number
type PlaceOrderUseCase ¶
type PlaceOrderUseCase struct {
// contains filtered or unexported fields
}
PlaceOrderUseCase object
func NewPlaceOrderUseCase ¶
func NewPlaceOrderUseCase(repo storage.Storager) PlaceOrderUseCase
NewPlaceOrderUseCase constructor
func (PlaceOrderUseCase) PlaceOrder ¶
func (u PlaceOrderUseCase) PlaceOrder(request contracts.PlaceOrderRequest, output contracts.PlaceOrderOutput)
PlaceOrder stores all order info and call order link delivery to customer
type PurgeOrdersOlderUseCase ¶
type PurgeOrdersOlderUseCase struct {
// contains filtered or unexported fields
}
PurgeOrdersOlderUseCase object
func NewPurgeOrdersOlderUseCase ¶
func NewPurgeOrdersOlderUseCase(repo storage.Storager, days int) PurgeOrdersOlderUseCase
NewPurgeOrdersOlderUseCase constructor
func (PurgeOrdersOlderUseCase) PurgeOrders ¶
func (u PurgeOrdersOlderUseCase) PurgeOrders()
PurgeOrders delete orders by clause
type TakeOrderUseCase ¶
type TakeOrderUseCase struct {
// contains filtered or unexported fields
}
TakeOrderUseCase object
func NewTakeOrderUseCase ¶
func NewTakeOrderUseCase(repo storage.Storager) TakeOrderUseCase
NewTakeOrderUseCase constructor
func (TakeOrderUseCase) TakeOrder ¶
func (u TakeOrderUseCase) TakeOrder(request contracts.TakeOrderRequest, output contracts.TakeOrderOutput)
TakeOrder takes order by link and send to response all ordered items
Click to show internal directories.
Click to hide internal directories.