global-notification.js 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. const debug = require('debug')('growi:service:GlobalNotification');
  2. /**
  3. * the service class of GlobalNotificationSetting
  4. */
  5. class GlobalNotification {
  6. constructor() {
  7. }
  8. /**
  9. * send test notification
  10. * @memberof GlobalNotification
  11. */
  12. sendTesteNotification() {}
  13. /**
  14. * send notification at page creation
  15. * @memberof GlobalNotification
  16. */
  17. sendPageCreateNotification() {}
  18. /**
  19. * send notification at page edit
  20. * @memberof GlobalNotification
  21. */
  22. sendPageEditNotification() {}
  23. /**
  24. * send notification at page deletion
  25. * @memberof GlobalNotification
  26. */
  27. sendPageDeleteNotification() {}
  28. /**
  29. * send notification at page move
  30. * @memberof GlobalNotification
  31. */
  32. sendPageMoveNotification() {}
  33. /**
  34. * send notification at page like
  35. * @memberof GlobalNotification
  36. */
  37. sendPageLikeNotification() {}
  38. /**
  39. * send notification at page comment
  40. * @memberof GlobalNotification
  41. */
  42. sendCommentNotification() {}
  43. }
  44. module.exports = GlobalNotification;
  45. // res.send
  46. // const notifications = await findSettingByPathAndEvent(path, 'comment');
  47. // notifications.forEach(notification => {
  48. // sendCommentNotification(notification);
  49. // });
  50. // const mailOption = {
  51. // to: '',
  52. // from: '',
  53. // text: '#comment',
  54. // subject: '',
  55. // };