Skip to content

Commit 7712923

Browse files
committed
renaming Houses to OverviewHouses
1 parent 40500c0 commit 7712923

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/TibiaHousesOverviewV3.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ type Auction struct {
1616
AuctionLeft string `json:"time_left"`
1717
}
1818

19-
// Child of Houses
19+
// Child of OverviewHouses
2020
type House struct {
2121
Name string `json:"name"`
2222
HouseID int `json:"house_id"`
@@ -28,7 +28,7 @@ type House struct {
2828
}
2929

3030
// Child of JSONData
31-
type Houses struct {
31+
type OverviewHouses struct {
3232
World string `json:"world"`
3333
Town string `json:"town"`
3434
HouseList []House `json:"house_list"`
@@ -45,10 +45,10 @@ func TibiaHousesOverviewV3(c *gin.Context) {
4545
world = TibiadataStringWorldFormatToTitleV3(world)
4646
town = TibiadataStringWorldFormatToTitleV3(town)
4747

48-
// The base includes two levels: Houses and Information
48+
// The base includes two levels: OverviewHouses and Information
4949
type JSONData struct {
50-
Houses Houses `json:"houses"`
51-
Information Information `json:"information"`
50+
Houses OverviewHouses `json:"houses"`
51+
Information Information `json:"information"`
5252
}
5353

5454
var (
@@ -93,7 +93,7 @@ func TibiaHousesOverviewV3(c *gin.Context) {
9393

9494
// Build the data-blob
9595
jsonData := JSONData{
96-
Houses{
96+
OverviewHouses{
9797
World: world,
9898
Town: town,
9999
HouseList: HouseData,

0 commit comments

Comments
 (0)