重构Salon后台单管理员与经营驾驶舱
This commit is contained in:
@@ -14,6 +14,7 @@ vi.mock('ant-design-vue', () => ({
|
||||
import adminApi, {
|
||||
adminAfterSaleApi,
|
||||
adminArtistScheduleApi,
|
||||
adminAuthApi,
|
||||
adminCampaignApi,
|
||||
adminDashboardApi,
|
||||
adminInventoryApi,
|
||||
@@ -90,7 +91,8 @@ describe('vNext API contracts', () => {
|
||||
await adminInventoryApi.saveItem({ itemName: 'Base Gel', category: 'gel', unit: 'bottle', stockQuantity: 12 })
|
||||
await adminInventoryApi.adjustStock(7, { changeType: 'IN', changeQuantity: 3, remark: 'restock' })
|
||||
await adminCampaignApi.saveCampaign({ title: 'Summer Set', scene: 'HOME', status: 1 })
|
||||
await adminDashboardApi.getAnalytics()
|
||||
await adminDashboardApi.getOverview({ date: '2026-10-25', days: 7 })
|
||||
await adminAuthApi.changePassword({ currentPassword: 'OldPass1!', newPassword: 'FreshPass2!' })
|
||||
await adminWorkbenchRegistrationApi.list()
|
||||
await adminWorkbenchRegistrationApi.approve(12)
|
||||
await adminWorkbenchRegistrationApi.reject(12, '资料不完整')
|
||||
@@ -104,7 +106,8 @@ describe('vNext API contracts', () => {
|
||||
{ method: 'post', url: '/inventory/save', params: undefined, data: { itemName: 'Base Gel', category: 'gel', unit: 'bottle', stockQuantity: 12 } },
|
||||
{ method: 'post', url: '/inventory/7/adjust', params: undefined, data: { changeType: 'IN', changeQuantity: 3, remark: 'restock' } },
|
||||
{ method: 'post', url: '/campaign/save', params: undefined, data: { title: 'Summer Set', scene: 'HOME', status: 1 } },
|
||||
{ method: 'get', url: '/dashboard/analytics', params: undefined, data: undefined },
|
||||
{ method: 'get', url: '/dashboard/overview', params: { date: '2026-10-25', days: 7 }, data: undefined },
|
||||
{ method: 'post', url: '/auth/password', params: undefined, data: { currentPassword: 'OldPass1!', newPassword: 'FreshPass2!' } },
|
||||
{ method: 'get', url: '/user/workbench/registration/list', params: undefined, data: undefined },
|
||||
{ method: 'post', url: '/user/workbench/registration/12/approve', params: undefined, data: undefined },
|
||||
{ method: 'post', url: '/user/workbench/registration/12/reject', params: undefined, data: { reason: '资料不完整' } }
|
||||
|
||||
Reference in New Issue
Block a user