Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zhichan
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
蒋勇
zhichan
Commits
d7f3d857
Commit
d7f3d857
authored
Feb 11, 2020
by
庄冰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
policy
parent
2c8d1032
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
43 additions
and
1 deletions
+43
-1
center-channel/app/base/api/impl/action/policy.js
+3
-0
center-channel/app/base/service/impl/policy/policySve.js
+6
-0
center-channel/app/front/entry/public/apidoc/platform/policy.md
+34
-1
No files found.
center-channel/app/base/api/impl/action/policy.js
View file @
d7f3d857
...
@@ -31,6 +31,9 @@ class PolicyAPI extends APIBase {
...
@@ -31,6 +31,9 @@ class PolicyAPI extends APIBase {
case
"policyQuery"
:
//政策检索
case
"policyQuery"
:
//政策检索
opResult
=
await
this
.
policySve
.
policyQuery
(
pobj
);
opResult
=
await
this
.
policySve
.
policyQuery
(
pobj
);
break
;
break
;
case
"submitPolicyNeed"
:
//政策申请提报
opResult
=
this
.
policySve
.
submitPolicyNeed
(
pobj
);
break
;
default
:
default
:
opResult
=
system
.
getResult
(
null
,
"action_type参数错误"
);
opResult
=
system
.
getResult
(
null
,
"action_type参数错误"
);
break
;
break
;
...
...
center-channel/app/base/service/impl/policy/policySve.js
View file @
d7f3d857
...
@@ -11,5 +11,11 @@ class PolicyService{
...
@@ -11,5 +11,11 @@ class PolicyService{
var
data
=
JSON
.
parse
(
rtn
.
stdout
);
var
data
=
JSON
.
parse
(
rtn
.
stdout
);
return
data
;
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
;
module
.
exports
=
PolicyService
;
center-channel/app/front/entry/public/apidoc/platform/policy.md
View file @
d7f3d857
<a
name=
"menu"
href=
"/doc"
>
返回主目录
</a>
<a
name=
"menu"
href=
"/doc"
>
返回主目录
</a>
1.
[
政策检索
](
#policyQuery
)
1.
[
政策检索
](
#policyQuery
)
1.
[
政策申请提报
](
#submitPolicyNeed
)
## **<a name="policyQuery"> 政策检索</a>**
## **<a name="policyQuery"> 政策检索</a>**
[
返回到目录
](
#menu
)
[
返回到目录
](
#menu
)
...
@@ -59,4 +59,36 @@
...
@@ -59,4 +59,36 @@
"requestId"
:
"2c1ebf037aed4b30aa8e497c7a151a8e"
"requestId"
:
"2c1ebf037aed4b30aa8e497c7a151a8e"
}
}
```
## **<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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment