// @ts-ignore
// import { Request, Response } from 'express';

module.exports = {
  'GET /api/rule': (req, res) => {
    res.status(200).send({
      data: [
        {
          key: 77,
          disabled: true,
          href: 'https://umijs.org/',
          avatar:
            'https://gw.alipayobjects.com/zos/rmsportal/OKJXDXrmkNshAMvwtvhu.png',
          name: '杜明',
          owner: 'Johnson',
          desc: '展金习设许此备还育住第即但没新何进。',
          callNo: 75,
          status: 69,
          updatedAt: 'z*GGqY',
          createdAt: 'OgCEx15',
          progress: 81,
        },
        {
          key: 72,
          disabled: true,
          href: 'https://ant.design',
          avatar: 'https://avatars0.githubusercontent.com/u/507615?s=40&v=4',
          name: '龙伟',
          owner: 'Moore',
          desc: '近区置世意史风品容等量引律养级马理。',
          callNo: 72,
          status: 63,
          updatedAt: 'o%NS',
          createdAt: 'HJo',
          progress: 89,
        },
        {
          key: 98,
          disabled: true,
          href: 'https://procomponents.ant.design/',
          avatar:
            'https://gw.alipayobjects.com/zos/rmsportal/ThXAXghbEsBCCSDihZxY.png',
          name: '韩军',
          owner: 'Hall',
          desc: '二应据称感号单常强持社少便快极西流能。',
          callNo: 82,
          status: 71,
          updatedAt: '2jgCyz',
          createdAt: '&d$kEH',
          progress: 70,
        },
        {
          key: 94,
          disabled: false,
          href: 'https://preview.pro.ant.design/dashboard/analysis',
          avatar:
            'https://gw.alipayobjects.com/zos/rmsportal/OKJXDXrmkNshAMvwtvhu.png',
          name: '刘平',
          owner: 'Lopez',
          desc: '大管别消证物拉主今解过格科家角。',
          callNo: 71,
          status: 97,
          updatedAt: 'u5Y',
          createdAt: '4xJ5O',
          progress: 78,
        },
        {
          key: 74,
          disabled: true,
          href: 'https://ant.design',
          avatar:
            'https://gw.alipayobjects.com/zos/rmsportal/KDpgvguMpGfqaHPjicRK.svg',
          name: '苏娟',
          owner: 'Miller',
          desc: '需八相严平写今的快验二历林。',
          callNo: 76,
          status: 89,
          updatedAt: 'Roob',
          createdAt: 'hikM9o',
          progress: 92,
        },
        {
          key: 92,
          disabled: false,
          href: 'https://preview.pro.ant.design/dashboard/analysis',
          avatar: 'https://avatars0.githubusercontent.com/u/507615?s=40&v=4',
          name: '赖霞',
          owner: 'Taylor',
          desc: '采众用我类拉标技政般酸往得。',
          callNo: 79,
          status: 78,
          updatedAt: 'Af9Y%',
          createdAt: 'n*M4H',
          progress: 66,
        },
        {
          key: 99,
          disabled: false,
          href: '',
          avatar:
            'https://gw.alipayobjects.com/zos/antfincdn/XAosXuNZyF/BiazfanxmamNRoxxVxka.png',
          name: '何杰',
          owner: 'Young',
          desc: '段除然到社包示上来化文将机思。',
          callNo: 67,
          status: 99,
          updatedAt: 'v!T9b',
          createdAt: '3NS@',
          progress: 69,
        },
        {
          key: 88,
          disabled: false,
          href: 'https://procomponents.ant.design/',
          avatar: 'https://avatars0.githubusercontent.com/u/507615?s=40&v=4',
          name: '冯娟',
          owner: 'Johnson',
          desc: '公与起拉记龙应二家种定科。',
          callNo: 68,
          status: 96,
          updatedAt: 'hV6*R6',
          createdAt: 'FrTdqU',
          progress: 71,
        },
        {
          key: 66,
          disabled: false,
          href: 'https://github.com/umijs/dumi',
          avatar: 'https://avatars1.githubusercontent.com/u/8186664?s=40&v=4',
          name: '杜刚',
          owner: 'Lewis',
          desc: '收花领养克听关消克般时电自必需论。',
          callNo: 72,
          status: 98,
          updatedAt: 's*t',
          createdAt: 'uby3w',
          progress: 68,
        },
        {
          key: 71,
          disabled: true,
          href: 'https://procomponents.ant.design/',
          avatar: 'https://avatars0.githubusercontent.com/u/507615?s=40&v=4',
          name: '戴芳',
          owner: 'Jackson',
          desc: '也天下京完指际保手上劳响什部多。',
          callNo: 85,
          status: 64,
          updatedAt: 'YIzwv',
          createdAt: 'x[Z',
          progress: 86,
        },
        {
          key: 63,
          disabled: true,
          href: 'https://procomponents.ant.design/',
          avatar: 'https://avatars1.githubusercontent.com/u/8186664?s=40&v=4',
          name: '赖艳',
          owner: 'Brown',
          desc: '之示气上你力表清力队气消全划山路。',
          callNo: 72,
          status: 66,
          updatedAt: '(6U0',
          createdAt: 'WVSoNJ',
          progress: 84,
        },
      ],
      total: 99,
      success: true,
    });
  },
  'POST /api/rule': (req, res) => {
    res.status(200).send({
      key: 71,
      disabled: true,
      href: 'https://ant.design',
      avatar:
        'https://gw.alipayobjects.com/zos/rmsportal/ThXAXghbEsBCCSDihZxY.png',
      name: '段勇',
      owner: 'Thomas',
      desc: '院题质数下布进或会府速体快型前快。',
      callNo: 91,
      status: 88,
      updatedAt: 'T$frcd',
      createdAt: '#]MhT%',
      progress: 79,
    });
  },
  'PUT /api/rule': (req, res) => {
    res.status(200).send({
      key: 94,
      disabled: true,
      href: 'https://umijs.org/',
      avatar: 'https://avatars0.githubusercontent.com/u/507615?s=40&v=4',
      name: '常桂英',
      owner: 'Perez',
      desc: '布华意王去消候研格作指称。',
      callNo: 61,
      status: 97,
      updatedAt: 'ZX0wE7',
      createdAt: 'mg%',
      progress: 93,
    });
  },
  'DELETE /api/rule': (req, res) => {
    res.status(200).send({});
  },
};
