mirror of
https://github.com/go-gitea/gitea.git
synced 2025-09-26 07:44:26 -04:00
Upgrade golang to 1.25.1 and add descriptions for the swagger structs' fields (#35418)
This commit is contained in:
@@ -10,18 +10,26 @@ import (
|
||||
// Attachment a generic attachment
|
||||
// swagger:model
|
||||
type Attachment struct {
|
||||
ID int64 `json:"id"`
|
||||
Name string `json:"name"`
|
||||
Size int64 `json:"size"`
|
||||
DownloadCount int64 `json:"download_count"`
|
||||
// ID is the unique identifier for the attachment
|
||||
ID int64 `json:"id"`
|
||||
// Name is the filename of the attachment
|
||||
Name string `json:"name"`
|
||||
// Size is the file size in bytes
|
||||
Size int64 `json:"size"`
|
||||
// DownloadCount is the number of times the attachment has been downloaded
|
||||
DownloadCount int64 `json:"download_count"`
|
||||
// swagger:strfmt date-time
|
||||
Created time.Time `json:"created_at"`
|
||||
UUID string `json:"uuid"`
|
||||
DownloadURL string `json:"browser_download_url"`
|
||||
// Created is the time when the attachment was uploaded
|
||||
Created time.Time `json:"created_at"`
|
||||
// UUID is the unique identifier for the attachment file
|
||||
UUID string `json:"uuid"`
|
||||
// DownloadURL is the URL to download the attachment
|
||||
DownloadURL string `json:"browser_download_url"`
|
||||
}
|
||||
|
||||
// EditAttachmentOptions options for editing attachments
|
||||
// swagger:model
|
||||
type EditAttachmentOptions struct {
|
||||
// Name is the new filename for the attachment
|
||||
Name string `json:"name"`
|
||||
}
|
||||
|
Reference in New Issue
Block a user