From 24f3c154665f777e985d29263ed99a7b968949cc Mon Sep 17 00:00:00 2001 From: Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> Date: Thu, 12 Jan 2023 11:49:23 +0300 Subject: demo to google drive is worknig properly (#20) --- backend/models/models.go | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'backend/models/models.go') diff --git a/backend/models/models.go b/backend/models/models.go index c49eaeb..994a1e7 100644 --- a/backend/models/models.go +++ b/backend/models/models.go @@ -1,6 +1,9 @@ package models -import "time" +import ( + "mime/multipart" + "time" +) type User struct { SteamID string `json:"steam_id"` @@ -10,3 +13,15 @@ type User struct { 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"` +} -- cgit v1.2.3