api

package
v0.0.0-...-e95ff32 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2025 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExportJSONHandler

func ExportJSONHandler(app core.App) func(e *core.RequestEvent) error

ExportJSONHandler returns an Echo handler function that exports JSON based on start and end datetime

func TestHandler

func TestHandler(app core.App) func(e *core.RequestEvent) error

Types

type ExportData

type ExportData struct {
	Filter    FilterData               `json:"filter"`
	Products  []map[string]interface{} `json:"products"`
	MenuItems []map[string]interface{} `json:"menu_items"`
	Orders    []map[string]interface{} `json:"orders"`
	Payments  []map[string]interface{} `json:"payments"`
}

type FilterData

type FilterData struct {
	Start time.Time `json:"start"`
	End   time.Time `json:"end"`
}

Jump to

Keyboard shortcuts

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