ruoyi-plus-soybean/mock/api/auth.ts
2021-12-25 01:30:45 +08:00

17 lines
347 B
TypeScript

import type { MockMethod } from 'vite-plugin-mock';
import type { BackendServiceResult } from '@/interface';
export default [
{
url: '/api/getUser',
method: 'get',
response: (): BackendServiceResult => {
return {
code: 200,
message: 'ok',
data: '测试mock数据'
};
}
}
] as MockMethod[];