aboutsummaryrefslogtreecommitdiff
path: root/backend/models/models.go
blob: 994a1e74b208b2564b114e871734ba69faa086f5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package models

import (
	"mime/multipart"
	"time"
)

type User struct {
	SteamID     string    `json:"steam_id"`
	Username    string    `json:"username"`
	AvatarLink  string    `json:"avatar_link"`
	CountryCode string    `json:"country_code"`
	CreatedAt   time.Time `json:"created_at"`
	UpdatedAt   time.Time `json:"updated_at"`
}

type Record struct {
	MapID      int    `json:"map_id" binding:"required"`
	ScoreCount int    `json:"score_count" binding:"required"`
	ScoreTime  int    `json:"score_time" binding:"required"`
	IsCoop     bool   `json:"is_coop" binding:"required"`
	PartnerID  string `json:"partner_id"`
}

type ds struct {
	File *multipart.FileHeader `form:"file" binding:"required"`
}