Documentation
¶
Index ¶
- Constants
- type Client
- func (c *Client) ConfigApiGormFun(apiClientFun golog.ApiGormFun)
- func (c *Client) Minutely5M(ctx context.Context, location string, notMustParams ...gorequest.Params) (*Minutely5MResult, error)
- func (c *Client) OceanCurrents(ctx context.Context, location string, notMustParams ...gorequest.Params) (*OceanCurrentsResult, error)
- func (c *Client) OceanTide(ctx context.Context, location string, notMustParams ...gorequest.Params) (*OceanTideResult, error)
- func (c *Client) Weather10D(ctx context.Context, location string, notMustParams ...gorequest.Params) (*Weather10DResult, error)
- func (c *Client) Weather15D(ctx context.Context, location string, notMustParams ...gorequest.Params) (*Weather15DResult, error)
- func (c *Client) Weather168H(ctx context.Context, location string, notMustParams ...gorequest.Params) (*Weather168HResult, error)
- func (c *Client) Weather24H(ctx context.Context, location string, notMustParams ...gorequest.Params) (*Weather24HResult, error)
- func (c *Client) Weather30D(ctx context.Context, location string, notMustParams ...gorequest.Params) (*Weather30DResult, error)
- func (c *Client) Weather3D(ctx context.Context, location string, notMustParams ...gorequest.Params) (*Weather3DResult, error)
- func (c *Client) Weather72H(ctx context.Context, location string, notMustParams ...gorequest.Params) (*Weather72HResult, error)
- func (c *Client) Weather7D(ctx context.Context, location string, notMustParams ...gorequest.Params) (*Weather7DResult, error)
- func (c *Client) WeatherNow(ctx context.Context, location string, notMustParams ...gorequest.Params) (*WeatherNowResult, error)
- type Minutely5MResponse
- type Minutely5MResult
- type OceanCurrentsResponse
- type OceanCurrentsResult
- type OceanTideResponse
- type OceanTideResult
- type Weather10DResponse
- type Weather10DResult
- type Weather15DResponse
- type Weather15DResult
- type Weather168HResponse
- type Weather168HResult
- type Weather24HResponse
- type Weather24HResult
- type Weather30DResponse
- type Weather30DResult
- type Weather3DResponse
- type Weather3DResult
- type Weather72HResponse
- type Weather72HResult
- type Weather7DResponse
- type Weather7DResult
- type WeatherNowResponse
- type WeatherNowResult
Constants ¶
const (
LogTable = "qweather"
)
const (
Version = "1.0.0"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) ConfigApiGormFun ¶
func (c *Client) ConfigApiGormFun(apiClientFun golog.ApiGormFun)
ConfigApiGormFun 接口日志配置
func (*Client) Minutely5M ¶
func (c *Client) Minutely5M(ctx context.Context, location string, notMustParams ...gorequest.Params) (*Minutely5MResult, error)
Minutely5M 分钟级降水 https://dev.qweather.com/docs/api/weather/weather-daily-forecast/
func (*Client) OceanCurrents ¶
func (c *Client) OceanCurrents(ctx context.Context, location string, notMustParams ...gorequest.Params) (*OceanCurrentsResult, error)
OceanCurrents 潮汐 https://dev.qweather.com/docs/api/ocean/tide/
func (*Client) OceanTide ¶
func (c *Client) OceanTide(ctx context.Context, location string, notMustParams ...gorequest.Params) (*OceanTideResult, error)
OceanTide 潮汐 https://dev.qweather.com/docs/api/ocean/tide/
func (*Client) Weather10D ¶
func (c *Client) Weather10D(ctx context.Context, location string, notMustParams ...gorequest.Params) (*Weather10DResult, error)
Weather10D 每日天气预报 https://dev.qweather.com/docs/api/weather/weather-daily-forecast/
func (*Client) Weather15D ¶
func (c *Client) Weather15D(ctx context.Context, location string, notMustParams ...gorequest.Params) (*Weather15DResult, error)
Weather15D 每日天气预报 https://dev.qweather.com/docs/api/weather/weather-daily-forecast/
func (*Client) Weather168H ¶
func (c *Client) Weather168H(ctx context.Context, location string, notMustParams ...gorequest.Params) (*Weather168HResult, error)
Weather168H 逐小时天气预报 https://dev.qweather.com/docs/api/weather/weather-hourly-forecast/
func (*Client) Weather24H ¶
func (c *Client) Weather24H(ctx context.Context, location string, notMustParams ...gorequest.Params) (*Weather24HResult, error)
Weather24H 逐小时天气预报 https://dev.qweather.com/docs/api/weather/weather-hourly-forecast/
func (*Client) Weather30D ¶
func (c *Client) Weather30D(ctx context.Context, location string, notMustParams ...gorequest.Params) (*Weather30DResult, error)
Weather30D 每日天气预报 https://dev.qweather.com/docs/api/weather/weather-daily-forecast/
func (*Client) Weather3D ¶
func (c *Client) Weather3D(ctx context.Context, location string, notMustParams ...gorequest.Params) (*Weather3DResult, error)
Weather3D 每日天气预报 https://dev.qweather.com/docs/api/weather/weather-daily-forecast/
func (*Client) Weather72H ¶
func (c *Client) Weather72H(ctx context.Context, location string, notMustParams ...gorequest.Params) (*Weather72HResult, error)
Weather72H 逐小时天气预报 https://dev.qweather.com/docs/api/weather/weather-hourly-forecast/
func (*Client) Weather7D ¶
func (c *Client) Weather7D(ctx context.Context, location string, notMustParams ...gorequest.Params) (*Weather7DResult, error)
Weather7D 每日天气预报 https://dev.qweather.com/docs/api/weather/weather-daily-forecast/
func (*Client) WeatherNow ¶
func (c *Client) WeatherNow(ctx context.Context, location string, notMustParams ...gorequest.Params) (*WeatherNowResult, error)
WeatherNow 实时天气 location = 需要查询地区的LocationID或以英文逗号分隔的经度,纬度坐标(十进制,最多支持小数点后两位),LocationID可通过GeoAPI获取。例如 location=101010100 或 location=116.41,39.92 https://dev.qweather.com/docs/api/weather/weather-now/
type Minutely5MResponse ¶
type Minutely5MResponse struct {
Code string `json:"code"` // 状态码
UpdateTime string `json:"updateTime"` // 最近更新时间
FxLink string `json:"fxLink"` // 响应式页面
Summary string `json:"summary"` // 分钟降水描述
Minutely []struct {
FxTime string `json:"fxTime"` // 预报时间
Precip string `json:"precip"` // 5分钟累计降水量,单位毫米
Type string `json:"type"` // 降水类型:rain = 雨,snow = 雪
} `json:"minutely"`
Refer struct {
Sources []string `json:"sources"` // 原始数据来源,或数据源说明,可能为空
License []string `json:"license"` // 数据许可或版权声明,可能为空
} `json:"refer"`
}
type Minutely5MResult ¶
type Minutely5MResult struct {
Result Minutely5MResponse // 结果
Body []byte // 内容
Http gorequest.Response // 请求
}
type OceanCurrentsResponse ¶
type OceanCurrentsResponse struct {
Code string `json:"code"` // 状态码
UpdateTime string `json:"updateTime"` // 最近更新时间
FxLink string `json:"fxLink"` // 响应式页面
CurrentsTable []struct {
FxTime string `json:"fxTime"` // 潮流最大流速时间
SpeedMax string `json:"speedMax"` // 潮流最大流速,单位:厘米/秒
Dir360 string `json:"dir360"` // 潮流360度方向
} `json:"currentsTable"`
CurrentsHourly []struct {
FxTime string `json:"fxTime"` // 逐小时预报时间
Speed string `json:"speed"` // 潮流流速,单位:厘米/秒
Dir360 string `json:"dir360"` // 潮流360度方向
} `json:"currentsHourly"`
Refer struct {
Sources []string `json:"sources"` // 原始数据来源,或数据源说明,可能为空
License []string `json:"license"` // 数据许可或版权声明,可能为空
} `json:"refer"`
}
type OceanCurrentsResult ¶
type OceanCurrentsResult struct {
Result OceanCurrentsResponse // 结果
Body []byte // 内容
Http gorequest.Response // 请求
}
type OceanTideResponse ¶
type OceanTideResponse struct {
Code string `json:"code"` // 状态码
UpdateTime string `json:"updateTime"` // 最近更新时间
FxLink string `json:"fxLink"` // 响应式页面
TideTable []struct {
FxTime string `json:"fxTime"` // 满潮或干潮时间
Height string `json:"height"` // 海水高度,单位:米
Type string `json:"type"` // 满潮(H)或干潮(L)
} `json:"tideTable"`
TideHourly []struct {
FxTime string `json:"fxTime"` // 逐小时预报时间
Height string `json:"height"` // 海水高度,单位:米。对于一些地点,此数据可能为空
} `json:"tideHourly"`
Refer struct {
Sources []string `json:"sources"` // 原始数据来源,或数据源说明,可能为空
License []string `json:"license"` // 数据许可或版权声明,可能为空
} `json:"refer"`
}
type OceanTideResult ¶
type OceanTideResult struct {
Result OceanTideResponse // 结果
Body []byte // 内容
Http gorequest.Response // 请求
}
type Weather10DResponse ¶
type Weather10DResponse struct {
Code string `json:"code"` // 状态码
UpdateTime string `json:"updateTime"` // 最近更新时间
FxLink string `json:"fxLink"` // 响应式页面
Daily []struct {
FxDate string `json:"fxDate"` // 预报日期
Sunrise string `json:"sunrise"` // 日出时间,在高纬度地区可能为空
Sunset string `json:"sunset"` // 日落时间,在高纬度地区可能为空
Moonrise string `json:"moonrise"` // 当天月升时间,可能为空
Moonset string `json:"moonset"` // 当天月落时间,可能为空
MoonPhase string `json:"moonPhase"` // 月相名称
MoonPhaseIcon string `json:"moonPhaseIcon"` // 月相图标代码
TempMax string `json:"tempMax"` // 预报当天最高温度
TempMin string `json:"tempMin"` // 预报当天最低温度
IconDay string `json:"iconDay"` // 预报白天天气状况的图标代码
TextDay string `json:"textDay"` // 预报白天天气状况文字描述
IconNight string `json:"iconNight"` // 预报夜间天气状况的图标代码
TextNight string `json:"textNight"` // 预报晚间天气状况文字描述
Wind360Day string `json:"wind360Day"` // 预报白天风向360角度
WindDirDay string `json:"windDirDay"` // 预报白天风向
WindScaleDay string `json:"windScaleDay"` // 预报白天风力等级
WindSpeedDay string `json:"windSpeedDay"` // 预报白天风速,公里/小时
Wind360Night string `json:"wind360Night"` // 预报夜间风向360角度
WindDirNight string `json:"windDirNight"` // 预报夜间当天风向
WindScaleNight string `json:"windScaleNight"` // 预报夜间风力等级
WindSpeedNight string `json:"windSpeedNight"` // 预报夜间风速,公里/小时
Precip string `json:"precip"` // 预报当天总降水量,默认单位:毫米
UvIndex string `json:"uvIndex"` // 紫外线强度指数
Humidity string `json:"humidity"` // 相对湿度,百分比数值
Pressure string `json:"pressure"` // 大气压强,默认单位:百帕
Vis string `json:"vis"` // 能见度,默认单位:公里
Cloud string `json:"cloud"` // 云量,百分比数值。可能为空
} `json:"daily"`
Refer struct {
Sources []string `json:"sources"` // 原始数据来源,或数据源说明,可能为空
License []string `json:"license"` // 数据许可或版权声明,可能为空
} `json:"refer"`
}
type Weather10DResult ¶
type Weather10DResult struct {
Result Weather10DResponse // 结果
Body []byte // 内容
Http gorequest.Response // 请求
}
type Weather15DResponse ¶
type Weather15DResponse struct {
Code string `json:"code"` // 状态码
UpdateTime string `json:"updateTime"` // 最近更新时间
FxLink string `json:"fxLink"` // 响应式页面
Daily []struct {
FxDate string `json:"fxDate"` // 预报日期
Sunrise string `json:"sunrise"` // 日出时间,在高纬度地区可能为空
Sunset string `json:"sunset"` // 日落时间,在高纬度地区可能为空
Moonrise string `json:"moonrise"` // 当天月升时间,可能为空
Moonset string `json:"moonset"` // 当天月落时间,可能为空
MoonPhase string `json:"moonPhase"` // 月相名称
MoonPhaseIcon string `json:"moonPhaseIcon"` // 月相图标代码
TempMax string `json:"tempMax"` // 预报当天最高温度
TempMin string `json:"tempMin"` // 预报当天最低温度
IconDay string `json:"iconDay"` // 预报白天天气状况的图标代码
TextDay string `json:"textDay"` // 预报白天天气状况文字描述
IconNight string `json:"iconNight"` // 预报夜间天气状况的图标代码
TextNight string `json:"textNight"` // 预报晚间天气状况文字描述
Wind360Day string `json:"wind360Day"` // 预报白天风向360角度
WindDirDay string `json:"windDirDay"` // 预报白天风向
WindScaleDay string `json:"windScaleDay"` // 预报白天风力等级
WindSpeedDay string `json:"windSpeedDay"` // 预报白天风速,公里/小时
Wind360Night string `json:"wind360Night"` // 预报夜间风向360角度
WindDirNight string `json:"windDirNight"` // 预报夜间当天风向
WindScaleNight string `json:"windScaleNight"` // 预报夜间风力等级
WindSpeedNight string `json:"windSpeedNight"` // 预报夜间风速,公里/小时
Precip string `json:"precip"` // 预报当天总降水量,默认单位:毫米
UvIndex string `json:"uvIndex"` // 紫外线强度指数
Humidity string `json:"humidity"` // 相对湿度,百分比数值
Pressure string `json:"pressure"` // 大气压强,默认单位:百帕
Vis string `json:"vis"` // 能见度,默认单位:公里
Cloud string `json:"cloud"` // 云量,百分比数值。可能为空
} `json:"daily"`
Refer struct {
Sources []string `json:"sources"` // 原始数据来源,或数据源说明,可能为空
License []string `json:"license"` // 数据许可或版权声明,可能为空
} `json:"refer"`
}
type Weather15DResult ¶
type Weather15DResult struct {
Result Weather15DResponse // 结果
Body []byte // 内容
Http gorequest.Response // 请求
}
type Weather168HResponse ¶
type Weather168HResponse struct {
Code string `json:"code"` // 状态码
UpdateTime string `json:"updateTime"` // 最近更新时间
FxLink string `json:"fxLink"` // 响应式页面
Hourly []struct {
FxTime string `json:"fxTime"` // 预报时间
Temp string `json:"temp"` // 温度,默认单位:摄氏度
Icon string `json:"icon"` // 天气状况的图标代码
Text string `json:"text"` // 天气状况的文字描述,包括阴晴雨雪等天气状态的描述
Wind360 string `json:"wind360"` // 风向360角度
WindDir string `json:"windDir"` // 风向
WindScale string `json:"windScale"` // 风力等级
WindSpeed string `json:"windSpeed"` // 风速,公里/小时
Humidity string `json:"humidity"` // 相对湿度,百分比数值
Precip string `json:"precip"` // 当前小时累计降水量,默认单位:毫米
Pop string `json:"pop"` // 逐小时预报降水概率,百分比数值,可能为空
Pressure string `json:"pressure"` // 大气压强,默认单位:百帕
Cloud string `json:"cloud"` // 云量,百分比数值。可能为空
Dew string `json:"dew"` // 露点温度。可能为空
} `json:"hourly"`
Refer struct {
Sources []string `json:"sources"` // 原始数据来源,或数据源说明,可能为空
License []string `json:"license"` // 数据许可或版权声明,可能为空
} `json:"refer"`
}
type Weather168HResult ¶
type Weather168HResult struct {
Result Weather168HResponse // 结果
Body []byte // 内容
Http gorequest.Response // 请求
}
type Weather24HResponse ¶
type Weather24HResponse struct {
Code string `json:"code"` // 状态码
UpdateTime string `json:"updateTime"` // 最近更新时间
FxLink string `json:"fxLink"` // 响应式页面
Hourly []struct {
FxTime string `json:"fxTime"` // 预报时间
Temp string `json:"temp"` // 温度,默认单位:摄氏度
Icon string `json:"icon"` // 天气状况的图标代码
Text string `json:"text"` // 天气状况的文字描述,包括阴晴雨雪等天气状态的描述
Wind360 string `json:"wind360"` // 风向360角度
WindDir string `json:"windDir"` // 风向
WindScale string `json:"windScale"` // 风力等级
WindSpeed string `json:"windSpeed"` // 风速,公里/小时
Humidity string `json:"humidity"` // 相对湿度,百分比数值
Precip string `json:"precip"` // 当前小时累计降水量,默认单位:毫米
Pop string `json:"pop"` // 逐小时预报降水概率,百分比数值,可能为空
Pressure string `json:"pressure"` // 大气压强,默认单位:百帕
Cloud string `json:"cloud"` // 云量,百分比数值。可能为空
Dew string `json:"dew"` // 露点温度。可能为空
} `json:"hourly"`
Refer struct {
Sources []string `json:"sources"` // 原始数据来源,或数据源说明,可能为空
License []string `json:"license"` // 数据许可或版权声明,可能为空
} `json:"refer"`
}
type Weather24HResult ¶
type Weather24HResult struct {
Result Weather24HResponse // 结果
Body []byte // 内容
Http gorequest.Response // 请求
}
type Weather30DResponse ¶
type Weather30DResponse struct {
Code string `json:"code"` // 状态码
UpdateTime string `json:"updateTime"` // 最近更新时间
FxLink string `json:"fxLink"` // 响应式页面
Daily []struct {
FxDate string `json:"fxDate"` // 预报日期
Sunrise string `json:"sunrise"` // 日出时间,在高纬度地区可能为空
Sunset string `json:"sunset"` // 日落时间,在高纬度地区可能为空
Moonrise string `json:"moonrise"` // 当天月升时间,可能为空
Moonset string `json:"moonset"` // 当天月落时间,可能为空
MoonPhase string `json:"moonPhase"` // 月相名称
MoonPhaseIcon string `json:"moonPhaseIcon"` // 月相图标代码
TempMax string `json:"tempMax"` // 预报当天最高温度
TempMin string `json:"tempMin"` // 预报当天最低温度
IconDay string `json:"iconDay"` // 预报白天天气状况的图标代码
TextDay string `json:"textDay"` // 预报白天天气状况文字描述
IconNight string `json:"iconNight"` // 预报夜间天气状况的图标代码
TextNight string `json:"textNight"` // 预报晚间天气状况文字描述
Wind360Day string `json:"wind360Day"` // 预报白天风向360角度
WindDirDay string `json:"windDirDay"` // 预报白天风向
WindScaleDay string `json:"windScaleDay"` // 预报白天风力等级
WindSpeedDay string `json:"windSpeedDay"` // 预报白天风速,公里/小时
Wind360Night string `json:"wind360Night"` // 预报夜间风向360角度
WindDirNight string `json:"windDirNight"` // 预报夜间当天风向
WindScaleNight string `json:"windScaleNight"` // 预报夜间风力等级
WindSpeedNight string `json:"windSpeedNight"` // 预报夜间风速,公里/小时
Precip string `json:"precip"` // 预报当天总降水量,默认单位:毫米
UvIndex string `json:"uvIndex"` // 紫外线强度指数
Humidity string `json:"humidity"` // 相对湿度,百分比数值
Pressure string `json:"pressure"` // 大气压强,默认单位:百帕
Vis string `json:"vis"` // 能见度,默认单位:公里
Cloud string `json:"cloud"` // 云量,百分比数值。可能为空
} `json:"daily"`
Refer struct {
Sources []string `json:"sources"` // 原始数据来源,或数据源说明,可能为空
License []string `json:"license"` // 数据许可或版权声明,可能为空
} `json:"refer"`
}
type Weather30DResult ¶
type Weather30DResult struct {
Result Weather30DResponse // 结果
Body []byte // 内容
Http gorequest.Response // 请求
}
type Weather3DResponse ¶
type Weather3DResponse struct {
Code string `json:"code"` // 状态码
UpdateTime string `json:"updateTime"` // 最近更新时间
FxLink string `json:"fxLink"` // 响应式页面
Daily []struct {
FxDate string `json:"fxDate"` // 预报日期
Sunrise string `json:"sunrise"` // 日出时间,在高纬度地区可能为空
Sunset string `json:"sunset"` // 日落时间,在高纬度地区可能为空
Moonrise string `json:"moonrise"` // 当天月升时间,可能为空
Moonset string `json:"moonset"` // 当天月落时间,可能为空
MoonPhase string `json:"moonPhase"` // 月相名称
MoonPhaseIcon string `json:"moonPhaseIcon"` // 月相图标代码
TempMax string `json:"tempMax"` // 预报当天最高温度
TempMin string `json:"tempMin"` // 预报当天最低温度
IconDay string `json:"iconDay"` // 预报白天天气状况的图标代码
TextDay string `json:"textDay"` // 预报白天天气状况文字描述
IconNight string `json:"iconNight"` // 预报夜间天气状况的图标代码
TextNight string `json:"textNight"` // 预报晚间天气状况文字描述
Wind360Day string `json:"wind360Day"` // 预报白天风向360角度
WindDirDay string `json:"windDirDay"` // 预报白天风向
WindScaleDay string `json:"windScaleDay"` // 预报白天风力等级
WindSpeedDay string `json:"windSpeedDay"` // 预报白天风速,公里/小时
Wind360Night string `json:"wind360Night"` // 预报夜间风向360角度
WindDirNight string `json:"windDirNight"` // 预报夜间当天风向
WindScaleNight string `json:"windScaleNight"` // 预报夜间风力等级
WindSpeedNight string `json:"windSpeedNight"` // 预报夜间风速,公里/小时
Precip string `json:"precip"` // 预报当天总降水量,默认单位:毫米
UvIndex string `json:"uvIndex"` // 紫外线强度指数
Humidity string `json:"humidity"` // 相对湿度,百分比数值
Pressure string `json:"pressure"` // 大气压强,默认单位:百帕
Vis string `json:"vis"` // 能见度,默认单位:公里
Cloud string `json:"cloud"` // 云量,百分比数值。可能为空
} `json:"daily"`
Refer struct {
Sources []string `json:"sources"` // 原始数据来源,或数据源说明,可能为空
License []string `json:"license"` // 数据许可或版权声明,可能为空
} `json:"refer"`
}
type Weather3DResult ¶
type Weather3DResult struct {
Result Weather3DResponse // 结果
Body []byte // 内容
Http gorequest.Response // 请求
}
type Weather72HResponse ¶
type Weather72HResponse struct {
Code string `json:"code"` // 状态码
UpdateTime string `json:"updateTime"` // 最近更新时间
FxLink string `json:"fxLink"` // 响应式页面
Hourly []struct {
FxTime string `json:"fxTime"` // 预报时间
Temp string `json:"temp"` // 温度,默认单位:摄氏度
Icon string `json:"icon"` // 天气状况的图标代码
Text string `json:"text"` // 天气状况的文字描述,包括阴晴雨雪等天气状态的描述
Wind360 string `json:"wind360"` // 风向360角度
WindDir string `json:"windDir"` // 风向
WindScale string `json:"windScale"` // 风力等级
WindSpeed string `json:"windSpeed"` // 风速,公里/小时
Humidity string `json:"humidity"` // 相对湿度,百分比数值
Precip string `json:"precip"` // 当前小时累计降水量,默认单位:毫米
Pop string `json:"pop"` // 逐小时预报降水概率,百分比数值,可能为空
Pressure string `json:"pressure"` // 大气压强,默认单位:百帕
Cloud string `json:"cloud"` // 云量,百分比数值。可能为空
Dew string `json:"dew"` // 露点温度。可能为空
} `json:"hourly"`
Refer struct {
Sources []string `json:"sources"` // 原始数据来源,或数据源说明,可能为空
License []string `json:"license"` // 数据许可或版权声明,可能为空
} `json:"refer"`
}
type Weather72HResult ¶
type Weather72HResult struct {
Result Weather72HResponse // 结果
Body []byte // 内容
Http gorequest.Response // 请求
}
type Weather7DResponse ¶
type Weather7DResponse struct {
Code string `json:"code"` // 状态码
UpdateTime string `json:"updateTime"` // 最近更新时间
FxLink string `json:"fxLink"` // 响应式页面
Daily []struct {
FxDate string `json:"fxDate"` // 预报日期
Sunrise string `json:"sunrise"` // 日出时间,在高纬度地区可能为空
Sunset string `json:"sunset"` // 日落时间,在高纬度地区可能为空
Moonrise string `json:"moonrise"` // 当天月升时间,可能为空
Moonset string `json:"moonset"` // 当天月落时间,可能为空
MoonPhase string `json:"moonPhase"` // 月相名称
MoonPhaseIcon string `json:"moonPhaseIcon"` // 月相图标代码
TempMax string `json:"tempMax"` // 预报当天最高温度
TempMin string `json:"tempMin"` // 预报当天最低温度
IconDay string `json:"iconDay"` // 预报白天天气状况的图标代码
TextDay string `json:"textDay"` // 预报白天天气状况文字描述
IconNight string `json:"iconNight"` // 预报夜间天气状况的图标代码
TextNight string `json:"textNight"` // 预报晚间天气状况文字描述
Wind360Day string `json:"wind360Day"` // 预报白天风向360角度
WindDirDay string `json:"windDirDay"` // 预报白天风向
WindScaleDay string `json:"windScaleDay"` // 预报白天风力等级
WindSpeedDay string `json:"windSpeedDay"` // 预报白天风速,公里/小时
Wind360Night string `json:"wind360Night"` // 预报夜间风向360角度
WindDirNight string `json:"windDirNight"` // 预报夜间当天风向
WindScaleNight string `json:"windScaleNight"` // 预报夜间风力等级
WindSpeedNight string `json:"windSpeedNight"` // 预报夜间风速,公里/小时
Precip string `json:"precip"` // 预报当天总降水量,默认单位:毫米
UvIndex string `json:"uvIndex"` // 紫外线强度指数
Humidity string `json:"humidity"` // 相对湿度,百分比数值
Pressure string `json:"pressure"` // 大气压强,默认单位:百帕
Vis string `json:"vis"` // 能见度,默认单位:公里
Cloud string `json:"cloud"` // 云量,百分比数值。可能为空
} `json:"daily"`
Refer struct {
Sources []string `json:"sources"` // 原始数据来源,或数据源说明,可能为空
License []string `json:"license"` // 数据许可或版权声明,可能为空
} `json:"refer"`
}
type Weather7DResult ¶
type Weather7DResult struct {
Result Weather7DResponse // 结果
Body []byte // 内容
Http gorequest.Response // 请求
}
type WeatherNowResponse ¶
type WeatherNowResponse struct {
Code string `json:"code"` // 状态码
UpdateTime string `json:"updateTime"` // 最近更新时间
FxLink string `json:"fxLink"` // 响应式页面
Now struct {
ObsTime string `json:"obsTime"` // 数据观测时间
Temp string `json:"temp"` // 温度,默认单位:摄氏度
FeelsLike string `json:"feelsLike"` // 体感温度,默认单位:摄氏度
Icon string `json:"icon"` // 天气状况的图标代码
Text string `json:"text"` // 天气状况的文字描述,包括阴晴雨雪等天气状态的描述
Wind360 string `json:"wind360"` // 风向360角度
WindDir string `json:"windDir"` // 风向
WindScale string `json:"windScale"` // 风力等级
WindSpeed string `json:"windSpeed"` // 风速,公里/小时
Humidity string `json:"humidity"` // 相对湿度,百分比数值
Precip string `json:"precip"` // 当前小时累计降水量,默认单位:毫米
Pressure string `json:"pressure"` // 大气压强,默认单位:百帕
Vis string `json:"vis"` // 能见度,默认单位:公里
Cloud string `json:"cloud"` // 云量,百分比数值。可能为空
Dew string `json:"dew"` // 露点温度。可能为空
} `json:"now"`
Refer struct {
Sources []string `json:"sources"` // 原始数据来源,或数据源说明,可能为空
License []string `json:"license"` // 数据许可或版权声明,可能为空
} `json:"refer"`
}
type WeatherNowResult ¶
type WeatherNowResult struct {
Result WeatherNowResponse // 结果
Body []byte // 内容
Http gorequest.Response // 请求
}