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

attachment.go 809 B

1234567891011121314151617181920212223242526272829
  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. S3DownloadURL string
  20. }
  21. // EditAttachmentOptions options for editing attachments
  22. // swagger:model
  23. type EditAttachmentOptions struct {
  24. Name string `json:"name"`
  25. }