diff options
| author | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2023-08-24 22:34:05 +0300 |
|---|---|---|
| committer | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2023-08-24 22:34:05 +0300 |
| commit | ca973edc28b5fe543c583217896590f4a2e98897 (patch) | |
| tree | 7f37713ac587ef80fb3a17d869d01520a1d94dca /backend/models | |
| parent | Merge branch 'main' of https://github.com/pektezol/LeastPortalsHub (diff) | |
| download | lphub-ca973edc28b5fe543c583217896590f4a2e98897.tar.gz lphub-ca973edc28b5fe543c583217896590f4a2e98897.tar.bz2 lphub-ca973edc28b5fe543c583217896590f4a2e98897.zip | |
fix: mod flag for easy check (#49)
Former-commit-id: 06ee23ee9659834252d3cb5c3c255797e9f93b62
Diffstat (limited to 'backend/models')
| -rw-r--r-- | backend/models/models.go | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/backend/models/models.go b/backend/models/models.go index e21ba6a..f124db5 100644 --- a/backend/models/models.go +++ b/backend/models/models.go | |||
| @@ -25,7 +25,7 @@ type User struct { | |||
| 25 | CountryCode string `json:"country_code"` | 25 | CountryCode string `json:"country_code"` |
| 26 | CreatedAt time.Time `json:"created_at"` | 26 | CreatedAt time.Time `json:"created_at"` |
| 27 | UpdatedAt time.Time `json:"updated_at"` | 27 | UpdatedAt time.Time `json:"updated_at"` |
| 28 | Titles []string `json:"titles"` | 28 | Titles []Title `json:"titles"` |
| 29 | } | 29 | } |
| 30 | 30 | ||
| 31 | type UserShort struct { | 31 | type UserShort struct { |
| @@ -92,6 +92,18 @@ type Category struct { | |||
| 92 | Name string `json:"name"` | 92 | Name string `json:"name"` |
| 93 | } | 93 | } |
| 94 | 94 | ||
| 95 | type Title struct { | ||
| 96 | Name string `json:"name"` | ||
| 97 | Color string `json:"color"` | ||
| 98 | } | ||
| 99 | |||
| 100 | type Links struct { | ||
| 101 | P2SR string `json:"p2sr"` | ||
| 102 | Steam string `json:"stream"` | ||
| 103 | YouTube string `json:"youtube"` | ||
| 104 | Twitch string `json:"twitch"` | ||
| 105 | } | ||
| 106 | |||
| 95 | type RecordSP struct { | 107 | type RecordSP struct { |
| 96 | RecordID int `json:"record_id"` | 108 | RecordID int `json:"record_id"` |
| 97 | Placement int `json:"placement"` | 109 | Placement int `json:"placement"` |