feat(admin): user management - list + high-risk delete with full cascade (lsky, user db, attachments, auth)

This commit is contained in:
root
2026-10-17 13:37:15 +08:00
parent 68043d309e
commit 5452611a63
20 changed files with 181 additions and 55 deletions
+2
View File
@@ -211,6 +211,8 @@ export const adminCreateInvite = (code: string, remark: string, baseUrl?: string
adminCall<{ code: string }>('/admin/invites/create', { code, remark }, baseUrl);
export const adminUpdateInvite = (id: number, patch: { remark?: string; valid?: boolean }, baseUrl?: string) =>
adminCall<{ id: number }>('/admin/invites/update', { id, ...patch }, baseUrl);
export const adminDeleteUser = (userId: number | string, baseUrl?: string) =>
adminCall<{ ok: true; username: string; remote_deleted: number }>('/admin/users/delete', { user_id: userId }, baseUrl);
export const adminDeleteInvite = (id: number, baseUrl?: string) =>
adminCall<{ deleted: number }>('/admin/invites/delete', { id }, baseUrl);