清除业务契约双读:抽奖/草稿/时间戳/邮件只认新格式,并删除 legacy 短代码改写。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-09-23 02:20:42 +08:00
parent 3b550f2124
commit 96314893bb
9 changed files with 23 additions and 281 deletions

View File

@@ -14,9 +14,9 @@ import (
"gorm.io/gorm"
)
// 兼容旧引用:默认体积/个数(实际限额读 SettingService)
// 附件默认体积/个数上限(实际限额读 SettingService;此处供校验与测试引用)
const (
FileMaxBytes = 20 << 20 // 默认 20 MiB(缺省配置)
FileMaxBytes = 20 << 20 // 默认 20 MiB
MaxPostAttachments = 10
)