import { Request, Response } from 'express';

const getRegistration = (req: Request, res: Response) => {
  res.json({
    data: {
      list:[
        {
          registration_id: '000000001',
          avatar: 'https://gw.alipayobjects.com/zos/rmsportal/ThXAXghbEsBCCSDihZxY.png',
          city_name: '昆明市',
          area_name: '盘龙区',
          org_name: '昆明第一中学',
          examination_name:'生涯规划师初级',
          username: '张三',
          datetime: '2017-08-09',
          type: 'notification',
        },
        {
          registration_id: '000000002',
          avatar: 'https://gw.alipayobjects.com/zos/rmsportal/OKJXDXrmkNshAMvwtvhu.png',
          city_name: '昆明市',
          area_name: '盘龙区',
          org_name: '昆明第一中学',
          examination_name:'生涯规划师初级',
          username: '王莽',
          datetime: '2017-08-08',
          type: 'notification',
        },
        {
          registration_id: '000000003',
          avatar: 'https://gw.alipayobjects.com/zos/rmsportal/kISTdvpyTAhtGxpovNWd.png',
          city_name: '昆明市',
          area_name: '盘龙区',
          org_name: '昆明第一中学',
          examination_name:'生涯规划师初级',
          username: '李四',
          datetime: '2017-08-07',
          read: true,
          type: 'notification',
        },
        {
          registration_id: '000000004',
          avatar: 'https://gw.alipayobjects.com/zos/rmsportal/GvqBnKhFgObvnSGkDsje.png',
          city_name: '昆明市',
          area_name: '盘龙区',
          org_name: '昆明第一中学',
          examination_name:'生涯规划师初级',
          username: '赵云',
          datetime: '2017-08-07',
          type: 'notification',
        },
        {
          registration_id: '000000005',
          avatar: 'https://gw.alipayobjects.com/zos/rmsportal/ThXAXghbEsBCCSDihZxY.png',
          city_name: '昆明市',
          area_name: '盘龙区',
          org_name: '昆明第一中学',
          examination_name:'生涯规划师初级',
          username: '刘鹏',
          datetime: '2017-08-07',
          type: 'notification',
        },
        {
          registration_id: '000000006',
          avatar: 'https://gw.alipayobjects.com/zos/rmsportal/fcHMVNCjPOsbUGdEduuv.jpeg',
          city_name: '昆明市',
          area_name: '盘龙区',
          org_name: '昆明第一中学',
          examination_name:'生涯规划师初级',
          username: '乾龙',
          description: '描述信息描述信息描述信息',
          datetime: '2017-08-07',
          type: 'message',
          clickClose: true,
        },
        {
          registration_id: '000000007',
          avatar: 'https://gw.alipayobjects.com/zos/rmsportal/fcHMVNCjPOsbUGdEduuv.jpeg',
          city_name: '昆明市',
          area_name: '盘龙区',
          org_name: '昆明第一中学',
          examination_name:'生涯规划师初级',
          username: '朱偏右',
          description: '这种模板用于提醒谁与你发生了互动，左侧放『谁』的头像',
          datetime: '2017-08-07',
          type: 'message',
          clickClose: true,
        },
        {
          registration_id: '000000008',
          avatar: 'https://gw.alipayobjects.com/zos/rmsportal/fcHMVNCjPOsbUGdEduuv.jpeg',
          city_name: '昆明市',
          area_name: '盘龙区',
          org_name: '昆明第一中学',
          examination_name:'生涯规划师初级',
          username: '单宇',
          description: '这种模板用于提醒谁与你发生了互动，左侧放『谁』的头像',
          datetime: '2017-08-07',
          type: 'message',
          clickClose: true,
        },
        {
          registration_id: '000000009',
          city_name: '昆明市',
          area_name: '盘龙区',
          org_name: '昆明第一中学',
          examination_name:'生涯规划师初级',
          username: '马村',
          description: '任务需要在 2017-01-12 20:00 前启动',
          extra: '未开始',
          status: 'todo',
          type: 'event',
        },
        {
          registration_id: '000000010',
          username: '任飞',
          city_name: '昆明市',
          area_name: '盘龙区',
          org_name: '昆明第一中学',
          examination_name:'生涯规划师初级',
          description: '冠霖提交于 2017-01-06，需在 2017-01-07 前完成代码变更任务',
          extra: '马上到期',
          status: 'urgent',
          type: 'event',
        },
        {
          registration_id: '000000011',
          username: '彭城',
          city_name: '昆明市',
          area_name: '盘龙区',
          org_name: '昆明第一中学',
          examination_name:'生涯规划师初级',
          description: '指派竹尔于 2017-01-09 前完成更新并发布',
          extra: '已耗时 8 天',
          status: 'doing',
          type: 'event',
        },
        {
          registration_id: '000000012',
          username: '杜冠',
          city_name: '昆明市',
          area_name: '盘龙区',
          org_name: '昆明第一中学',
          examination_name:'生涯规划师初级',
          description: '冠霖提交于 2017-01-06，需在 2017-01-07 前完成代码变更任务',
          extra: '进行中',
          status: 'processing',
          type: 'event',
        },
      ],
    }
  });
};

export default {
  'GET /api/getRegistrationList': getRegistration,
};
