views

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterTableViewRoutes

func RegisterTableViewRoutes(r *gin.RouterGroup, db *sqlx.DB)

Types

type Filter added in v0.10.3

type Filter struct {
	FuncName  string      `json:"funcName,omitempty"`
	Key       string      `json:"key,omitempty"`
	Parameter interface{} `json:"parameter,omitempty"`
	Category  string      `json:"category,omitempty"`
}

TODO: delete when tables are switched to v2

type FilterClauses added in v0.10.3

type FilterClauses struct {
	And    []FilterClauses `json:"$and,omitempty"`
	Or     []FilterClauses `json:"$or,omitempty"`
	Filter *Filter         `json:"$filter,omitempty"`
}

TODO: delete when tables are switched to v2

type NewTableView

type NewTableView struct {
	View types.JSONText `json:"view" db:"view"`
	Page string         `json:"page" db:"page"`
}

type TableView

type TableView struct {
	Id      int            `json:"id" db:"id"`
	View    types.JSONText `json:"view" db:"view"`
	Version string         `json:"version" db:"version"`
}

type TableViewDetail added in v0.10.3

type TableViewDetail struct {
	Title   string        `json:"title"`
	Saved   bool          `json:"saved"`
	Columns []ViewColumn  `json:"columns"`
	Page    string        `json:"page"`
	SortBy  []ViewOrder   `json:"sortBy"`
	Id      int           `json:"id"`
	Filters FilterClauses `json:"filters"`
}

TODO: delete when tables are switched to v2

type TableViewJson added in v0.10.3

type TableViewJson struct {
	Id   int             `json:"id" db:"id"`
	View TableViewDetail `json:"view" db:"view"`
}

TODO: delete when tables are switched to v2

type TableViewOrder

type TableViewOrder struct {
	Id        int `json:"id" db:"id"`
	ViewOrder int `json:"view_order" db:"view_order"`
}

type ViewColumn added in v0.10.3

type ViewColumn struct {
	Key       string `json:"key"`
	Heading   string `json:"heading"`
	Type      string `json:"type"`
	ValueType string `json:"valueType"`
}

TODO: delete when tables are switched to v2

type ViewOrder added in v0.10.3

type ViewOrder struct {
	Value     string `json:"value"`
	Direction string `json:"direction"`
	Label     string `json:"label"`
}

TODO: delete when tables are switched to v2

Jump to

Keyboard shortcuts

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