theme v1
This commit is contained in:
@@ -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 注释)。
|
||||
|
||||
Reference in New Issue
Block a user