import { resultSuccess } from '../_util';

const cameraList = [
  {
    id: 1,
    name: '一级危险点',
    children: [
      { id: 1, name: '子项一' },
      { id: 2, name: '子项二' },
      { id: 3, name: '子项三' },
    ],
  },
  { id: 2, name: '二级危险点' },
  { id: 3, name: '三级危险点', children: [{ id: 1, name: '子项三' }] },
  { id: 4, name: '四级危险点' },
];

export default [
  {
    url: '/eye_api_bak/api/admin/camera/getCameraList',
    timeout: 1000,
    method: 'get',
    response: () => {
      return resultSuccess(cameraList);
    },
  },
];
