system.msg.repo.js 482 B

123456789101112131415161718
  1. "use strict";
  2. var log = require('../../util/log');
  3. var ImDb = require("../mysql/db/im.db.js");
  4. class SystemMsgRepo {
  5. constructor(){}
  6. static save(to, contentType, title, summary, content, handler) {
  7. ImDb.execQuery({
  8. "sql": "INSERT INTO msg_system (to_uid,type,title,content,data) VALUES (?,?,?,?,?)",
  9. "args": [to, contentType, title, summary, content],
  10. "handler": handler
  11. });
  12. }
  13. }
  14. module.exports = SystemMsgRepo;