文档
测试

登录/注册页面(10.11)

POST
http://localhost/fitness/auth/loginBySM

接口描述

注意:userType------2 普通用户登录注册,userType-----4 医生登录注册 8.18修改:增加血糖仪是否存在bgDeviceExist 10.11 增加userSig 和imUserId

请求头

参数名
类型
描述
必填

请求参数

参数名
类型
描述
必填
phone
int
示例:18970366956
必填
sm
int
示例:5165
必填
userType
int
示例:2
必填

响应参数

参数名
类型
描述
必填
msg
string
示例:登录成功
必填
userInfo
object
数据字典
必填
birthday
string
示例:1996-01-11
必填
currentStage
object
示例:null
必填
hasFamilyDiabetes
boolean
示例:false
必填
memberState
object
示例:null
必填
city
string
示例:上饶市
必填
avatarUrl
string
示例:Default_lit.gif
必填
sex
boolean
示例:true
必填
weight
int
示例:78
必填
diabetesType
object
示例:null
必填
userId
int
示例:3859
必填
hasDiabetes
boolean
示例:false
必填
trueName
string
示例:徐力晨
必填
hipline
object
示例:null
必填
avatarID
object
示例:null
必填
province
string
示例:江西省
必填
phone
string
示例:18970366956
必填
district
string
示例:信州区
必填
waist
object
示例:null
必填
id
int
示例:455
必填
isSport
boolean
示例:true
必填
isGourmand
boolean
示例:false
必填
bmi
float
示例:23.26
必填
height
int
示例:183
必填
state
int
示例:1
必填
sessionId
string
示例:E2AF07BA2DAC84A1FE4D6844B76DC8C4
必填
user
object
数据字典
必填
id
int
示例:3859
必填
registerDate
string
示例:2021-11-03 14:44:35
必填
regSource
object
示例:null
必填
name
string
示例:xlc2021
必填
type
int
示例:2
必填
password
string
示例:e6e407b1edb2cca3def82992c8ef32d9
必填
weixin
object
示例:null
必填
isActive
boolean
示例:true
必填
phone
string
示例:18970366956
必填
email
object
示例:null
必填
hasInfo
int
示例:1
必填
token
string
示例:8fe6ae3287a819e318ff310c57036c66
必填
hasPurchasePackage
integer
null or 0 or 1(购买了套餐)
必填
bgDeviceExist
Boolean
判断硅基
必填
ImToken
Sstring
dtElpmIRWIId2xA98Bta3Ocf/96l4v9DIslyln+H8bEWyPeJR38BCg==@54g0.cn.rongnav.com;54g0.cn.rongcfg.com
必填

说明 / 示例

{ "msg": "登录成功", "userInfo": { "birthday": "1996-01-11", "currentStage": null, "hasFamilyDiabetes": false, "memberState": null, "city": "上饶市", "avatarUrl": "Default_lit.gif", "sex": true, "weight": 78, "diabetesType": null, "userId": 3859, "hasDiabetes": false, "trueName": "徐力晨", "hipline": null, "avatarID": null, "province": "江西省", "phone": "18970366956", "district": "信州区", "waist": null, "id": 455, "isSport": true, "isGourmand": false, "bmi": 23.26, "height": 183 }, "state": 1, "sessionId": "E2AF07BA2DAC84A1FE4D6844B76DC8C4", "hasPurchasePackage": null, "user": { "id": 3859, "registerDate": "2021-11-03 14:44:35", "regSource": null, "name": "xlc2021", "type": 2, "password": "e6e407b1edb2cca3def82992c8ef32d9", "weixin": null, "isActive": true, "phone": "18970366956", "email": null }, "hasInfo": 1, "token": "8fe6ae3287a819e318ff310c57036c66" }