Skip to main content
Version: v24.03

获取待办事项

接口概述#

  • 功能:获取用户的待办
  • 请求方式:GET
  • 请求地址:/api/users/{user_id}/todolist

请求参数#

参数名类型参数位置描述示例值
user_idintegeruri用户ID60000000001
pageintegerqueryString页码1
per_pageintegerqueryString每页显示条数20

请求demo#

https://{{host}}/api/users/60000000001/todolist?appid={{appid}}&access_token={{access_token}}&page=1&per_page=10

响应参数#

参数名类型描述
totalinteger总条数
list[](object)待办列表
list[0].idinteger待办序号
list[0].survey_titlestring问卷标题
list[0].survey_idinteger问卷ID
list[0].survey_hashstring问卷hash
list[0].survey_sceneinteger问卷类型:1普通问卷 3考试问卷
list[0].created_atstring待办产生时间

响应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"}