2020-11-14 20:34:46 +08:00
|
|
|
|
import { MockMethod } from 'vite-plugin-mock';
|
|
|
|
|
import { resultSuccess } from '../_util';
|
|
|
|
|
|
|
|
|
|
const userInfo = {
|
2020-11-15 12:47:59 +08:00
|
|
|
|
name: 'Vben',
|
2020-11-14 20:34:46 +08:00
|
|
|
|
userid: '00000001',
|
2020-11-18 22:41:59 +08:00
|
|
|
|
email: 'test@gmail.com',
|
2020-11-14 20:34:46 +08:00
|
|
|
|
signature: '海纳百川,有容乃大',
|
|
|
|
|
introduction: '微笑着,努力着,欣赏着',
|
|
|
|
|
title: '交互专家',
|
2020-11-18 22:41:59 +08:00
|
|
|
|
group: '某某某事业群-某某平台部-某某技术部-UED',
|
2020-11-14 20:34:46 +08:00
|
|
|
|
tags: [
|
|
|
|
|
{
|
|
|
|
|
key: '0',
|
|
|
|
|
label: '很有想法的',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
key: '1',
|
|
|
|
|
label: '专注设计',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
key: '2',
|
|
|
|
|
label: '辣~',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
key: '3',
|
|
|
|
|
label: '大长腿',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
key: '4',
|
|
|
|
|
label: '川妹子',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
key: '5',
|
|
|
|
|
label: '海纳百川',
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
notifyCount: 12,
|
|
|
|
|
unreadCount: 11,
|
|
|
|
|
country: 'China',
|
2020-11-18 22:41:59 +08:00
|
|
|
|
address: 'Xiamen City 77',
|
2020-11-15 13:46:16 +08:00
|
|
|
|
phone: '0592-268888888',
|
2020-11-14 20:34:46 +08:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export default [
|
|
|
|
|
{
|
2021-03-11 01:22:10 +08:00
|
|
|
|
url: '/basic-api/account/getAccountInfo',
|
2020-11-14 20:34:46 +08:00
|
|
|
|
timeout: 1000,
|
|
|
|
|
method: 'get',
|
|
|
|
|
response: () => {
|
|
|
|
|
return resultSuccess(userInfo);
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
] as MockMethod[];
|