import Mock from 'mockjs'

Mock.mock(`${import.meta.env.VITE_APP_BASE_URL}/project/projectType`, {
  code: 200,
  'data|1-100': [
    {
      "id|+1": 0,
      cname: '@cname',
      ename: '@name',
      'code|+1': 'code001',
      'bizunits': [],
      'effect_time': '@date',
      'lose_effect_time': '@date',
      'detail': ''
    }
  ],
  msg: null,
  success: true
})

Mock.mock(`${import.meta.env.VITE_APP_BASE_URL}/project/projectMaster`, {
  code: 200,
  'data|1-10': [
    {
      "id|+1": 0,
      bizUnit: '研发事业部',
      classificationIds: '',
      classificationName: 'code001',
      createTime: '@date',
      'isEnabled|1': false,
      name: '@cname',
      notes: null,
      'templatePhases|1-5': [
        {
          data: null,
          children: [],
          displayShow: null,
          isLeaf: true,
          'id|+1': 0,
          label: '@cname',
          'selected|1': false,
          text: '',
          title: '',
          value: ''
        }
      ]
    }
  ],
  msg: null,
  success: true
})
