包含后厨 团餐 门店分支
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

106 regels
3.3 KiB

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