diff --git a/server/notification-providers/yzj.js b/server/notification-providers/yzj.js index 829528184..775d71525 100644 --- a/server/notification-providers/yzj.js +++ b/server/notification-providers/yzj.js @@ -1,10 +1,13 @@ const NotificationProvider = require("./notification-provider"); -const {DOWN, UP} = require("../../src/util"); -const {default: axios} = require("axios"); +const { DOWN, UP } = require("../../src/util"); +const { default: axios } = require("axios"); class YZJ extends NotificationProvider { name = "YZJ"; + /** + * @inheritdoc + */ async send(notification, msg, monitorJSON = null, heartbeatJSON = null) { let okMsg = "Sent Successfully."; @@ -31,8 +34,8 @@ class YZJ extends NotificationProvider { /** * Send message to YZJ - * @param {BeanModel} notification - * @param {Object} params Parameters of message + * @param {object} notification Notification + * @param {object} params Parameters of message * @returns {boolean} True if successful else false */ async sendToYZJ(notification, params) { @@ -56,7 +59,7 @@ class YZJ extends NotificationProvider { /** * Convert status constant to string * @param {string} status The status constant - * @returns {string} + * @returns {string} status */ statusToString(status) { switch (status) { diff --git a/src/components/notifications/YZJ.vue b/src/components/notifications/YZJ.vue index ff49a2bc7..a598dd60d 100644 --- a/src/components/notifications/YZJ.vue +++ b/src/components/notifications/YZJ.vue @@ -1,21 +1,13 @@