import Mock from 'mockjs'
import { MockMethod } from 'vite-plugin-mock'

const mockMethodTen: MockMethod[] = [
  {
    url: '/mock/api/ten',
    method: 'get',
    timeout: 1000,
    response: () => ({
      code: '0',
      ...Mock.mock({
        data: [
          {
            name: '签证管理',
            check: false,
            color: '#1481e0',
            children: [
              { name: '我的证书', check: false, icon: 'CertMine', num: 2 },
              { name: '证书审核', check: false, icon: 'CertVerify', num: 167 },
              { name: '证书缓审', check: false, icon: 'CertDeferredReview', num: 51 },
              { name: '证书制证', check: false, icon: 'CertMake', num: 533 },
              { name: '证书归档', check: false, icon: 'CertFile', num: 605 }
            ]
          },
          {
            name: '企业基本信息管理',
            check: false,
            children: [{ name: '企业所属机关调转确认', check: false, icon: 'CompanyTransfer', num: 2 }],
            color: '#ff9228'
          },
          {
            name: '原产地预先核实',
            check: false,
            color: '#f57171',
            children: [
              { name: '原产地预选核实', check: false, icon: 'OriginPreSelect', num: 2 },
              { name: '白名单审核', check: false, icon: 'WhitelistReview', num: 2 }
            ]
          },
          {
            name: '经核准出口商管理',
            check: false,
            color: '#00b4b4',
            children: [
              { name: '经核准出口商经办', check: false, icon: 'ExporterHandle', num: 167 },
              { name: '经核准出口商初审', check: false, icon: 'ExportVerify', num: 51 },
              { name: '经核准出口商复审', check: false, icon: 'ExporterReview', num: 533 },
              { name: '经核准出口商信息查询与管理', check: false, icon: 'ExportInfoManage', num: 605 }
            ]
          },
          {
            name: '签证管理',
            check: false,
            color: '#1481e0',
            children: [
              { name: '我的证书', check: false, icon: 'CertMine', num: 2 },
              { name: '证书审核', check: false, icon: 'CertVerify', num: 167 },
              { name: '证书缓审', check: false, icon: 'CertDeferredReview', num: 51 },
              { name: '证书制证', check: false, icon: 'CertMake', num: 533 },
              { name: '证书归档', check: false, icon: 'CertFile', num: 605 }
            ]
          },
          {
            name: '企业基本信息管理',
            check: false,
            children: [{ name: '企业所属机关调转确认', check: false, icon: 'CompanyTransfer', num: 2 }],
            color: '#ff9228'
          },
          {
            name: '原产地预先核实',
            check: false,
            color: '#f57171',
            children: [
              { name: '原产地预选核实', check: false, icon: 'OriginPreSelect', num: 2 },
              { name: '白名单审核', check: false, icon: 'WhitelistReview', num: 2 }
            ]
          },
          {
            name: '经核准出口商管理',
            check: false,
            color: '#00b4b4',
            children: [
              { name: '经核准出口商经办', check: false, icon: 'ExporterHandle', num: 167 },
              { name: '经核准出口商初审', check: false, icon: 'ExportVerify', num: 51 },
              { name: '经核准出口商复审', check: false, icon: 'ExporterReview', num: 533 },
              { name: '经核准出口商信息查询与管理', check: false, icon: 'ExportInfoManage', num: 605 }
            ]
          }
        ]
      })
    })
  }
]

export default mockMethodTen
