Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
L
lcq
Project
Project
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
楼超奇
lcq
Commits
60504e4a
Commit
60504e4a
authored
Aug 12, 2016
by
楼超奇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use good name
parent
2e96a619
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
11 deletions
+14
-11
api.txt
api.txt
+14
-11
No files found.
api.txt
View file @
60504e4a
...
...
@@ -5,32 +5,35 @@
{
"insurance_supported": bool
"insurance_info": {
"pr
ice
": str, // 拼接好的字符串 25元/份
"
is_old_user
": bool
"pr
emium
": str, // 拼接好的字符串 25元/份
"
has_bought_insurance
": bool
}
}
- 保险信息 从客户端拿信息发送姓名和身份证给gaia 如果是第二次购买,返回姓名和身份证给客户端,
支持取消购买。还需一个接口,提交保险信息
支持取消购买。
获取保险信息和提交保险信息使用同一个接口:api/settlement/insurance_info
get表示获取保险信息,backend返回如下:
{
"
is_old_user
": bool,
"
has_bought_insurance
": bool,
"insurance_user_info": {
"
insurance_user_
name": str
"i
nsurance_user_i
d": str
"
insurance_price
": // 拼接好的字符串 25元/份
"name": str
"i
d_car
d": str
"
premium
": // 拼接好的字符串 25元/份
}
"insurance_hybrid_doc": str
"surgery_hybrid_doc": str
}
提交保险信息 {
"insurance_user_name": str
"insurance_user_id": str
post表示更新保险信息,客户端上传字段如下:
{
"name": str
"id_card": str
}
- 订单详情页 返回给客户端保险信息(不需要保单号、保单金额、被保人、出保时间、有效期) 确定h5是否变动
{
"insurance_success_info": {
"hybrid_doc": str
"price": // 拼接好的字符串 25元/份
"
user
": str,
"
name
": str,
"create_time": str,
"Validity": str // 返回的是月份字符串,比如"1"
}
...
...
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