You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

attachment.go 709B

123456789101112131415161718192021222324252627
  1. // Copyright 2017 The Gitea Authors. All rights reserved.
  2. // SPDX-License-Identifier: MIT
  3. package structs // import "code.gitea.io/gitea/modules/structs"
  4. import (
  5. "time"
  6. )
  7. // Attachment a generic attachment
  8. // swagger:model
  9. type Attachment struct {
  10. ID int64 `json:"id"`
  11. Name string `json:"name"`
  12. Size int64 `json:"size"`
  13. DownloadCount int64 `json:"download_count"`
  14. // swagger:strfmt date-time
  15. Created time.Time `json:"created_at"`
  16. UUID string `json:"uuid"`
  17. DownloadURL string `json:"browser_download_url"`
  18. }
  19. // EditAttachmentOptions options for editing attachments
  20. // swagger:model
  21. type EditAttachmentOptions struct {
  22. Name string `json:"name"`
  23. }