feat(M08-D): 补会员与员工用户管理

This commit is contained in:
Codex
2026-08-10 12:19:24 +08:00
parent c71e130c5c
commit 93f06d2ed6
8 changed files with 313 additions and 3 deletions
+21
View File
@@ -14,11 +14,13 @@ for (const pattern of [
"activeModule = 'orders'",
"activeModule = 'payments'",
"activeModule = 'thirdParty'",
"activeModule = 'people'",
'平台运营总览',
'StoresRoomsPanel',
'OrdersPanel',
'PaymentsPanel',
'ThirdPartyPanel',
'MembersStaffPanel',
'运营总览',
'savedToken',
'loadCleaningWorkspace'
@@ -140,6 +142,23 @@ const thirdPartyRoutes = read('backend/src/routes/third-party.ts');
assert.match(thirdPartyRoutes, /'\/admin-api\/third-party\/setup'/);
assert.match(thirdPartyRoutes, /'\/admin-api\/group-vouchers\/redeem'/);
const people = read('admin/src/components/MembersStaffPanel.vue');
for (const pattern of [
'listMembers',
'getMember',
'listStaffUsers',
'createStaffUser',
'updateStaffUser',
'resetStaffSessions',
'memberDetail',
'staffForm'
]) {
assert.match(people, new RegExp(pattern));
}
const userRoutes = read('backend/src/routes/user-management.ts');
assert.match(userRoutes, /userType: z\.enum\(\['STAFF'\]\)\.optional\(\)/);
const routes = read('backend/src/routes/business-statistics.ts');
assert.match(routes, /'\/app-api\/management\/statistics', '\/admin-api\/statistics'/);
@@ -173,6 +192,8 @@ for (const pattern of [
'.payment-tools-grid',
'.third-party-metrics',
'.settings-preview',
'.people-metrics',
'.member-detail-grid',
'@media (max-width: 980px)',
'@media (max-width: 560px)'
]) {