🎨 新增用户端文章接口&优化部分旧接口

This commit is contained in:
2025-07-31 02:40:13 +08:00
parent 9f220dc025
commit 4ce59a3090
5 changed files with 92 additions and 4 deletions

View File

@@ -16,6 +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-审核不通过
}
// TableName 文章表