getDeployment.mock.ts 1.3 KB
Newer Older
R
Rongfeng Fu 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
// @ts-ignore
import { Request, Response } from 'express';

export default {
  'GET /api/v1/deployments': (req: Request, res: Response) => {
    res.status(200).send({
      code: 72,
      data: {
        total: 99,
        items: [
          { name: '侯娟', status: 'error' },
          { name: '郝丽', status: 'default' },
          { name: '康敏', status: 'default' },
          { name: '傅娜', status: 'default' },
          { name: '彭霞', status: 'success' },
          { name: '余娜', status: 'processing' },
          { name: '石刚', status: 'error' },
          { name: '邓伟', status: 'success' },
          { name: '许强', status: 'warning' },
          { name: '邓静', status: 'success' },
          { name: '熊平', status: 'processing' },
          { name: '任军', status: 'processing' },
          { name: '陈磊', status: 'error' },
          { name: '赖军', status: 'processing' },
          { name: '姚敏', status: 'default' },
          { name: '徐刚', status: 'processing' },
          { name: '刘秀英', status: 'processing' },
          { name: '朱涛', status: 'error' },
          { name: '潘杰', status: 'error' },
        ],
      },
      msg: '位元活做将二酸界放文习北矿的想还。',
      success: true,
    });
  },
};