获取待办事项
#
接口概述- 功能:获取用户的待办
- 请求方式:GET
- 请求地址:/api/users/{user_id}/todolist
#
请求参数参数名 | 类型 | 参数位置 | 描述 | 示例值 |
---|---|---|---|---|
user_id | integer | uri | 用户ID | 60000000001 |
page | integer | queryString | 页码 | 1 |
per_page | integer | queryString | 每页显示条数 | 20 |
#
请求demohttps://{{host}}/api/users/60000000001/todolist?appid={{appid}}&access_token={{access_token}}&page=1&per_page=10
#
响应参数参数名 | 类型 | 描述 |
---|---|---|
total | integer | 总条数 |
list | [](object) | 待办列表 |
list[0].id | integer | 待办序号 |
list[0].survey_title | string | 问卷标题 |
list[0].survey_id | integer | 问卷ID |
list[0].survey_hash | string | 问卷hash |
list[0].survey_scene | integer | 问卷类型:1普通问卷 3考试问卷 |
list[0].created_at | string | 待办产生时间 |
#
响应demo{ "code": "OK", "error": { "type": "" }, "data": { "list": [ { "id": 4, "survey_hash": "7714", "survey_title": "todo", "survey_id": 10010, "survey_scene": 1, "created_at": "2023-06-28 10:26:54" }, { "id": 3, "survey_hash": "2451", "survey_title": "问卷标题", "survey_id": 10008, "survey_scene": 1, "created_at": "2023-06-15 20:08:51" }, { "id": 2, "survey_hash": "e791", "survey_title": "教师培训需求调查问卷", "survey_id": 10007, "survey_scene": 1, "created_at": "2023-06-15 20:03:48" } ], "total": 3 }, "request_id": "de3e9316-458f-47c3-9e52-0b310f0d06e7"}