|
9 | 9 | "github.com/gabriel-vasile/mimetype"
|
10 | 10 | "github.com/gin-gonic/gin"
|
11 | 11 | "github.com/gofrs/uuid/v5"
|
12 |
| - "github.com/leighmacdonald/steamid/v4/steamid" |
13 | 12 | )
|
14 | 13 |
|
15 | 14 | type DemoUsecase interface {
|
@@ -43,18 +42,18 @@ type DemoMetaData struct {
|
43 | 42 | }
|
44 | 43 |
|
45 | 44 | type DemoFile struct {
|
46 |
| - DemoID int64 `json:"demo_id"` |
47 |
| - ServerID int `json:"server_id"` |
48 |
| - ServerNameShort string `json:"server_name_short"` |
49 |
| - ServerNameLong string `json:"server_name_long"` |
50 |
| - Title string `json:"title"` |
51 |
| - CreatedOn time.Time `json:"created_on"` |
52 |
| - Downloads int64 `json:"downloads"` |
53 |
| - Size int64 `json:"size"` |
54 |
| - MapName string `json:"map_name"` |
55 |
| - Archive bool `json:"archive"` // When true, will not get auto deleted when flushing old demos |
56 |
| - Stats map[steamid.SteamID]gin.H `json:"stats"` |
57 |
| - AssetID uuid.UUID `json:"asset_id"` |
| 45 | + DemoID int64 `json:"demo_id"` |
| 46 | + ServerID int `json:"server_id"` |
| 47 | + ServerNameShort string `json:"server_name_short"` |
| 48 | + ServerNameLong string `json:"server_name_long"` |
| 49 | + Title string `json:"title"` |
| 50 | + CreatedOn time.Time `json:"created_on"` |
| 51 | + Downloads int64 `json:"downloads"` |
| 52 | + Size int64 `json:"size"` |
| 53 | + MapName string `json:"map_name"` |
| 54 | + Archive bool `json:"archive"` // When true, will not get auto deleted when flushing old demos |
| 55 | + Stats map[string]gin.H `json:"stats"` |
| 56 | + AssetID uuid.UUID `json:"asset_id"` |
58 | 57 | }
|
59 | 58 |
|
60 | 59 | type DemoInfo struct {
|
|
0 commit comments