restaurant_repository

package
v0.0.0-...-e764b3d Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RestaurantRepository

type RestaurantRepository struct {
	DB *sql.DB
	// contains filtered or unexported fields
}

func New

func (*RestaurantRepository) GetAmountSupplyCosts

func (repo *RestaurantRepository) GetAmountSupplyCosts(ctx context.Context, request api_service.CreateReportRequest) (amountSupplyCosts float64, err error)

GetAmountSupplyCosts - получить сумму затрат на поставки за определенный срок

func (*RestaurantRepository) GetAverageOrderCheck

func (repo *RestaurantRepository) GetAverageOrderCheck(ctx context.Context, request api_service.CreateReportRequest) (avgOrderValue float64, err error)

GetAverageOrderCheck - средний чек заказа

func (*RestaurantRepository) GetAverageSupplyCheck

func (repo *RestaurantRepository) GetAverageSupplyCheck(ctx context.Context, request api_service.CreateReportRequest) (avgSupplyValue float64, err error)

GetAverageSupplyCheck - средний чек поставки

func (*RestaurantRepository) GetCustomerOrderHistory

func (*RestaurantRepository) GetDishesByIngredient

func (repo *RestaurantRepository) GetDishesByIngredient(ctx context.Context, ingredient string) (dishes []dish.RecieveDish, err error)

func (*RestaurantRepository) GetDishesWithIngredients

func (repo *RestaurantRepository) GetDishesWithIngredients(ctx context.Context) (dishes []dish.Dish, err error)

func (*RestaurantRepository) GetEmployeesOrdersCount

func (*RestaurantRepository) GetExpiringProducts

func (repo *RestaurantRepository) GetExpiringProducts(ctx context.Context) (responses []api_service.GetExpiringSoonProductsResponse, err error)

func (*RestaurantRepository) GetLostRevenue

func (repo *RestaurantRepository) GetLostRevenue(ctx context.Context, request api_service.CreateReportRequest) (lostRevenue float64, err error)

GetLostRevenue - поиск недополученной выручки из-за истечения срока годности продуктов

func (*RestaurantRepository) GetMostPopularDishes

func (repo *RestaurantRepository) GetMostPopularDishes(ctx context.Context) (responses []api_service.GetMostPopularDishesResponse, err error)

func (*RestaurantRepository) GetNetProfit

func (repo *RestaurantRepository) GetNetProfit(ctx context.Context, request api_service.CreateReportRequest) (netProfit float64, err error)

GetNetProfit - поиск чистой прибыли

func (*RestaurantRepository) GetSuppliersByProduct

func (repo *RestaurantRepository) GetSuppliersByProduct(ctx context.Context, productName string) (suppliers []supplier.Supplier, err error)

func (*RestaurantRepository) GetUnorderedDishes

func (repo *RestaurantRepository) GetUnorderedDishes(ctx context.Context) (dishes []dish.RecieveDish, err error)

func (*RestaurantRepository) Start

func (repo *RestaurantRepository) Start()

Jump to

Keyboard shortcuts

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