From 05110087d1596c37c01d5fc372eaf9a54103f5da Mon Sep 17 00:00:00 2001 From: Codex Date: Mon, 10 Aug 2026 13:54:03 +0800 Subject: [PATCH] =?UTF-8?q?feat(M08-D):=20=E8=A1=A5=E5=90=8E=E5=8F=B0?= =?UTF-8?q?=E7=99=BB=E5=BD=95=E4=B8=8E=E5=8F=AF=E6=92=A4=E9=94=80=E4=BC=9A?= =?UTF-8?q?=E8=AF=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- admin/src/App.vue | 64 +++--- admin/src/api.ts | 98 +++++++- admin/src/components/AdminLoginPanel.vue | 36 +++ admin/src/components/MembersStaffPanel.vue | 22 +- admin/src/styles.css | 181 ++++++++++++++- admin/src/types.ts | 24 ++ backend/package.json | 2 +- backend/src/app.ts | 5 + backend/src/auth/admin-auth-repository.ts | 216 ++++++++++++++++++ backend/src/auth/password.ts | 46 ++++ backend/src/db/migration-runner.ts | 8 +- backend/src/routes/admin-auth.ts | 142 ++++++++++++ backend/src/server.ts | 9 + backend/tests/admin-auth.test.mjs | 87 +++++++ backend/tests/migration-contract.test.mjs | 9 + backend/tests/migration-runner.test.mjs | 6 +- .../tests/mysql-migration-roundtrip.test.mjs | 71 +++++- ...26081004_m08d_admin_password_auth.down.sql | 6 + ...2026081004_m08d_admin_password_auth.up.sql | 28 +++ ...081004_m08d_admin_password_auth.verify.sql | 25 ++ scripts/check-admin-m08-d.mjs | 22 ++ 21 files changed, 1059 insertions(+), 48 deletions(-) create mode 100644 admin/src/components/AdminLoginPanel.vue create mode 100644 backend/src/auth/admin-auth-repository.ts create mode 100644 backend/src/auth/password.ts create mode 100644 backend/src/routes/admin-auth.ts create mode 100644 backend/tests/admin-auth.test.mjs create mode 100644 database/migrations/2026081004_m08d_admin_password_auth.down.sql create mode 100644 database/migrations/2026081004_m08d_admin_password_auth.up.sql create mode 100644 database/migrations/2026081004_m08d_admin_password_auth.verify.sql diff --git a/admin/src/App.vue b/admin/src/App.vue index 23ac712..eb3c12f 100644 --- a/admin/src/App.vue +++ b/admin/src/App.vue @@ -1,6 +1,7 @@ - + +
QIPAI OPERATIONS
统一租户权限、可撤销会话与全链路审计,为日常运营提供可信工作台。
管理后台
使用租户代码和后台账号登录。