system.msg.repo.js 386 B

123456789101112
  1. "use strict";
  2. var log = require('../util/log');
  3. var imRepo = require("./mysql/im.db.js");
  4. exports.save = function(to, contentType, title, summary, content, handler) {
  5. imRepo.execQuery({
  6. "sql": "INSERT INTO msg_system (to_uid,type,title,content,data) VALUES (?,?,?,?,?)",
  7. "args": [to, contentType, title, summary, content],
  8. "handler": handler
  9. });
  10. };