ruoyi-plus-soybean/mock/api/auth.ts

18 lines
317 B
TypeScript
Raw Normal View History

2021-12-25 01:23:44 +08:00
import type { MockMethod } from 'vite-plugin-mock';
const apis: MockMethod[] = [
2021-12-25 01:23:44 +08:00
{
url: '/mock/getUser',
2021-12-25 01:23:44 +08:00
method: 'get',
response: (): Service.BackendServiceResult => {
2021-12-25 01:23:44 +08:00
return {
code: 200,
message: 'ok',
data: '测试mock数据'
};
}
}
];
export default apis;