30 lines
1.1 KiB
Go
30 lines
1.1 KiB
Go
package request
|
|
|
|
import "git.echol.cn/loser/lckt/model/common/request"
|
|
|
|
type GetList struct {
|
|
request.PageInfo
|
|
Title string `json:"title" form:"title"` // 文章标题
|
|
// 分类ID
|
|
CategoryId int `json:"categoryId" form:"categoryId"` // 分类ID
|
|
TeacherId int `json:"teacherId" form:"teacherId"` // 讲师ID
|
|
Status int `json:"status" form:"status"` // 状态 0-草稿 1-已发布 2-待审核 3-审核不通过
|
|
UserId uint `json:"userId" form:"userId"` // 用户ID
|
|
}
|
|
|
|
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"` // 是否免费
|
|
}
|