import Mock from 'mockjs'

Mock.mock(`${import.meta.env.VITE_APP_BASE_URL}/department/index`, {
  code: 200,
  'data|1-10': [
    {
      "id|+1": 0,
      cname: '@cname',
      ename: '@name',
      'type|+1': 0 ,
      'code|+1': 'code001',
      'children|1-10': [
        {
          "id|+1": 10,
          cname: '@cname',
          ename: '@name',
          'type|+1': 0,
          'code|+1': 'code002',
          'children|1-10': [
            {
              "id|+1": 20,
              cname: '@cname',
              ename: '@name',
              'type|+1': 0,
              'code|+1': 'code003',
            }
          ]
        }
      ]
    }
  ],
  msg: null,
  success: true
})

Mock.mock(`${import.meta.env.VITE_APP_BASE_URL}/department/bizunit`, {
  code: 200,
  'data|1-10': [
    {
      "id|+1": 0,
      cname: '@cname',
      ename: '@name',
      'depart|+1': '' ,
      'product': '',
      'code|+1': 'code001'
    }
  ],
  msg: null,
  success: true
})
