Commit 60504e4a authored by 楼超奇's avatar 楼超奇

use good name

parent 2e96a619
......@@ -5,32 +5,35 @@
{
"insurance_supported": bool
"insurance_info": {
"price": str, // 拼接好的字符串 25元/份
"is_old_user": bool
"premium": 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
"insurance_user_id": str
"insurance_price": // 拼接好的字符串 25元/份
"name": str
"id_card": 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"
}
......
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