File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ type Auction struct {
16
16
AuctionLeft string `json:"time_left"`
17
17
}
18
18
19
- // Child of Houses
19
+ // Child of OverviewHouses
20
20
type House struct {
21
21
Name string `json:"name"`
22
22
HouseID int `json:"house_id"`
@@ -28,7 +28,7 @@ type House struct {
28
28
}
29
29
30
30
// Child of JSONData
31
- type Houses struct {
31
+ type OverviewHouses struct {
32
32
World string `json:"world"`
33
33
Town string `json:"town"`
34
34
HouseList []House `json:"house_list"`
@@ -45,10 +45,10 @@ func TibiaHousesOverviewV3(c *gin.Context) {
45
45
world = TibiadataStringWorldFormatToTitleV3 (world )
46
46
town = TibiadataStringWorldFormatToTitleV3 (town )
47
47
48
- // The base includes two levels: Houses and Information
48
+ // The base includes two levels: OverviewHouses and Information
49
49
type JSONData struct {
50
- Houses Houses `json:"houses"`
51
- Information Information `json:"information"`
50
+ Houses OverviewHouses `json:"houses"`
51
+ Information Information `json:"information"`
52
52
}
53
53
54
54
var (
@@ -93,7 +93,7 @@ func TibiaHousesOverviewV3(c *gin.Context) {
93
93
94
94
// Build the data-blob
95
95
jsonData := JSONData {
96
- Houses {
96
+ OverviewHouses {
97
97
World : world ,
98
98
Town : town ,
99
99
HouseList : HouseData ,
You can’t perform that action at this time.
0 commit comments