UNPKG

sohelp-ele

Version:

SohelpEle Library

69 lines (68 loc) 1.65 kB
"use strict"; const SohelpNotice = { async sendTodo(userId, message, config) { let data = { to_user_id: userId, message, ...config }; return await SohelpHttp.post("/admin/notice/sendTodo", data); }, async sendSystem(userId, message, config) { let data = { to_user_id: userId, message, ...config }; return await SohelpHttp.post("/admin/notice/sendSystem", data); }, async sendUser(userId, message, config) { let data = { to_user_id: userId, message, ...config }; return await SohelpHttp.post("/admin/notice/sendUser", data); }, async sendWx(userId, message, config) { let data = { to_user_id: userId, message, ...config }; return await SohelpHttp.post("/admin/notice/sendWx", data); }, async sendQywx(userId, message, config) { let data = { to_user_id: userId, message, ...config }; return await SohelpHttp.post("/admin/notice/sendQywx", data); }, async sendPhone(userId, message, config) { let data = { to_user_id: userId, message, ...config }; return await SohelpHttp.post("/admin/notice/sendPhone", data); }, async sendDingDing(userId, message, config) { let data = { to_user_id: userId, message, ...config }; return await SohelpHttp.post("/admin/notice/sendDingDing", data); }, async sendEmail(userId, message, config) { let data = { to_user_id: userId, message, ...config }; return await SohelpHttp.post("/admin/notice/sendEmail", data); } }; module.exports = SohelpNotice;