🎨 用户端新增文章更新和删除接口
This commit is contained in:
@@ -16,7 +16,7 @@ type Article struct {
|
||||
IsFree int `json:"isFree" gorm:"comment:是否免费;default:0"` // 是否免费 0-否 1-是
|
||||
// 分类ID
|
||||
CategoryId int `json:"categoryId" gorm:"comment:分类ID"`
|
||||
Status int `json:"status" gorm:"comment:状态;default:1"` // 状态 0-草稿 1-已发布 2-待审核 3-审核不通过
|
||||
Status int `json:"status" gorm:"comment:状态 1-已发布 2-待审核 3-审核不通过;default:2"` // 状态 0-草稿 1-已发布 2-待审核 3-审核不通过
|
||||
}
|
||||
|
||||
// TableName 文章表
|
||||
|
@@ -1,5 +1,7 @@
|
||||
package vo
|
||||
|
||||
import "git.echol.cn/loser/lckt/model/app/vo"
|
||||
|
||||
type ArticleListVo struct {
|
||||
ID int `json:"id" gorm:"comment:文章ID"`
|
||||
Title string `json:"title" gorm:"comment:文章标题"`
|
||||
@@ -26,3 +28,8 @@ type ArticleVo struct {
|
||||
IsFree int `json:"isFree" gorm:"comment:是否免费;default:0"` // 是否免费 0-否 1-是
|
||||
IsBuy int `json:"isBuy" gorm:"comment:是否购买;default:0"` // 是否购买 0-否 1-是
|
||||
}
|
||||
|
||||
type ArticleTeacherVo struct {
|
||||
TeacherInfo vo.TeacherInfo
|
||||
ArticleList []ArticleListVo `json:"articleList" gorm:"comment:文章列表"`
|
||||
}
|
||||
|
Reference in New Issue
Block a user