import { MockMethod } from 'vite-plugin-mock' import { resultPageSuccess } from './_util' export default [ { url: '/api/v1/apis', method: 'get', response: () => { return resultPageSuccess({ page: 1, limit: 10, total: 36, data: [ { id: 1, path: '/users', method: 'GET', description: '用户列表', createdAt: 1682329175, updatedAt: 1682329175 }, { id: 2, path: '/user/\\d+', method: 'GET', description: '用户详情', createdAt: 1682329175, updatedAt: 1682329175 }, { id: 3, path: '/user', method: 'POST', description: '添加用户', createdAt: 1682329175, updatedAt: 1682329175 }, { id: 4, path: '/user/\\d+', method: 'PUT', description: '编辑用户', createdAt: 1682329175, updatedAt: 1682329175 }, { id: 5, path: '/user/\\d+/enable', method: 'PUT', description: '启用用户', createdAt: 1682329175, updatedAt: 1682329175 }, { id: 6, path: '/user/\\d+/disable', method: 'PUT', description: '禁用用户', createdAt: 1682329175, updatedAt: 1682329175 }, { id: 7, path: '/user/\\d+', method: 'DELETE', description: '删除用户', createdAt: 1682329175, updatedAt: 1682329175 }, { id: 8, path: '/user', method: 'GET', description: '通过手机查询用户', createdAt: 1682329175, updatedAt: 1682329175 }, { id: 9, path: '/roles', method: 'GET', description: '角色列表', createdAt: 1682329175, updatedAt: 1682329175 }, { id: 10, path: '/role/\\d+', method: 'GET', description: '角色详情', createdAt: 1682329175, updatedAt: 1682329175 } ] }) } } ] as MockMethod[]