feat(debug-trace): 用户列表加「开/关调试链接」开关

- UserListItem 加 debug_trace_enabled
- 操作列加开关,调 POST /admin/api/users/{id}/debug-trace(operator 守卫、二次确认,仿封禁)

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-06-10 15:31:27 +08:00
parent 45b9c7140d
commit 3c757aa838
2 changed files with 26 additions and 0 deletions
+2
View File
@@ -27,6 +27,8 @@ export interface UserListItem {
nickname: string | null;
register_channel: string;
status: string;
// 调试链接权限:开了的用户在 App 比价结果页/记录页可复制 price.shaguabijia.com 的 trace 调试链接
debug_trace_enabled: boolean;
wechat_openid: string | null;
created_at: string;
last_login_at: string;