Files
request/gitea/structs/attachment.go
Matheus Sampaio Queiroga a317897588
All checks were successful
Golang test / go-test (push) Successful in 14s
drop code.gitea.io/gitea
2025-04-02 22:52:43 -03:00

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"`
}