notices.js 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. export 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: '通知',
  9. },
  10. {
  11. id: '000000002',
  12. avatar: 'https://gw.alipayobjects.com/zos/rmsportal/OKJXDXrmkNshAMvwtvhu.png',
  13. title: '你推荐的 曲妮妮 已通过第三轮面试',
  14. datetime: '2017-08-08',
  15. type: '通知',
  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: '通知',
  24. },
  25. {
  26. id: '000000004',
  27. avatar: 'https://gw.alipayobjects.com/zos/rmsportal/GvqBnKhFgObvnSGkDsje.png',
  28. title: '左侧图标用于区分不同的类型',
  29. datetime: '2017-08-07',
  30. type: '通知',
  31. },
  32. {
  33. id: '000000005',
  34. avatar: 'https://gw.alipayobjects.com/zos/rmsportal/ThXAXghbEsBCCSDihZxY.png',
  35. title: '内容不要超过两行字,超出时自动截断',
  36. datetime: '2017-08-07',
  37. type: '通知',
  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: '消息',
  46. },
  47. {
  48. id: '000000007',
  49. avatar: 'https://gw.alipayobjects.com/zos/rmsportal/fcHMVNCjPOsbUGdEduuv.jpeg',
  50. title: '朱偏右 回复了你',
  51. description: '这种模板用于提醒谁与你发生了互动,左侧放『谁』的头像',
  52. datetime: '2017-08-07',
  53. type: '消息',
  54. },
  55. {
  56. id: '000000008',
  57. avatar: 'https://gw.alipayobjects.com/zos/rmsportal/fcHMVNCjPOsbUGdEduuv.jpeg',
  58. title: '标题',
  59. description: '这种模板用于提醒谁与你发生了互动,左侧放『谁』的头像',
  60. datetime: '2017-08-07',
  61. type: '消息',
  62. },
  63. {
  64. id: '000000009',
  65. title: '任务名称',
  66. description: '任务需要在 2017-01-12 20:00 前启动',
  67. extra: '未开始',
  68. status: 'todo',
  69. type: '待办',
  70. },
  71. {
  72. id: '000000010',
  73. title: '第三方紧急代码变更',
  74. description: '冠霖提交于 2017-01-06,需在 2017-01-07 前完成代码变更任务',
  75. extra: '马上到期',
  76. status: 'urgent',
  77. type: '待办',
  78. },
  79. {
  80. id: '000000011',
  81. title: '信息安全考试',
  82. description: '指派竹尔于 2017-01-09 前完成更新并发布',
  83. extra: '已耗时 8 天',
  84. status: 'doing',
  85. type: '待办',
  86. },
  87. {
  88. id: '000000012',
  89. title: 'ABCD 版本发布',
  90. description: '冠霖提交于 2017-01-06,需在 2017-01-07 前完成代码变更任务',
  91. extra: '进行中',
  92. status: 'processing',
  93. type: '待办',
  94. },
  95. ]);
  96. };
  97. export default {
  98. getNotices,
  99. };