38 lines
909 B
TypeScript
38 lines
909 B
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'
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
] as MockMethod[]
|