usecases

package
v0.0.0-...-9c5febd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 28, 2020 License: MIT Imports: 7 Imported by: 0

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL