[TOC=2,3]
* * * * *
* * * * *
* * * * *
## 1. 现代注册接口【已完】
> 系统登录注册接口,若手机号存在 ,若手机号不存在则注册新用户,返回 user_token 用于操作需验证身份的接口
+++
post:/common/registerModern
*string:access_token#访问Token【Token附加参数,由前端算法生成】
*int:source#用户注册来源 用户来源 1:后台添加 2:注册页 3:推广页 4:北京现代展区A 5:北京现代展区B【本接口为4或者5】
*int:type#用户类型 用户类型:1:前途巡展用户 2:北京现代用户 【本接口为2,新增字段】
*string:mobile#手机号
*string:nickname#姓名
*string:sex#性别
*int:age#年龄
<<<
success
返回示例:
{
"code": 0,
"msg": "操作成功",
"data": {
"id": 47,
"nickname": "yangjin",
"username": null,
"email": null,
"mobile": "18575566543",
"update_time": "2019-04-09 00:35:41",
"create_time": "2019-03-27 10:04:08",
"status": 1,
"leader_id": 1,
"is_share_member": 0,
"is_inside": 0,
"jifen_sum": 7370,
"sex": 1,
"area": "2312",
"is_purchase_car_target": 1,
"is_car_purchase_plan": 1,
"car_purchase_price_cost": "123.00",
"xing": "杨",
"ming": "进",
"phone": "18575566563",
"car_model": "现代",
"reservation_type": 1,#预约类型 1:现场预约 2:店头预约 3:驾趣行预约
"member_id": 47,
"is_new_member": 2, //1新用户 2旧用户
"user_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJPbmVCYXNlIEpXVCIsImlhdCI6MTU1NDc5NTk1MywiZXhwIjoxNTU0ODMxOTUzLCJhdWQiOiJJVFlhbmdzIiwic3ViIjoiSVRZYW5ncyIsImRhdGEiOnsiaWQiOjQ3LCJuaWNrbmFtZSI6InlhbmdqaW4iLCJ1c2VybmFtZSI6bnVsbCwiZW1haWwiOm51bGwsIm1vYmlsZSI6IjE4NTc1NTY2NTYzIiwidXBkYXRlX3RpbWUiOiIyMDE5LTA0LTA5IDAwOjM1OjQxIiwiY3JlYXRlX3RpbWUiOiIyMDE5LTAzLTI3IDEwOjA0OjA4Iiwic3RhdHVzIjoxLCJsZWFkZXJfaWQiOjEsImlzX3NoYXJlX21lbWJlciI6MCwiaXNfaW5zaWRlIjowLCJqaWZlbl9zdW0iOjczNzAsInNleCI6MSwiYXJlYSI6IjIzMTIiLCJpc19wdXJjaGFzZV9jYXJfdGFyZ2V0IjoxLCJpc19jYXJfcHVyY2hhc2VfcGxhbiI6MSwiY2FyX3B1cmNoYXNlX3ByaWNlX2Nvc3QiOiIxMjMuMDAiLCJ4aW5nIjoiXHU2NzY4IiwibWluZyI6Ilx1OGZkYiIsInBob25lIjoiMTg1NzU1NjY1NjMiLCJjYXJfbW9kZWwiOiJcdTczYjBcdTRlZTMiLCJyZXNlcnZhdGlvbl90eXBlIjoxLCJtZW1iZXJfaWQiOjQ3LCJpc19uZXdfbWVtYmVyIjoyfX0.Hdain1pPPyUST3UjsMoUbgoAkJ1-ta5DwOeCYvdhLiM",
"data_sign": "7088aac4aa3798cd3e69d87ec174b427"
},
"exe_time": "1.086000"
}
<<<
error1
返回示例:
{
"code": 1000020,
"msg": "请选择性别",
"exe_time": "0.033993"
}
<<<
+++
* * * * *
* * * * *
* * * * *
## 2. 用户数据导出接口【已完】
> 导出问卷数据接口
+++
get:/questionnaire/exportQuestionnaire
*string:access_token#访问Token【Token附加参数,由前端算法生成】
int:type#用户类型:1:前途巡展用户 2:北京现代用户
<<<
success
返回示例:
excel文件
<<<
error
返回示例:
{
"code": 400,
"msg": "无问卷信息!",
"exe_time": "0.017000"
}
+++