This repository was archived by the owner on Jan 30, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +14
-14
lines changed
Expand file tree Collapse file tree 2 files changed +14
-14
lines changed Original file line number Diff line number Diff line change 11package ttRequests_models
22
33type BaseTotalPlayer struct {
4- VrpId uint32 `json:"vrpId"`
5- Name string `json:"name"`
6- ServerId uint8 `json:"serverId"`
7- DiscordUrl string `json:"discordUrl "`
8- IsStaff bool `json:"isStaff"`
9- IsDonor bool `json:"isDonor"`
10- Job string `json:"job"`
4+ VrpId uint32 `json:"vrpId"`
5+ Name string `json:"name"`
6+ ServerId uint8 `json:"serverId"`
7+ AvatarUrl string `json:"avatarUrl "`
8+ IsStaff bool `json:"isStaff"`
9+ IsDonor bool `json:"isDonor"`
10+ Job string `json:"job"`
1111}
Original file line number Diff line number Diff line change @@ -30,13 +30,13 @@ func GetTotalPlayers() ([]models.BaseTotalPlayer, error) {
3030 }
3131
3232 newPlayer := models.BaseTotalPlayer {
33- Name : player [0 ].(string ),
34- VrpId : uint32 (vrp ),
35- DiscordUrl : player [3 ].(string ),
36- IsStaff : player [4 ].(bool ),
37- IsDonor : player [6 ].(bool ),
38- Job : player [5 ].(string ),
39- ServerId : i ,
33+ Name : player [0 ].(string ),
34+ VrpId : uint32 (vrp ),
35+ AvatarUrl : player [3 ].(string ),
36+ IsStaff : player [4 ].(bool ),
37+ IsDonor : player [6 ].(bool ),
38+ Job : player [5 ].(string ),
39+ ServerId : i ,
4040 }
4141 newPlayers = append (newPlayers , newPlayer )
4242 }
You can’t perform that action at this time.
0 commit comments