文档
测试

2、获取肥胖症预测记录

GET
http://localhost:88/api/predict/obsity/getObesityHistory?page=1&limit=10

接口描述

根据用户信息获取肥胖症预测记录

请求头

参数名
类型
描述
必填
Authorization
string
jwt身份认证信息
必填

URL参数

参数名
类型
描述
必填
page
int
当前页码
必填
limit
int
每页记录数
必填

响应参数

参数名
类型
描述
msg
string
提示信息
code
int
0-成功,其他业务码-失败
page
object
分页信息
totalCount
int
数据总数
pageSize
int
分页数量
totalPage
int
总页数
currPage
int
当前页码
list
array
数据列表
id
int
自增id
userId
string
用户id
height
int
身高(cm)
weight
int
体重(kg)
bmi
double
体质指数
bmiStatus
string
胖瘦程度
createAt
date
创建时间
updateAt
date
修改时间
result
string
预测结果
showStatus
int
删除逻辑状态

响应数据示例

```json { "msg": "success", "code": 0, "page": { "totalCount": 5, "pageSize": 10, "totalPage": 1, "currPage": 1, "list": [ { "id": 20, "userId": "1491351452034928641", "height": 187, "weight": 57, "bmi": 22.88, "bmiStatus": "正常", "createAt": "2022-03-26 03:33:01", "updateAt": "2022-03-26 03:33:01", "result": "thin", "showStatus": 0 // 0-未删除,1-已删除 } ] } }