Documentation
¶
Index ¶
- func CheckExpirationDates(log logger.ILogger, conf config.Config, notification_svc INotificationService)
- type CategoryService
- func (cs *CategoryService) DeleteCategory(category_id string) (err error)
- func (cs *CategoryService) GetCategories(first int, rows int) (categories []models.Category, err error)
- func (cs *CategoryService) InsertCategory(category models.Category) (err error)
- func (cs *CategoryService) UpdateCategory(category models.Category) (err error)
- type GetOrdersParameters
- type INotificationService
- type Log
- type MaterialService
- func (cs *MaterialService) AddComponent(material models.Material) error
- func (cs *MaterialService) CalculateMaterialCost(entry_id, material_id string, quantity float64) (cost float64, err error)
- func (cs *MaterialService) ConsumeItemComponentsForOrder(item models.OrderItem, order models.Order, item_order_index int) (notifications []models.WebsocketTopicServerMessage, err error)
- func (cs *MaterialService) DeleteEntry(entryid string, componentid string) error
- func (cs *MaterialService) EditMaterial(materialEditRequest dto.MaterialEditRequest) error
- func (cs *MaterialService) GetComponentAvailability(componentid string) (amount float32, err error)
- func (cs *MaterialService) GetMaterialEntryAvailability(material_id string, entry_id string) (amount float32, err error)
- func (cs *MaterialService) GetMaterials() (materials []models.Material, err error)
- func (cs *MaterialService) PushMaterialEntry(componentId string, entries []models.MaterialEntry) error
- type MelodyWebsocket
- func (ws *MelodyWebsocket) AddSessionToTopic(topic_name string, session_id string)
- func (ws *MelodyWebsocket) GetTopic(topic_name string) (topic models.Topic, index int, err error)
- func (ws *MelodyWebsocket) HandleConnect()
- func (ws *MelodyWebsocket) HandleHttpRequest(w http.ResponseWriter, r *http.Request) error
- func (ws *MelodyWebsocket) HandleMessages()
- func (ws *MelodyWebsocket) SendToSession(msg string, session_id string)
- func (ws *MelodyWebsocket) SendToTopic(topic_name string, message string) error
- type OrderService
- func (os *OrderService) CalculateCost(items []models.OrderItem) (cost []models.ItemCost, err error)
- func (os *OrderService) CancelOrder(order_id string) (err error)
- func (os *OrderService) FinishOrder(finish_order_request dto.FinishOrderRequest) (err error)
- func (os *OrderService) GetOrder(order_id string) (models.Order, error)
- func (os *OrderService) GetOrderDisplayId() (order_display_id string, err error)
- func (os *OrderService) GetOrders(params GetOrdersParameters) (orders []models.Order, err error)
- func (os *OrderService) GetStashedOrders() (stashed_orders []models.Order, err error)
- func (os *OrderService) GetUnpaidOrders() (orders []models.Order, err error)
- func (os *OrderService) PayUnpaidOrder(order_id string) (err error)
- func (os *OrderService) RemoveStashedOrder(stash_remove_request dto.OrderRemoveStashRequest) error
- func (os *OrderService) StartOrder(order_start_request dto.OrderStartRequest) error
- func (os *OrderService) StashOrder(order_stash_request dto.OrderStashRequest) (models.Order, error)
- func (os *OrderService) SubmitOrder(order models.Order) (err error)
- type RecipeService
- func (rs *RecipeService) CheckRecipesAvailability(recipe_ids []string) (availabilities []dto.RecipeAvailability, err error)
- func (rs *RecipeService) ConsumeFromReady(product_id string, quantity float64) error
- func (rs *RecipeService) DeleteProduct(product_id string) (err error)
- func (rs *RecipeService) FillRecipeDesign(item models.OrderItem) (models.OrderItem, error)
- func (rs *RecipeService) GetProducts(first_index int, rows int) (products []models.Product, totalRecords int64, err error)
- func (rs *RecipeService) GetReadyNumber(recipe_id string) (ready float64, err error)
- func (rs *RecipeService) GetRecipeMaterials(recipe_id string) (materials []models.Material, err error)
- func (rs *RecipeService) GetRecipeTree(recipe_id string) (tree models.Product, err error)
- func (rs *RecipeService) InsertNew(product models.Product) (err error)
- func (rs *RecipeService) UpdateProduct(product models.Product) (err error)
- type SalesService
- type Seeder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckExpirationDates ¶
func CheckExpirationDates(log logger.ILogger, conf config.Config, notification_svc INotificationService)
Types ¶
type CategoryService ¶
func (*CategoryService) DeleteCategory ¶
func (cs *CategoryService) DeleteCategory(category_id string) (err error)
func (*CategoryService) GetCategories ¶
func (*CategoryService) InsertCategory ¶
func (cs *CategoryService) InsertCategory(category models.Category) (err error)
func (*CategoryService) UpdateCategory ¶
func (cs *CategoryService) UpdateCategory(category models.Category) (err error)
type GetOrdersParameters ¶
type GetOrdersParameters struct {
OrderDisplayIdContains string
}
type INotificationService ¶
type INotificationService interface {
HandleHttpRequest(w http.ResponseWriter, r *http.Request) error
SendToTopic(topic_name string, message string) error
}
type Log ¶
func (*Log) GetComponentLogs ¶
func (l *Log) GetComponentLogs(component_id string) (logs []models.ComponentConsumeLogs, err error)
func (*Log) GetSalesLogs ¶
type MaterialService ¶
func (*MaterialService) AddComponent ¶
func (cs *MaterialService) AddComponent(material models.Material) error
func (*MaterialService) CalculateMaterialCost ¶
func (cs *MaterialService) CalculateMaterialCost(entry_id, material_id string, quantity float64) (cost float64, err error)
func (*MaterialService) ConsumeItemComponentsForOrder ¶
func (cs *MaterialService) ConsumeItemComponentsForOrder(item models.OrderItem, order models.Order, item_order_index int) (notifications []models.WebsocketTopicServerMessage, err error)
func (*MaterialService) DeleteEntry ¶
func (cs *MaterialService) DeleteEntry(entryid string, componentid string) error
func (*MaterialService) EditMaterial ¶
func (cs *MaterialService) EditMaterial(materialEditRequest dto.MaterialEditRequest) error
func (*MaterialService) GetComponentAvailability ¶
func (cs *MaterialService) GetComponentAvailability(componentid string) (amount float32, err error)
func (*MaterialService) GetMaterialEntryAvailability ¶
func (cs *MaterialService) GetMaterialEntryAvailability(material_id string, entry_id string) (amount float32, err error)
func (*MaterialService) GetMaterials ¶
func (cs *MaterialService) GetMaterials() (materials []models.Material, err error)
func (*MaterialService) PushMaterialEntry ¶
func (cs *MaterialService) PushMaterialEntry(componentId string, entries []models.MaterialEntry) error
type MelodyWebsocket ¶
type MelodyWebsocket struct {
Logger logger.ILogger
Config config.Config
Topics []models.Topic
// contains filtered or unexported fields
}
func (*MelodyWebsocket) AddSessionToTopic ¶
func (ws *MelodyWebsocket) AddSessionToTopic(topic_name string, session_id string)
func (*MelodyWebsocket) HandleConnect ¶
func (ws *MelodyWebsocket) HandleConnect()
func (*MelodyWebsocket) HandleHttpRequest ¶
func (ws *MelodyWebsocket) HandleHttpRequest(w http.ResponseWriter, r *http.Request) error
func (*MelodyWebsocket) HandleMessages ¶
func (ws *MelodyWebsocket) HandleMessages()
func (*MelodyWebsocket) SendToSession ¶
func (ws *MelodyWebsocket) SendToSession(msg string, session_id string)
func (*MelodyWebsocket) SendToTopic ¶
func (ws *MelodyWebsocket) SendToTopic(topic_name string, message string) error
type OrderService ¶
func (*OrderService) CalculateCost ¶
func (*OrderService) CancelOrder ¶
func (os *OrderService) CancelOrder(order_id string) (err error)
func (*OrderService) FinishOrder ¶
func (os *OrderService) FinishOrder(finish_order_request dto.FinishOrderRequest) (err error)
func (*OrderService) GetOrder ¶
func (os *OrderService) GetOrder(order_id string) (models.Order, error)
func (*OrderService) GetOrderDisplayId ¶
func (os *OrderService) GetOrderDisplayId() (order_display_id string, err error)
func (*OrderService) GetOrders ¶
func (os *OrderService) GetOrders(params GetOrdersParameters) (orders []models.Order, err error)
func (*OrderService) GetStashedOrders ¶
func (os *OrderService) GetStashedOrders() (stashed_orders []models.Order, err error)
func (*OrderService) GetUnpaidOrders ¶
func (os *OrderService) GetUnpaidOrders() (orders []models.Order, err error)
func (*OrderService) PayUnpaidOrder ¶
func (os *OrderService) PayUnpaidOrder(order_id string) (err error)
func (*OrderService) RemoveStashedOrder ¶
func (os *OrderService) RemoveStashedOrder(stash_remove_request dto.OrderRemoveStashRequest) error
func (*OrderService) StartOrder ¶
func (os *OrderService) StartOrder(order_start_request dto.OrderStartRequest) error
func (*OrderService) StashOrder ¶
func (os *OrderService) StashOrder(order_stash_request dto.OrderStashRequest) (models.Order, error)
func (*OrderService) SubmitOrder ¶
func (os *OrderService) SubmitOrder(order models.Order) (err error)
type RecipeService ¶
func (*RecipeService) CheckRecipesAvailability ¶
func (rs *RecipeService) CheckRecipesAvailability(recipe_ids []string) (availabilities []dto.RecipeAvailability, err error)
func (*RecipeService) ConsumeFromReady ¶
func (rs *RecipeService) ConsumeFromReady(product_id string, quantity float64) error
func (*RecipeService) DeleteProduct ¶
func (rs *RecipeService) DeleteProduct(product_id string) (err error)
func (*RecipeService) FillRecipeDesign ¶
func (*RecipeService) GetProducts ¶
func (*RecipeService) GetReadyNumber ¶
func (rs *RecipeService) GetReadyNumber(recipe_id string) (ready float64, err error)
func (*RecipeService) GetRecipeMaterials ¶
func (rs *RecipeService) GetRecipeMaterials(recipe_id string) (materials []models.Material, err error)
func (*RecipeService) GetRecipeTree ¶
func (rs *RecipeService) GetRecipeTree(recipe_id string) (tree models.Product, err error)
func (*RecipeService) InsertNew ¶
func (rs *RecipeService) InsertNew(product models.Product) (err error)
func (*RecipeService) UpdateProduct ¶
func (rs *RecipeService) UpdateProduct(product models.Product) (err error)
type SalesService ¶
func (*SalesService) AddOrderToSalesDay ¶
func (*SalesService) GetSalesPerday ¶
func (ss *SalesService) GetSalesPerday(first int, rows int) (salesPerDay []models.SalesPerDay, totalRecords int, err error)
format 2006-01-02
Click to show internal directories.
Click to hide internal directories.