123456789101112131415161718 |
- "use strict";
- var log = require('../../util/log');
- var ImDb = require("../mysql/db/im.db.js");
- class SystemMsgRepo {
- constructor(){}
- static save(to, contentType, title, summary, content, handler) {
- ImDb.execQuery({
- "sql": "INSERT INTO msg_system (to_uid,type,title,content,data) VALUES (?,?,?,?,?)",
- "args": [to, contentType, title, summary, content],
- "handler": handler
- });
- }
- }
- module.exports = SystemMsgRepo;
|