🎨 新增批量上传文章功能
This commit is contained in:
@@ -15,3 +15,15 @@ type GetList struct {
|
||||
type DeleteIds struct {
|
||||
Ids []int `json:"ids" form:"ids" binding:"required"`
|
||||
}
|
||||
|
||||
type BulkUpload struct {
|
||||
Files []string `json:"files" form:"files" binding:"required"`
|
||||
Title string `json:"title" form:"title" binding:"required"`
|
||||
Desc string `json:"desc" form:"desc" binding:"required"`
|
||||
Price float64 `json:"price" form:"price" binding:"required"` // 价格,单位分
|
||||
// 分类ID
|
||||
CategoryId int `json:"categoryId" form:"categoryId" binding:"required"` // 分类ID
|
||||
// 发布时间
|
||||
PublishTime string `json:"publishTime" form:"publishTime"` // 发布时间
|
||||
IsFree *int `json:"isFree" form:"isFree"` // 是否免费
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user