mirror of
https://codeberg.org/davrot/forgejo.git
synced 2025-05-20 14:00:04 +02:00
Implement external assets
This commit is contained in:
parent
2e234300a2
commit
a61e7c7a39
22 changed files with 826 additions and 119 deletions
|
@ -18,10 +18,14 @@ type Attachment struct {
|
|||
Created time.Time `json:"created_at"`
|
||||
UUID string `json:"uuid"`
|
||||
DownloadURL string `json:"browser_download_url"`
|
||||
// Enum: attachment,external
|
||||
Type string `json:"type"`
|
||||
}
|
||||
|
||||
// EditAttachmentOptions options for editing attachments
|
||||
// swagger:model
|
||||
type EditAttachmentOptions struct {
|
||||
Name string `json:"name"`
|
||||
// (Can only be set if existing attachment is of external type)
|
||||
DownloadURL string `json:"browser_download_url"`
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue