code.gitea.io/gitea@v1.19.3/modules/structs/attachment.go (about)

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