获取360评估总览
接口概述
- 功能:获取360评估总览(仅支持360问卷)
- 请求方式:POST
- 请求地址:/api/surveys/{survey_id}/appraisals/result?appid={appid}&access_token={access_token}&page={1}&per_page={20}
请求参数
参数名 | 类型 | 参数位置 | 描述 | 示例值 |
---|---|---|---|---|
survey_id | integer | uri | 问卷ID | 292192 |
page | integer | queryString | 当前页码 | 1 |
per_page | integer | queryString | 每页显示条数 | 20 |
响应参数
参数名 | 类型 | 描述 |
---|---|---|
total | integer | 总条数 |
list | array[object] | 被评估人列表 |
list[_].staff_id | integer | 被评估人标识 用于查询评估明细 |
list[_].staff_user_id | integer | 被评估人用户ID |
list[_].staff_name | string | 被评估人昵称 |
list[_].appraiser_count | integer | 评估人数 |
list[_].result | integer | 最终得分 |
list[_].question_results | array[object] | 各题目得分数组 |
list[_].question_results[_].question_id | string | 题目ID |
list[_].question_results[_].result | string | 单个题目得分 |
响应示例
{
"code": "OK",
"error": {
"type": ""
},
"data": {
"list": [
{
"staff_id": 301210,
"staff_user_id": 500024390000,
"staff_name": "用户B",
"staff_group_id": 153209,
"staff_group_name": "运营",
"appraiser_count": 9,
"report_id": 0,
"result": 7.18,
"question_results": [
{
"question_id": "q-2-BJrH",
"result": 0
},
{
"question_id": "q-1-abcd",
"result": 3.5
}
]
},
{
"staff_id": 296377,
"staff_user_id": 500024390001,
"staff_name": "用户A",
"staff_group_id": 136037,
"staff_group_name": "运营",
"appraiser_count": 2,
"report_id": 10099,
"result": 4.18,
"question_results": [
{
"question_id": "q-2-BJrH",
"result": 0
},
{
"question_id": "q-1-abcd",
"result": 3.5
}
]
}
],
"total": 2
},
"request_id": "P86DDD9pzMmckcfp20240604170849"
}
- 请求失败
{
"code": "InvalidArgument",
"error": {
"type": "invalid_argument",
},
"data": {},
"request_id": "ddec96d2-165e-4f3e-8a64-2057db11q21zx"
}
错误码
error.type 错误代码 | 错误描述 |
---|---|
claim_error | 权限校验错误 |
invalid_argument | 参数校验不通过 |