This commit is contained in:
tamakyi
2026-10-19 15:23:11 +08:00
parent 86dc8384bc
commit e9fba8b9ed
84 changed files with 34468 additions and 5386 deletions
+7
View File
@@ -26,6 +26,13 @@ type UpdateProfile struct {
Language string `form:"language"`
}
// UpdateProfileTheme 主题外观。空串表示跟随站点默认主题;
// 取值在白名单之外时保存被拒绝(见 route/user.UpdateTheme),
// 这样箱主不会「选了个不存在的主题,然后看起来什么都没变」。
type UpdateProfileTheme struct {
Theme string `valid:"maxlen:32" label:"主题" msg:"profile.theme.invalid"`
}
// UpdateHarassment 仅「允许注册用户向我提问」开关(防骚扰类型)。
// 全局屏蔽词为独立入口 UpdateBlockWords:二者分处不同设置面板保存,
// 若仍共用一个结构体会互相覆盖对方字段(见 route/user/harassment.go 注释)。