Commit 213593b8 by wkliang

init

parent 67aec9b8
...@@ -18,7 +18,6 @@ class askFor extends WEBBase { ...@@ -18,7 +18,6 @@ class askFor extends WEBBase {
* @memberof askFor * @memberof askFor
*/ */
async tradeMark (pobj, qobj, req) { async tradeMark (pobj, qobj, req) {
switch (pobj.actionType) { switch (pobj.actionType) {
case 'niceQuery': case 'niceQuery':
const param = pobj.actionBody const param = pobj.actionBody
......
var WEBBase = require("../../web.base");
var system = require("../../../system");
class diagnosisNeedBus extends WEBBase {
constructor() {
super();
this.unSve = system.getObject('service.utilsSve.utilsNdbSve')
}
async springBoard (pobj, qobj, req) {
var result = await this.opActionProcess(pobj, pobj.actionType, req);
return result;
}
async opActionProcess (pobj, action_type, req) {
var opResult = null;
switch (action_type) {
case "test"://测试
opResult = system.getResultSuccess(null, "测试成功");
break;
case "getDnList":// 精确检索
opResult = await this.unSve.getList(pobj);
break;
case 'getDnListPending': // 获取详情
pobj.actionBody.status = 'dcl'
opResult = await this.unSve.getList(pobj);
break;
case 'getDnDetail': // 获取列表
opResult = await this.unSve.getDetail(pobj);
break;
case 'doDnEAV':
opResult = await this.unSve.doEAV(pobj);
break;
default:
opResult = system.getResult(null, "actionType参数错误");
break;
}
return opResult;
}
}
module.exports = diagnosisNeedBus;
\ No newline at end of file
const System = require("../../../system");
var settings = require("../../../../config/settings");
const AppServiceBase = require("../../app.base");
class FblicenseService extends AppServiceBase {
constructor () {
super();
this.centerOrderUrl = settings.centerOrderUrl()
this.restClient = System.getObject("util.restClient")
};
async getList (data) {
try {
let url = `${this.centerOrderUrl}action/diagnosisneedbus/springBoard`
console.log(url)
data.actionType = 'getList'
let result = await this.restClient.execPost(data, url)
return result
} catch (error) {
return {
code: -1,
msg: error.message || 'failed',
}
}
}
}
module.exports = FblicenseService;
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