feat(nsfw): 支持管理 C 端账号成人内容偏好

- src/api/access.ts: 补充 C 端账号 NSFW 偏好字段与中文注释
- src/views/digital/users.vue: 展示开关状态,创建默认开启,编辑可保存账号选择
- README.md: 说明前后台共用偏好及配套发布要求
This commit is contained in:
湛兮
2026-10-27 20:18:16 +08:00
parent 0b7c1cba24
commit 98ddd137e0
3 changed files with 54 additions and 8 deletions
+2
View File
@@ -1232,6 +1232,8 @@ export type DigitalUser = {
username: string;
displayName: string;
status: "ACTIVE" | "INACTIVE";
/** 账号未保存内容偏好时默认开启,后端在生成时读取实际值。 */
nsfwEnabled?: boolean;
createdAt: string;
lastLoginAt: string | null;
conversations: number;