-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
BarryYan
committed
Oct 23, 2019
1 parent
460bf5b
commit 1644067
Showing
5 changed files
with
153 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
package api | ||
|
||
// Weather site data | ||
type Weather struct { | ||
City string | ||
Temp string | ||
Weather string | ||
Air string | ||
Humidity string | ||
Wind string | ||
Limit string | ||
Note string | ||
} | ||
|
||
// One site info | ||
type One struct { | ||
Date string | ||
ImgURL string | ||
Sentence string | ||
} | ||
|
||
// English info | ||
type English struct { | ||
ImgURL string | ||
Sentence string | ||
} | ||
|
||
// Poem info | ||
type Poem struct { | ||
Title string `json:"title"` | ||
Dynasty string `json:"dynasty"` | ||
Author string `json:"author"` | ||
Content []string `json:"content"` | ||
} | ||
|
||
// PoemRes response data | ||
type PoemRes struct { | ||
Status string `json:"status"` | ||
Data struct { | ||
Origin Poem `json:"origin"` | ||
} `json:"data"` | ||
} | ||
|
||
// Wallpaper data | ||
type Wallpaper struct { | ||
Title string | ||
ImgURL string | ||
} | ||
|
||
// Trivia info | ||
type Trivia struct { | ||
ImgURL string | ||
Description string | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters