models

package
v0.0.0-...-6297621 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2020 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type City

type City struct {
	Name string `json:"city_name"`
	Code string `json:"city_code"`
}

type CityInfo

type CityInfo struct {
	CityName string `json:"city"`
	CityCode string `json:"cityKey"`
	Parent   string `json:"parent"`
}

type Data

type Data struct {
	Moisture  string `json:"shidu"`
	Quality   string `json:"quality"`
	Cold      string `json:"ganmao"`
	Yesterday Day    `json:"yesterday"`
	Forecast  []Day  `json:"forecast"`
}

type Day

type Day struct {
	Date    string  `json:"date"`
	Sunrise string  `json:"sunrise"`
	High    string  `json:"high"`
	Low     string  `json:"low"`
	Sunset  string  `json:"sunset"`
	Aqi     float32 `json:"aqi"`
	Fx      string  `json:"fx"`
	Fl      string  `json:"fl"`
	Type    string  `json:"type"`
	Notice  string  `json:"notice"`
}

type Response

type Response struct {
	Status   int      `json:"status"`
	CityInfo CityInfo `json:"cityInfo"`
	Data     Data     `json:"data"`
	Date     string   `json:"date"`
	Message  string   `json:"message"`
	Count    int      `json:"count"`
}

Jump to

Keyboard shortcuts

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