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
|
}
|