From 6e2e95abafaecb893595d9cca142330965d97e70 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Tue, 26 Nov 2024 14:42:22 -0800 Subject: [PATCH] extend submission object --- internal/model/submission.go | 24 ++++++++++++------------ openapi.yaml | 20 ++++++++++++++++++++ 2 files changed, 32 insertions(+), 12 deletions(-) diff --git a/internal/model/submission.go b/internal/model/submission.go index dd8c374..fdc2422 100644 --- a/internal/model/submission.go +++ b/internal/model/submission.go @@ -3,16 +3,16 @@ package model import "time" type Submission struct { - ID int64 - DisplayName string - Creator string - GameID int32 - Date time.Time - Submitter int64 // UserID - AssetID int64 - AssetVersion int64 - Completed bool - Type int32 // 1=New 2=Fix - TargetAssetID int64 // where to upload map fix - StatusID int32 + ID int64 + DisplayName string + Creator string + GameID int32 + Date time.Time + Submitter int64 // UserID + AssetID int64 + AssetVersion int64 + Completed bool + SubmissionType int32 // 1=New 2=Fix + TargetAssetID int64 // where to upload map fix + StatusID int32 } diff --git a/openapi.yaml b/openapi.yaml index bd56602..3243d1c 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -213,6 +213,26 @@ components: Date: type: integer format: int64 + Submitter: + type: integer + format: int64 + AssetID: + type: integer + format: int64 + AssetVersion: + type: integer + format: int64 + Completed: + type: boolean + SubmissionType: + type: integer + format: int32 + TargetAssetID: + type: integer + format: int64 + StatusID: + type: integer + format: int32 SubmissionFilter: type: object properties: