openapi: generate

This commit is contained in:
2024-12-30 19:15:16 -08:00
parent bc8b7b68d2
commit 0794e7ba46
13 changed files with 1401 additions and 684 deletions

View File

@@ -4,6 +4,7 @@ package api
import (
"fmt"
"time"
)
func (s *ErrorStatusCode) Error() string {
@@ -254,6 +255,35 @@ func (o OptString) Or(d string) string {
return d
}
// Ref: #/components/schemas/ReleaseInfo
type ReleaseInfo struct {
SubmissionID int64 `json:"SubmissionID"`
Date time.Time `json:"Date"`
}
// GetSubmissionID returns the value of SubmissionID.
func (s *ReleaseInfo) GetSubmissionID() int64 {
return s.SubmissionID
}
// GetDate returns the value of Date.
func (s *ReleaseInfo) GetDate() time.Time {
return s.Date
}
// SetSubmissionID sets the value of SubmissionID.
func (s *ReleaseInfo) SetSubmissionID(val int64) {
s.SubmissionID = val
}
// SetDate sets the value of Date.
func (s *ReleaseInfo) SetDate(val time.Time) {
s.Date = val
}
// ReleaseSubmissionsCreated is response for ReleaseSubmissions operation.
type ReleaseSubmissionsCreated struct{}
// Ref: #/components/schemas/Script
type Script struct {
ID int64 `json:"ID"`