liujiandao
2024-01-11 40e540f8ca398fee68f4520dbebd6db6fe2e164c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
package request
 
import (
    "aps_crm/constvar"
    "aps_crm/model"
)
 
type AddFile struct {
    SourceType string `gorm:"source_type" json:"sourceType" form:"sourceType" binding:"required"` // 附件来源
    SourceId   int    `gorm:"source_id" json:"sourceId" form:"sourceId"  binding:"required"`      // 来源id
}
 
type UpdateFile struct {
    Id uint `json:"id"`
    model.File
}
 
type GetFileList struct {
    PageInfo
    QueryClass  constvar.FileQueryClass  `json:"queryClass" form:"queryClass"`
    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
}