feat: 分类系统 + 标签系统 — Phase 4 完成
分类:Model/Repo/Service/Controller + 管理后台树形页面 + 首页导航栏
标签:Model/Repo/Service/Controller + /tags/{slug} 落地页 + 写文章页输入
Post 加 CategoryID,Create/Update 支持分类和标签
SQL 迁移含 categories/tags/post_tags 表及预设未分类
This commit is contained in:
@ -39,6 +39,8 @@ type PostCreateRequest struct {
|
||||
ReprintSource string `json:"reprint_source"`
|
||||
Declaration string `json:"declaration"`
|
||||
ReprintProhibited bool `json:"reprint_prohibited"`
|
||||
CategoryID string `json:"category_id"`
|
||||
Tags string `json:"tags"`
|
||||
}
|
||||
|
||||
// PostUpdateRequest 编辑请求
|
||||
@ -50,6 +52,8 @@ type PostUpdateRequest struct {
|
||||
ReprintSource string `json:"reprint_source"`
|
||||
Declaration string `json:"declaration"`
|
||||
ReprintProhibited bool `json:"reprint_prohibited"`
|
||||
CategoryID string `json:"category_id"`
|
||||
Tags string `json:"tags"`
|
||||
}
|
||||
|
||||
// PostRejectRequest 退回请求
|
||||
|
||||
Reference in New Issue
Block a user