notices.js 3.04 KB
Newer Older
愚道's avatar
愚道 committed
1
const getNotices = (req, res) =>
2 3
  res.json([
    {
4 5 6 7
      id: '000000001',
      avatar: 'https://gw.alipayobjects.com/zos/rmsportal/ThXAXghbEsBCCSDihZxY.png',
      title: '你收到了 14 份新周报',
      datetime: '2017-08-09',
8
      type: 'notification',
9 10
    },
    {
11 12 13 14
      id: '000000002',
      avatar: 'https://gw.alipayobjects.com/zos/rmsportal/OKJXDXrmkNshAMvwtvhu.png',
      title: '你推荐的 曲妮妮 已通过第三轮面试',
      datetime: '2017-08-08',
15
      type: 'notification',
16 17
    },
    {
18 19 20 21 22
      id: '000000003',
      avatar: 'https://gw.alipayobjects.com/zos/rmsportal/kISTdvpyTAhtGxpovNWd.png',
      title: '这种模板可以区分多种通知类型',
      datetime: '2017-08-07',
      read: true,
23
      type: 'notification',
24 25
    },
    {
26 27 28 29
      id: '000000004',
      avatar: 'https://gw.alipayobjects.com/zos/rmsportal/GvqBnKhFgObvnSGkDsje.png',
      title: '左侧图标用于区分不同的类型',
      datetime: '2017-08-07',
30
      type: 'notification',
31 32
    },
    {
33 34 35 36
      id: '000000005',
      avatar: 'https://gw.alipayobjects.com/zos/rmsportal/ThXAXghbEsBCCSDihZxY.png',
      title: '内容不要超过两行字,超出时自动截断',
      datetime: '2017-08-07',
37
      type: 'notification',
38 39
    },
    {
40 41 42 43 44
      id: '000000006',
      avatar: 'https://gw.alipayobjects.com/zos/rmsportal/fcHMVNCjPOsbUGdEduuv.jpeg',
      title: '曲丽丽 评论了你',
      description: '描述信息描述信息描述信息',
      datetime: '2017-08-07',
45
      type: 'message',
46 47
    },
    {
48 49 50 51 52
      id: '000000007',
      avatar: 'https://gw.alipayobjects.com/zos/rmsportal/fcHMVNCjPOsbUGdEduuv.jpeg',
      title: '朱偏右 回复了你',
      description: '这种模板用于提醒谁与你发生了互动,左侧放『谁』的头像',
      datetime: '2017-08-07',
53
      type: 'message',
54 55
    },
    {
56 57 58 59 60
      id: '000000008',
      avatar: 'https://gw.alipayobjects.com/zos/rmsportal/fcHMVNCjPOsbUGdEduuv.jpeg',
      title: '标题',
      description: '这种模板用于提醒谁与你发生了互动,左侧放『谁』的头像',
      datetime: '2017-08-07',
61
      type: 'message',
62 63
    },
    {
64 65 66
      id: '000000009',
      title: '任务名称',
      description: '任务需要在 2017-01-12 20:00 前启动',
afc163's avatar
afc163 committed
67 68
      extra: '未开始',
      status: 'todo',
69
      type: 'event',
70 71
    },
    {
72 73 74 75 76
      id: '000000010',
      title: '第三方紧急代码变更',
      description: '冠霖提交于 2017-01-06,需在 2017-01-07 前完成代码变更任务',
      extra: '马上到期',
      status: 'urgent',
77
      type: 'event',
78 79
    },
    {
80 81 82 83 84
      id: '000000011',
      title: '信息安全考试',
      description: '指派竹尔于 2017-01-09 前完成更新并发布',
      extra: '已耗时 8 天',
      status: 'doing',
85
      type: 'event',
86 87
    },
    {
88 89 90 91 92
      id: '000000012',
      title: 'ABCD 版本发布',
      description: '冠霖提交于 2017-01-06,需在 2017-01-07 前完成代码变更任务',
      extra: '进行中',
      status: 'processing',
93
      type: 'event',
94 95
    },
  ]);
愚道's avatar
愚道 committed
96

97
export default {
愚道's avatar
愚道 committed
98
  'GET /api/notices': getNotices,
99
};