handler

package
v0.8.37 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CountData

func CountData(c *fiber.Ctx) (err error)

func GetTableData

func GetTableData(Table string, Columns string, Condition string, GroupBy string, limitStr string, OrderStr string) []map[string]interface{}

func LineData

func LineData(c *fiber.Ctx) (err error)

func PieData

func PieData(c *fiber.Ctx) (err error)

func TableData

func TableData(c *fiber.Ctx) (err error)

Types

type Column

type Column struct {
	Name       string `json:"name"`
	Title      string `json:"title"`
	Type       string `json:"type"`
	Table      string `json:"table"`
	Alias      string `json:"alias"`
	Output     bool   `json:"output"`
	SortType   string `json:"sortType"`
	SortOrder  int    `json:"sortOrder"`
	GroupBy    bool   `json:"groupBy"`
	GroupOrder int    `json:"groupOrder"`
	Aggregate  string `json:"aggregate"`
	Color      string `json:"color"`
}

type CountRequest

type CountRequest struct {
	CountFields []Column `json:"countFields"`
	Filters     []Filter `json:"filters"`
}

type Filter

type Filter struct {
	Column    string `json:"column"`
	Condition string `json:"condition"`
	Value     string `json:"value"`
}

type LineRequest

type LineRequest struct {
	Axis    []Column `json:"axis"`
	Lines   []Column `json:"lines"`
	Filters []Filter `json:"filters"`
	Limit   string   `json:"limit"`
	Order   string   `json:"order"`
}

type PieRequest

type PieRequest struct {
	Value   []Column `json:"value"`
	Title   []Column `json:"title"`
	Filters []Filter `json:"filters"`
	Limit   string   `json:"limit"`
}

type TableRequest

type TableRequest struct {
	Values  []Column `json:"values"`
	Filters []Filter `json:"filters"`
	Limit   string   `json:"limit"`
	Order   string   `json:"order"`
}

Jump to

Keyboard shortcuts

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