const list = [
  {
    'deptName': '顶级',
    'pName': '',
    'num': 1,
    'name': '超级管理员',
    'deptid': '0',
    'pid': '0',
    'id': 1,
    'version': 1,
    'tips': 'administrator'
  },
  {
    'deptName': '高压管网分公司',
    'pName': '超级管理员',
    'num': 2,
    'name': '高压管网分公司系统管理员',
    'deptid': '24',
    'pid': 1,
    'id': 2,
    'version': '',
    'tips': 'rqadmin'
  }
]
module.exports = [
  {
    url: 'sys/dict/code/dataScopeType',
    type: 'get',
    response: _ => {
      return {
        code: 200,
        message: 'success',
        data: [
          {
            'name': '所有数据',
            'id': '160',
            'value': '1'
          },
          {
            'name': '所属及下级部门',
            'id': '161',
            'value': '2'
          },
          {
            'name': '本部门',
            'id': '162',
            'value': '3'
          },
          {
            'name': '自定义',
            'id': '163',
            'value': '4'
          }
        ]
      }
    }
  },
  {
    url: 'sys/role/treeByRoleId',
    type: 'get',
    response: _ => {
      return {
        code: 200,
        message: 'success',
        data: [
          {
            'checked': true,
            'code': '',
            'id': '0',
            'name': '根组织',
            'open': false,
            'pCodes': '',
            'pid': '-1',
            'value': ''
          },
          {
            'checked': false,
            'code': '',
            'id': '1429999819396530178',
            'name': '203',
            'open': false,
            'pCodes': '',
            'pid': '0',
            'value': ''
          }
        ]
      }
    }
  },
  {
    url: 'sys/role/treeByUserId',
    type: 'get',
    response: _ => {
      return {
        code: 200,
        message: 'success',
        data: [{ 'id': 1, 'pid': '0', 'name': '超级管理员', 'open': true, 'checked': false }]
      }
    }
  },
  {
    url: 'sys/role/add',
    type: 'post',
    response: _ => {
      return {
        code: 200,
        message: 'success',
        data: {}
      }
    }
  },
  {
    url: 'sys/role/update',
    type: 'post',
    response: _ => {
      return {
        code: 200,
        message: 'success',
        data: {}
      }
    }
  },
  {
    url: '/sys/role/delete',
    type: 'post',
    response: _ => {
      return {
        code: 200,
        message: 'success',
        data: {}
      }
    }
  },
  {
    url: '/sys/role/funcAuthor',
    type: 'post',
    response: _ => {
      return {
        code: 200,
        message: 'success',
        data: {}
      }
    }
  },
  {
    url: '/sys/role/dataAuthor',
    type: 'post',
    response: _ => {
      return {
        code: 200,
        message: 'success',
        data: {}
      }
    }
  },
  {
    url: 'sys/role/tree',
    type: 'get',
    response: _ => {
      return {
        code: 200,
        message: 'ok',
        data: {
          list: [
            { 'id': 1, 'pid': '0', 'name': '超级管理员' }
          ]
        }
      }
    }
  },
  {
    url: '/sys/role/list',
    type: 'get',
    response: _ => {
      return {
        code: 200,
        data: list
      }
    }
  },
  {
    url: '/sys/dict/code/dataScopeType',
    type: 'get',
    response: _ => {
      return {
        code: 200,
        message: 'success',
        data: [
          {
            'name': '全部',
            'id': '55',
            'value': '03'
          },
          {
            'name': '本部门',
            'id': '56',
            'value': '04'
          },
          {
            'name': '自定义',
            'id': '57',
            'value': '04'
          }
        ]
      }
    }
  }
]
