12345678910111213141516171819202122232425262728293031323334 |
- /**
- *
- * author: Sand
- * since: 12/9/2016
- */
- "use strict";
- let imDb = require('./mysql/im.db');
- class SyncLog{
- constructor(){}
- /**
- * 获取用户更新
- * @param handler
- */
- getLastUserSynchronizeTime(handler){
- imDb.execQuery({
- "sql": "select last_sync_time from sync_log where event = 'user_sync'",
- "args": [],
- "handler": handler
- });
- }
- updateUserSynchorizeLog(handler){
- imDb.execQuery({
- "sql": "update sync_log set last_sync_time = now()",
- "args": [],
- "handler": handler
- });
- }
- }
- module.exports = SyncLog;
|