Files
funtime_design/mock/modules.ts
2026-02-03 14:20:17 +08:00

45 lines
1.1 KiB
TypeScript

import { MockMethod } from 'vite-plugin-mock'
export default [
{
url: '/api/modules',
method: 'get',
response: () => {
return {
code: 0,
message: 'ok',
data: [
{
id: 1,
title: 'Personnel Evaluation',
description: 'Evaluate employee performance and manage reviews.',
icon: 'User',
path: '/personnel'
},
{
id: 2,
title: 'Training',
description: 'Manage training programs and track employee progress.',
icon: 'School',
path: '/training'
},
{
id: 3,
title: 'Data Dashboard',
description: 'View key performance indicators and analytics.',
icon: 'DataLine',
path: '/data-dashboard'
},
{
id: 4,
title: 'Study Task',
description: 'Manage study tasks and track completion status.',
icon: 'List',
path: '/study-task'
}
]
}
}
}
] as MockMethod[]