fix/various fixes

This commit is contained in:
Kevin
2026-03-20 15:15:35 +08:00
parent 7f57f96c25
commit 7317bf10cd
112 changed files with 3790 additions and 2242 deletions

View File

@@ -47,3 +47,22 @@ class FeedbackResponse(BaseModel):
id: str
message: str
# 与前端约定:请求体必须携带该固定口令,防止误触清空。
PURGE_USER_DATA_CONFIRMATION = "我确认永久删除我的全部回忆与对话数据"
class PurgeUserDataRequest(BaseModel):
"""清空账号下全部业务数据(保留登录账号与手机号等身份字段)。"""
confirmation: str = Field(
...,
min_length=1,
description=f"必须为「{PURGE_USER_DATA_CONFIRMATION}",
)
class PurgeUserDataResponse(BaseModel):
success: bool
message: str