Commit 2bb6d928 by Sxy

feat: 推送列表

parent 2a09a3c3
const CtlBase = require("../../ctl.base");
var system = require("../../../system");
class PushlogCtl extends CtlBase {
constructor() {
super("qifutong", CtlBase.getServiceName(PushlogCtl));
}
// 获取 推送 log信息
async getPushFailLogList(pobj, qobj, req) {
try {
const rs = await this.service.getPushFailLogList(pobj);
return system.getResult(rs);
} catch (err) {
return system.getResult(null, err.message)
}
}
async failLogrePush(pobj, qobj, req) {
if (!pobj.id) {
return system.getResult(null, "id can not be empty,100290");
}
try {
const rs = await this.service.failLogrePush(pobj);
return system.getResult(rs);
} catch (err) {
return system.getResult(null, err.message)
}
}
}
module.exports = PushlogCtl;
const ToQiFuTong = require('../../../utils/qifutong/baseClient').getInstance();
class PushlogService {
async getPushFailLogList(pobj) {
let { appid = "", likeStr = "" } = pobj;
const data = await ToQiFuTong.getPushFailLogList({
appid, likeStr
});
return data;
}
async failLogrePush(pobj) {
let { content = {}, id } = pobj;
const data = await ToQiFuTong.failLogrePush({
content, id
});
return data;
}
}
module.exports = PushlogService;
\ No newline at end of file
......@@ -232,6 +232,22 @@ class BaseClient {
return data;
}
async getPushFailLogList(pobj) {
const data = await this.pushQiFuTong('/web/action/opLog/getPushFailLogList', {
"actionType": "getPushFailLogList",
"actionBody": pobj
});
return data;
}
async failLogrePush(pobj) {
const data = await this.pushQiFuTong('/web/action/opLog/rePush', {
"actionType": "rePush",
"actionBody": pobj
});
return data;
}
// 获取一段时间内的所有日期
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment