diff options
| author | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2024-02-14 18:26:27 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-14 18:26:27 +0300 |
| commit | 6c2532d426b05acdcb008b1cd65c83d209fa758b (patch) | |
| tree | 3fd792c9e11a49ebb9b7ad54b994f014ed70f0b2 /backend/models/models.go | |
| parent | fix: hopefully fix profile placement calculation (#123) (diff) | |
| download | lphub-6c2532d426b05acdcb008b1cd65c83d209fa758b.tar.gz lphub-6c2532d426b05acdcb008b1cd65c83d209fa758b.tar.bz2 lphub-6c2532d426b05acdcb008b1cd65c83d209fa758b.zip | |
feat: add images to game/chapter/map select (#151)
Diffstat (limited to 'backend/models/models.go')
| -rw-r--r-- | backend/models/models.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/backend/models/models.go b/backend/models/models.go index bf3ac86..b766b97 100644 --- a/backend/models/models.go +++ b/backend/models/models.go | |||
| @@ -52,6 +52,7 @@ type Map struct { | |||
| 52 | type MapShort struct { | 52 | type MapShort struct { |
| 53 | ID int `json:"id"` | 53 | ID int `json:"id"` |
| 54 | Name string `json:"name"` | 54 | Name string `json:"name"` |
| 55 | Image string `json:"image"` | ||
| 55 | IsDisabled bool `json:"is_disabled"` | 56 | IsDisabled bool `json:"is_disabled"` |
| 56 | } | 57 | } |
| 57 | 58 | ||
| @@ -88,12 +89,14 @@ type UserRanking struct { | |||
| 88 | type Game struct { | 89 | type Game struct { |
| 89 | ID int `json:"id"` | 90 | ID int `json:"id"` |
| 90 | Name string `json:"name"` | 91 | Name string `json:"name"` |
| 92 | Image string `json:"image"` | ||
| 91 | IsCoop bool `json:"is_coop"` | 93 | IsCoop bool `json:"is_coop"` |
| 92 | } | 94 | } |
| 93 | 95 | ||
| 94 | type Chapter struct { | 96 | type Chapter struct { |
| 95 | ID int `json:"id"` | 97 | ID int `json:"id"` |
| 96 | Name string `json:"name"` | 98 | Name string `json:"name"` |
| 99 | Image string `json:"image"` | ||
| 97 | IsDisabled bool `json:"is_disabled"` | 100 | IsDisabled bool `json:"is_disabled"` |
| 98 | } | 101 | } |
| 99 | 102 | ||