notices.js 3.2 KB

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