// eslint-disable-next-line no-unused-vars
const adminMenu = [
  {
    'menuCode': 'SystemMgr',
    'name': '资源管理',
    'children': [
      {
        'menuCode': 'SysMgr',
        'name': '系统管理'
      },
      {
        'menuCode': 'MenuMgr',
        'name': '菜单管理'
      },
      {
        'menuCode': 'OrgMgr',
        'name': '组织管理'
      },
      {
        'menuCode': 'UserMgr',
        'name': '人员管理'
      },
      {
        'menuCode': 'RoleMgr',
        'name': '角色管理'
      },
      {
        'menuCode': 'AuthMgr',
        'name': '权限管理'
      }
    ]
  },
  {
    'menuCode': 'TenantMgr',
    'name': '租户管理',
    'children': [
      {
        'menuCode': 'TenantMgrTenant',
        'name': '租户列表'
      },
      {
        'menuCode': 'TenantAuth',
        'name': '租户权限'
      },
      {
        'menuCode': 'TenantAccount',
        'name': '管理员账号'
      }
    ]
  }
]
export default [
  // 登录
  {
    url: '/cc/account/loginByAccountPwd',
    type: 'post',
    response: _ => {
      return {
        code: 200,
        data: {
          token: '00273486A8DBEEA016205E6E65CAE2F18A341D2847ED53676E2D9FE3B64271251F42821B5B79B28501B934623D20272600F6C0C0996A53CF2893ACD5B65110B129AF58B6B9835B0BE50B5FBD91AA7F11FB43EA9DA729ADBA47DE590369CB20A92E6915CCB8587EDCDC418435323E92CD92653F42E389E7E04044BC45B68F1FC80AE9A0CD7656A083F0E30BB33E408326CE329A81CC80F5D54F3887B7EC454A30C881CFFB853721D6C4112123DCC548D67280D7F23EA91CA7C5037022FBB6726FBE8ED7FE12ECB0549C84862D3265F19B3D83F50CCADEE830F854FC8410C524F65ACC23AEE09AFEE088B1861C59CD828F9AA2DB79B8FC3A2028A6B39AF6F927740FC9E5488765038FCCB32935081A974F'
        },
        responseTime: 1579403560634,
        message: 'success'
      }
    }
  },
  // 登出
  {
    url: '/cc/account/logout',
    type: 'post',
    response: _ => {
      return {
        code: 200,
        responseTime: 1579403560634,
        message: 'success'
      }
    }
  },
  // 获取用户菜单列表
  {
    url: '/cc/index/userMenuTree',
    type: 'get',
    response: _ => {
      return {
        code: 200,
        data: [
          {
            id: 1,
            systemCode: 'cc',
            systemName: 'cc',
            url: 'http://192.168.31.248',
            devUrl: '9528',
            status: 0,
            menuList: [
              {
                'menuCode': 'ObjectMgr',
                'name': '物管理',
                'children': [
                  {
                    'menuCode': 'ObjectModel',
                    'name': '物模型'
                  },
                  {
                    'menuCode': 'DatasetMgrMine',
                    'name': '物实例'
                  }
                ]
              },
              {
                'menuCode': 'ObjectVisible',
                'name': '物可视',
                'children': [
                  {
                    'menuCode': 'DashBoard',
                    'name': '仪表盘'
                  }
                ]
              }
            ]
          }
        ],
        responseTime: 1579403560634,
        message: 'success'
      }
    }
  },
  // 获取用户按键列表
  {
    url: '/cc/index/userMenuCodeList',
    type: 'get',
    response: _ => {
      return {
        code: 200,
        data: ['OrgMgr_add', 'UserMgr_add', 'SysMgr_add', 'SysMgr_info', 'MenuMgr_delete', 'OrgMgr_update', 'MenuMgr_add', 'UserMgr_delete', 'SysMgr_delete', 'AuthMgr_Go', 'RoleMgr_info', 'MenuMgr_update', 'OrgMgr_info', 'UserMgr_update', 'SysMgr_update', 'AuthMgr_setting', 'MenuMgr_info', 'OrgMgr_delete', 'UserMgr_info'],
        responseTime: 1579403560634,
        message: 'success'
      }
    }
  },
  // Token校验有效性，在request.js有用到
  {
    url: '/cc/account/checkToken',
    type: 'get',
    response: _ => {
      return {
        code: 200,
        responseTime: 1579403560634,
        message: 'success'
      }
    }
  },
  // 获取帐号登录信息
  {
    url: '/cc/account/getUserLoginInfo',
    type: 'get',
    response: _ => {
      return {
        code: 200,
        data: {
          userId: 1,
          account: 'admin',
          realName: '超级管理员',
          email: 'root@renren.io',
          mobile: '13612345678',
          departmentName: '阳煤集团',
          roleName: '系统管理员',
          status: '0',
          lastLoginIp: '',
          lastLoginTime: 0,
          logoutTime: 0,
          loginTime: 1580974698000,
          loginIp: '39.154.199.53',
          userSystemList:
            [
              {
                id: 1,
                systemName: 'cc',
                systemCode: 'cc',
                icon: '',
                url: 'http://www.baidu.com',
                status: 0,
                userSystemRoleList: [
                  {
                    'roleName': '系统管理员',
                    'id': 1
                  }]
              }]
        },
        responseTime: 1579403560634,
        message: 'success'
      }
    }
  }
]
