(req, res)
| 1 | const getNotices = (req, res) => { |
| 2 | res.json([ |
| 3 | { |
| 4 | id: '000000001', |
| 5 | avatar: 'https://gw.alipayobjects.com/zos/rmsportal/ThXAXghbEsBCCSDihZxY.png', |
| 6 | title: '你收到了 14 份新周报', |
| 7 | datetime: '2017-08-09', |
| 8 | type: 'notification', |
| 9 | }, |
| 10 | { |
| 11 | id: '000000002', |
| 12 | avatar: 'https://gw.alipayobjects.com/zos/rmsportal/OKJXDXrmkNshAMvwtvhu.png', |
| 13 | title: '你推荐的 曲妮妮 已通过第三轮面试', |
| 14 | datetime: '2017-08-08', |
| 15 | type: 'notification', |
| 16 | }, |
| 17 | { |
| 18 | id: '000000003', |
| 19 | avatar: 'https://gw.alipayobjects.com/zos/rmsportal/kISTdvpyTAhtGxpovNWd.png', |
| 20 | title: '这种模板可以区分多种通知类型', |
| 21 | datetime: '2017-08-07', |
| 22 | read: true, |
| 23 | type: 'notification', |
| 24 | }, |
| 25 | { |
| 26 | id: '000000004', |
| 27 | avatar: 'https://gw.alipayobjects.com/zos/rmsportal/GvqBnKhFgObvnSGkDsje.png', |
| 28 | title: '左侧图标用于区分不同的类型', |
| 29 | datetime: '2017-08-07', |
| 30 | type: 'notification', |
| 31 | }, |
| 32 | { |
| 33 | id: '000000005', |
| 34 | avatar: 'https://gw.alipayobjects.com/zos/rmsportal/ThXAXghbEsBCCSDihZxY.png', |
| 35 | title: '内容不要超过两行字,超出时自动截断', |
| 36 | datetime: '2017-08-07', |
| 37 | type: 'notification', |
| 38 | }, |
| 39 | { |
| 40 | id: '000000006', |
| 41 | avatar: 'https://gw.alipayobjects.com/zos/rmsportal/fcHMVNCjPOsbUGdEduuv.jpeg', |
| 42 | title: '曲丽丽 评论了你', |
| 43 | description: '描述信息描述信息描述信息', |
| 44 | datetime: '2017-08-07', |
| 45 | type: 'message', |
| 46 | clickClose: true, |
| 47 | }, |
| 48 | { |
| 49 | id: '000000007', |
| 50 | avatar: 'https://gw.alipayobjects.com/zos/rmsportal/fcHMVNCjPOsbUGdEduuv.jpeg', |
| 51 | title: '朱偏右 回复了你', |
| 52 | description: '这种模板用于提醒谁与你发生了互动,左侧放『谁』的头像', |
| 53 | datetime: '2017-08-07', |
| 54 | type: 'message', |
| 55 | clickClose: true, |
| 56 | }, |
| 57 | { |
| 58 | id: '000000008', |
| 59 | avatar: 'https://gw.alipayobjects.com/zos/rmsportal/fcHMVNCjPOsbUGdEduuv.jpeg', |
| 60 | title: '标题', |
nothing calls this directly
no outgoing calls
no test coverage detected