Commit 3192b303 by linboxuan

lin add getGatewayPushFailLogList

parent b05ec69a
......@@ -2,29 +2,39 @@ const CtlBase = require("../../ctl.base");
var system = require("../../../system");
class PushlogCtl extends CtlBase {
constructor() {
super("qifutong", CtlBase.getServiceName(PushlogCtl));
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)
}
// 获取 推送 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)
}
}
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)
}
async getGatewayPushFailLogList(pobj, qobj, req) {
try {
const rs = await this.service.getGatewayPushFailLogList(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;
}
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;
}
async getGatewayPushFailLogList(pobj) {
let { likeParams = "", likeError = "" } = pobj;
const data = await ToQiFuTong.getGatewayPushFailLogList({
likeParams, likeError
});
return data;
}
}
module.exports = PushlogService;
\ No newline at end of file
......@@ -280,6 +280,13 @@ class BaseClient {
return data;
}
async getGatewayPushFailLogList(pobj) {
const data = await this.pushQiFuTong('/web/action/opLog/getGatewayPushFailLogList', {
"actionType": "getGatewayPushFailLogList",
"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