common

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2021 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GoodType

type GoodType struct {
	Spots SpotsType // 景点
}

type Location

type Location struct {
	Long string // 经度
	Lat  string // 维度
}

type SpotsType

type SpotsType struct {
	Pos  []Location // 位置列表
	Name string
	Id   int
}

type WeatherData

type WeatherData struct {
	Time     string `json:"time"`     // 时间
	City     string `json:"city"`     // 城市
	District string `json:"district"` // 区
	Message  string `json:"message"`  // 天气提醒
}

type WeatherRequest

type WeatherRequest struct {
	Interval string   // 间隔类型,小时/天
	City     string   // 城市
	District string   // 区
	Good     GoodType // 好去处
	Hello    string
}

type WeatherResponse

type WeatherResponse struct {
	Echo int64         `json:"echo"` // 防重放
	Data []WeatherData `json:"data"` // 天气数据
}

Jump to

Keyboard shortcuts

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