-
Notifications
You must be signed in to change notification settings - Fork 1
supervise smoke interface
stupid-coder edited this page Mar 8, 2016
·
2 revisions
项目戒烟管理接口用于管理对象的戒烟状态,并提供吸烟相关健康问题咨询。
复用Quota接口即可 URI: http://ip:port/curus/quota/add
字段名 | 类型 | 说明 |
---|---|---|
token | String | 用户标识 |
patient_id | Long | 管理对象ID |
cate | String | weight |
Quota | String | 吸烟情况JSON字符串,例如{“price”:10.5,”number”:10}, 标示20根烟10.5块,每天吸10根 |
字段名 | 类型 | 说明 |
data | null | null |
复用Quota接口即可 URI: http://ip:port/curus/quota/list
字段名 | 类型 | 说明 |
---|---|---|
token | String | 用户标识 |
patient_id | Long | 管理对象ID |
cate | String | weight |
字段名 | 类型 | 说明 |
---|---|---|
measure_date | Long | 时间戳 |
value.price | Double | 香烟价格 |
value.number | Long | 几根 |
URI: http://ip:port/curus/supervise/smoke/add
字段名 | 类型 | 说明 |
---|---|---|
token | String | |
patient_id | Long | |
smplan | String | 戒烟计划 |
URI: http://ip:port/curus/supervise/smoke/estimate
字段名 | 类型 | 说明 |
---|---|---|
token | String | |
patient_id | Long |
字段名 | 类型 | 说明 |
---|---|---|
days | Long | 戒烟天数 |
sv_money | Double | 戒烟剩下的钱数 |
lossposition | String | 为戒烟排行榜的JSON字符串,{[“time”:”0”,”percent”:0.0],[“time”:”7”,”percent”:1.0]} |
st_goal | String | 计划add中的smplan |
positionindex | String | 戒烟排行榜的index |