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 781B

12345678910111213141516171819202122232425262728
  1. // Copyright 2017 The Gitea Authors. All rights reserved.
  2. // Use of this source code is governed by a MIT-style
  3. // license that can be found in the LICENSE file.
  4. package structs // import "code.gitea.io/gitea/modules/structs"
  5. import (
  6. "time"
  7. )
  8. // Attachment a generic attachment
  9. // swagger:model
  10. type Attachment struct {
  11. ID int64 `json:"id"`
  12. Name string `json:"name"`
  13. Size int64 `json:"size"`
  14. DownloadCount int64 `json:"download_count"`
  15. // swagger:strfmt date-time
  16. Created time.Time `json:"created_at"`
  17. UUID string `json:"uuid"`
  18. DownloadURL string `json:"browser_download_url"`
  19. }
  20. // EditAttachmentOptions options for editing attachments
  21. // swagger:model
  22. type EditAttachmentOptions struct {
  23. Name string `json:"name"`
  24. }