| | |
| | | } |
| | | |
| | | type UpdateFile struct { |
| | | Id int `json:"id"` |
| | | Id uint `json:"id"` |
| | | model.File |
| | | } |
| | | |
| | |
| | | KeywordType constvar.FileKeywordType `json:"keywordType" form:"keywordType"` |
| | | Keyword string `json:"keyword" form:"keyword"` |
| | | } |
| | | |
| | | type DownloadFile struct { |
| | | SourceType string `json:"sourceType" form:"sourceType" binding:"required"` // 附件来源 |
| | | SourceId int `json:"sourceId" form:"sourceId" binding:"required"` // 来源id |
| | | Id uint `json:"id" form:"id" binding:"required"` // 附件id |
| | | Key string `json:"key" form:"key" binding:"required"` // 附件存储key |
| | | } |