All checks were successful
Golang test / go-test (push) Successful in 14s
24 lines
559 B
Go
24 lines
559 B
Go
// Copyright 2017 The Gitea Authors. All rights reserved.
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
package structs
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
// Attachment a generic attachment
|
|
type Attachment struct {
|
|
ID int `json:"id"`
|
|
Name string `json:"name"`
|
|
Size int `json:"size"`
|
|
DownloadCount int `json:"download_count"`
|
|
Created time.Time `json:"created_at"`
|
|
UUID string `json:"uuid"`
|
|
DownloadURL string `json:"browser_download_url"`
|
|
}
|
|
|
|
type EditAttachmentOptions struct {
|
|
Name string `json:"name"`
|
|
}
|