account.ts 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. import { MockMethod } from 'vite-plugin-mock';
  2. import { resultSuccess } from '../_util';
  3. const userInfo = {
  4. name: 'Vben',
  5. userid: '00000001',
  6. email: 'antdesign@alipay.com',
  7. signature: '海纳百川,有容乃大',
  8. introduction: '微笑着,努力着,欣赏着',
  9. title: '交互专家',
  10. group: '蚂蚁集团-某某某事业群-某某平台部-某某技术部-UED',
  11. tags: [
  12. {
  13. key: '0',
  14. label: '很有想法的',
  15. },
  16. {
  17. key: '1',
  18. label: '专注设计',
  19. },
  20. {
  21. key: '2',
  22. label: '辣~',
  23. },
  24. {
  25. key: '3',
  26. label: '大长腿',
  27. },
  28. {
  29. key: '4',
  30. label: '川妹子',
  31. },
  32. {
  33. key: '5',
  34. label: '海纳百川',
  35. },
  36. ],
  37. notifyCount: 12,
  38. unreadCount: 11,
  39. country: 'China',
  40. province: {
  41. label: '浙江省',
  42. value: '330000',
  43. },
  44. city: {
  45. label: '杭州市',
  46. value: '330100',
  47. },
  48. address: '西湖区工专路 77 号',
  49. phone: '0752-268888888',
  50. };
  51. export default [
  52. {
  53. url: '/api/account/getAccountInfo',
  54. timeout: 1000,
  55. method: 'get',
  56. response: () => {
  57. return resultSuccess(userInfo);
  58. },
  59. },
  60. ] as MockMethod[];