You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

91 lines
688 B

/**
* 自动生成 Mock 数据
*/
import { MockMethod } from 'vite-plugin-mock';
const list = [
{
},
{
},
{
},
{
},
{
},
{
},
{
},
{
},
{
},
{
},
];
export default [
{
url: '/api/health_family/page',
method: 'get',
response: () => {
return {
code: 0,
data: {
records: list,
total: list.length,
},
};
},
},
{
url: '/api/health_family',
method: 'post',
response: () => {
return {
code: 0,
message: 'success',
};
},
},
{
url: '/api/health_family/:id',
method: 'delete',
response: () => {
return {
code: 0,
message: 'deleted',
};
},
},
] as MockMethod[];