Commit d7f3d857 by 庄冰

policy

parent 2c8d1032
......@@ -31,6 +31,9 @@ class PolicyAPI extends APIBase {
case "policyQuery"://政策检索
opResult = await this.policySve.policyQuery(pobj);
break;
case "submitPolicyNeed"://政策申请提报
opResult = this.policySve.submitPolicyNeed(pobj);
break;
default:
opResult = system.getResult(null, "action_type参数错误");
break;
......
......@@ -11,5 +11,11 @@ class PolicyService{
var data = JSON.parse(rtn.stdout);
return data;
}
async submitPolicyNeed(pobj) {
var url = this.centerOrderUrl + "action/policy/springBoard";
var rtn = await this.execClient.execPost(pobj, url);
var data = JSON.parse(rtn.stdout);
return data;
}
}
module.exports = PolicyService;
<a name="menu" href="/doc">返回主目录</a>
1. [政策检索](#policyQuery)
1. [政策申请提报](#submitPolicyNeed)
## **<a name="policyQuery"> 政策检索</a>**
[返回到目录](#menu)
......@@ -60,3 +60,35 @@
}
```
## **<a name="submitPolicyNeed"> 政策申请提报</a>**
[返回到目录](#menu)
##### URL
[/web/action/policy/springBoard]
#### 参数格式 `JSON`
#### HTTP请求方式 `POST`
#### 渠道执行的类型 actionType:submitPolicyNeed
``` javascript
{
"actionType": "submitPolicyNeed",
"actionBody": {
"contacts":"联系人",
"company":"公司名称",
"industry":"行业名称",
"region":"行业名称",
"mobile":"13075556693",
"policy_id":1,
"popularizeUserCode":"推广人手机号"
}
}
```
#### 返回结果
```javascript
{
"status":0,
"msg":"success",
"data":null,
"requestId":"6afebe73d2fa47dbb2dd451468b4e3ac"
}
```
\ 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