feat: 定时发布系统 — Phase 5 完成
- Post ScheduledAt 字段 - Scheduler goroutine 每分钟扫描到期文章 - Create/Update 校验最短 30min 定时 - Approve 审核晚于定时则即时发布 - public 列表+空间页过滤未到期文章 - 写文章页 datetime-local 选择器(min=now+30min) - AutoMigrate 追加新表
This commit is contained in:
@ -41,6 +41,7 @@ type PostCreateRequest struct {
|
||||
ReprintProhibited bool `json:"reprint_prohibited"`
|
||||
CategoryID string `json:"category_id"`
|
||||
Tags string `json:"tags"`
|
||||
ScheduledAt string `json:"scheduled_at"`
|
||||
}
|
||||
|
||||
// PostUpdateRequest 编辑请求
|
||||
@ -54,6 +55,7 @@ type PostUpdateRequest struct {
|
||||
ReprintProhibited bool `json:"reprint_prohibited"`
|
||||
CategoryID string `json:"category_id"`
|
||||
Tags string `json:"tags"`
|
||||
ScheduledAt string `json:"scheduled_at"`
|
||||
}
|
||||
|
||||
// PostRejectRequest 退回请求
|
||||
|
||||
Reference in New Issue
Block a user