Commit 20ddbb1d by 王昆

gsb

parent 5c12ee5b
...@@ -53,7 +53,7 @@ class ActionAPI extends APIBase { ...@@ -53,7 +53,7 @@ class ActionAPI extends APIBase {
break break
case 'getAllDic': case 'getAllDic':
result = await this.productSve.getAllDic(action_body.types) result = await this.productSve.getAllDic(action_body.types)
break break;
case 'getByIds': case 'getByIds':
if (!action_body.ids) { if (!action_body.ids) {
return system.getResult(null, 'id列表不能为空') return system.getResult(null, 'id列表不能为空')
...@@ -63,6 +63,12 @@ class ActionAPI extends APIBase { ...@@ -63,6 +63,12 @@ class ActionAPI extends APIBase {
case 'getItems': case 'getItems':
result = await this.productSve.getItems(action_body.id) 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: default:
break break
} }
......
...@@ -90,5 +90,23 @@ class ProductService extends ServiceBase { ...@@ -90,5 +90,23 @@ class ProductService extends ServiceBase {
} }
return result 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; 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