export default [
  {
    url: "/gateway/org/back/postService/query",
    type: "post",
    response: (req, res, next) => {
      return {
        head: {
          requestId: "89ddd8cb218a9bf16bfae38afe12f1f9",
          errorCode: "0",
          timestamp: 1588932050331,
          time: 25,
          gtime: 37,
        },
        body: {
          data: [
            {
              busTypeId: "1",
              createDepId: "1",
              createDepName: "金财互联",
              entitleInsLevel: "d0b7c260c01311e692d447a876564c79#79",
              entitleInsLevelName: "一般部门;总公司;分公司",
              insId: "1",
              isValid: "Y",
              postCode: "alert_rule_config",
              postId: "0a2c85f057a34902bebca2b329bdbcd0",
              postName: "告警规则配置员",
              remark: "该岗位负责告警规则配置",
            },
            {
              busTypeId: "1",
              createDepId: "1",
              createDepName: "金财互联",
              entitleInsLevel: "d0b7c260c01311e692d447a876564c79#79",
              entitleInsLevelName: "总公司;分公司",
              insId: "1",
              isValid: "N",
              postCode: "alert_rule_config",
              postId: "0b2c85f057a34902bebca2b329bdbcd0",
              postName: "管理员",
              remark: "该岗位",
            },
          ],
          pager: {
            pageIndex: 1,
            pageSize: 20,
            pageCount: 3,
            recordCount: 46,
            sizeOfCurrentPage: 0,
            indexOfFirstItemOfCurrentPage: 0,
            prePageIndex: 1,
            nextPageIndex: 2,
          },
        },
      };
    },
  },
  {
    url: "/gateway/org/back/roleService/queryRoleByRoleDTO",
    type: "post",
    response: (req, res, next) => {
      // req.body 可获取post参数
      // req.query 可获取get参数
      return {
        head: {
          requestId: "3adb59fce3ea547b913333e7a58329be",
          errorCode: "0",
          timestamp: 1588930172024,
          time: 29,
          gtime: 68,
        },
        body: {
          data: [
            {
              createDate: "2020-03-04T08:59:20.000+0000",
              isValid: "Y",
              roleId: "307c5748512143ed8ec03875a86c62ec",
              roleName: "监控告警规则配置角色",
              roleType: "1",
              remark: "机构管理、配置管理"
            },
            {
              createDate: "2020-02-19T20:54:20.000+0000",
              isValid: "Y",
              roleId: "b524d6ed2c20407bac1c08b6443f8ed0",
              roleName: "**银行",
              roleType: "1",
              remark: "未分配任何权限"
            },
          ],
          pager: {
            pageIndex: 1,
            pageSize: 20,
            pageCount: 3,
            recordCount: 46,
            sizeOfCurrentPage: 0,
            indexOfFirstItemOfCurrentPage: 0,
            prePageIndex: 1,
            nextPageIndex: 2,
          },
        },
      };
    },
  },
  {
    url: "/gateway/org/back/user/queryPostUserList",
    type: "post",
    response: (req, res, next) => {
      // req.body 可获取post参数
      // req.query 可获取get参数
      return {
        head: {
          requestId: "3adb59fce3ea547b913333e7a58329be",
          errorCode: "0",
          timestamp: 1588930172024,
          time: 29,
          gtime: 68,
        },
        body: {
          data: [
            {
              name: "linda",
              servicePhone: "15800003248",
              phone: "138908887768",
              email: "123456@qq.com",
              dept: "开发中心",
            },
            {
              name: "mark",
              servicePhone: "1766576568",
              phone: "158908887600",
              email: "123456@qq.com",
              dept: "研发中心",
            },
          ],
          pager: {
            pageIndex: 1,
            pageSize: 20,
            pageCount: 3,
            recordCount: 46,
            sizeOfCurrentPage: 0,
            indexOfFirstItemOfCurrentPage: 0,
            prePageIndex: 1,
            nextPageIndex: 2,
          },
        },
      };
    },
  },
];
