Commit 20ddbb1d by 王昆

gsb

parent 5c12ee5b
......@@ -53,7 +53,7 @@ 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列表不能为空')
......@@ -63,6 +63,12 @@ class ActionAPI extends APIBase {
case 'getItems':
result = await this.productSve.getItems(action_body.id)
break
case 'apiList':
result = await this.productSve.apiList(action_body)
break
case 'apiMap':
result = await this.productSve.apiMap(action_body);
break;
default:
break
}
......
......@@ -90,5 +90,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