envirotronics

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CityWeatherListReq

type CityWeatherListReq struct {
	g.Meta `path:"/weather/cityWeatherList" method:"get" summary:"获取城市的风力及日照时长" tags:"天气监测"`
	Name   string `json:"name" description:"名字"`
}

type CityWeatherListRes

type CityWeatherListRes struct {
	Info []*model.CityWeatherListRes
}

type GetCityTemperatureByIdReq

type GetCityTemperatureByIdReq struct {
	g.Meta `path:"/weather/getTemperatureEchartById" method:"get" summary:"根据ID获取指定城市的温度图表" tags:"天气监测"`
	Id     int `json:"id" description:"主键ID" v:"required#ID不能为空"`
	Types  int `json:"types" description:"类型 1 日 2周 3月 4年" v:"required#类型不能为空"`
}

type GetCityTemperatureByIdRes

type GetCityTemperatureByIdRes struct {
	Info            []*model.CityWeatherEchartRes
	AvgInfo         []*model.CityWeatherEchartRes
	ForeCastInfo    []*model.CityWeatherEchartRes
	ForeCastAvgInfo []*model.CityWeatherEchartRes
}

type GetCityWeatherByIdReq

type GetCityWeatherByIdReq struct {
	g.Meta `path:"/weather/getInfoById" method:"get" summary:"根据ID获取指定城市的天气" tags:"天气监测"`
	Id     int `json:"id" description:"主键ID" v:"required#ID不能为空"`
}

type GetCityWeatherByIdRes

type GetCityWeatherByIdRes struct {
	Info *model.CityWeatherListRes
}

type GetCityWindpowerByIdReq

type GetCityWindpowerByIdReq struct {
	g.Meta `path:"/weather/getWindpowerEchartById" method:"get" summary:"根据ID获取指定城市的风力图表" tags:"天气监测"`
	Id     int `json:"id" description:"主键ID" v:"required#ID不能为空"`
	Types  int `json:"types" description:"类型 1 日 2周 3月 4年" v:"required#类型不能为空"`
}

type GetCityWindpowerByIdRes

type GetCityWindpowerByIdRes struct {
	Info            []*model.CityWeatherEchartRes
	AvgInfo         []*model.CityWeatherEchartRes
	ForeCastInfo    []*model.CityWeatherEchartRes
	ForeCastAvgInfo []*model.CityWeatherEchartRes
}

Jump to

Keyboard shortcuts

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