Commit 820e1316 by wkliang

Merge branch 'engine-product' of gitlab.gongsibao.com:jiangyong/zhichan into engine-product

parents 0f5b1611 a0b4fade
......@@ -53,16 +53,22 @@ class ActionAPI extends APIBase {
break
case 'getAllDic':
result = await this.productSve.getAllDic(action_body.types)
break
break;
case 'getByIds':
if (!action_body.ids) {
return system.getResult(null, 'id列表不能为空')
}
result = await this.productSve.getByIds(action_body.ids)
break
break;
case 'getItems':
result = await this.productSve.getItems(action_body.id)
break
break;
case 'apiList':
result = await this.productSve.apiList(action_body);
break;
case 'apiMap':
result = await this.productSve.apiMap(action_body);
break;
default:
break
}
......
......@@ -110,5 +110,23 @@ class ProductService extends ServiceBase {
}
return result
}
async apiList() {
return [
{key: "nameTwo_1", name: "姓名二要素-e签宝"},
{key: "sign_1", name: "手动签-e签宝"},
{key: "autoSign_1", name: "静默签-e签宝"},
{key: "bankThree_2", name: "银行卡三要素-兰铂旺"},
{key: "bankFour_2", name: "银行卡四要素-兰铂旺"}
]
}
async apiMap() {
let list = await this.apiList();
let map = {};
for (let item of list) {
map[item.key] = item;
}
return map;
}
}
module.exports = ProductService;
\ No newline at end of file
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