api

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2023 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterRoutes

func RegisterRoutes(app *gin.RouterGroup)

Types

type ParamAggregate

type ParamAggregate struct {
	Point string `form:"point" json:"point"` //数据点位
	Start string `form:"start" json:"start"` //起始时间
	End   string `form:"end" json:"end"`     //结束时间
	Type  string `form:"type" json:"type"`   //设备类型
	Area  string `form:"area" json:"area"`   //设备区域
	Group string `form:"group" json:"group"` //设备分组
	Id    string `form:"id" json:"id"`       //设备ID
}

type ParamList

type ParamList struct {
	Skip  int `form:"skip" json:"skip"`
	Limit int `form:"limit" json:"limit"`
}

type ParamSearch

type ParamSearch struct {
	Skip     int                    `form:"skip" json:"skip"`
	Limit    int                    `form:"limit" json:"limit"`
	Sort     map[string]int         `form:"sort" json:"sort"`
	Filters  map[string]interface{} `form:"filter" json:"filter"`
	Keywords map[string]string      `form:"keyword" json:"keyword"`
}

type ReplyData

type ReplyData[T any] struct {
	Data  T      `json:"data"`
	Error string `json:"error,omitempty"`
}

type ReplyList

type ReplyList[T any] struct {
	Data  []T    `json:"data"`
	Total int64  `json:"total"`
	Error string `json:"error,omitempty"`
}

type Result

type Result struct {
	Id    string  `json:"id"`
	Name  string  `json:"name"`
	Total float64 `json:"total"`
}

type ResultDate

type ResultDate struct {
	Date  string  `json:"date"`
	Total float64 `json:"total"`
}

type ResultTime

type ResultTime struct {
	Time  string  `json:"time"`
	Total float64 `json:"total"`
}

Jump to

Keyboard shortcuts

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