获取360评估明细
#
接口概述- 功能:获取360评估明细(仅支持360问卷)
- 请求方式:GET
- 请求地址:/api/surveys/{survey_id}/appraisals/result/{staff_id}/relations?appid={appid}&access_token={access_token}
#
请求参数参数名 | 类型 | 参数位置 | 描述 | 示例值 |
---|---|---|---|---|
survey_id | integer | uri | 问卷ID | 292192 |
staff_id | integer | uri | 被评估人标识 | 1 |
#
响应参数参数名 | 类型 | 描述 |
---|---|---|
[_].appraisal_user_id | integer | 评估人用户ID |
[_].appraiser_name | string | 评估人用户昵称 |
[_].relation_name | string | 评估关系 |
[_].result | integer | 最终得分 |
[_].answer_id | integer | 评估问卷回收序号 |
[_].question_results | array[object] | 各题目得分数组 |
[_].question_results[_].question_id | string | 题目ID |
[_].question_results[_].result | string | 单个题目得分 |
#
响应示例{ "code": "OK", "error": { "type": "" }, "data": [ { "id": 10110, "appraiser_id": 21084709, "appraisal_user_id": 500024100001, "appraiser_name": "用户A", "relation_id": 1000, "relation_name": "自评", "relation_alias": "自评", "result": 5, "answer_id": 35, "question_results": [ { "question_id": "q-2-BJrH", "result": 2.1 }, { "question_id": "q-1-abcd", "result": 3.5 } ] }, { "id": 10110, "appraiser_id": 21084705, "appraisal_user_id": 500024100002, "appraiser_name": "用户B", "relation_id": 1002, "relation_name": "自评", "relation_alias": "自评", "result": 8, "answer_id": 30, "question_results": [ { "question_id": "q-2-BJrH", "result": 3 }, { "question_id": "q-1-abcd", "result": 3.6 } ] } ], "request_id": "iSO1bko6Dg2NNhnZ20240604172849"}
- 请求失败
{ "code": "InvalidArgument", "error": { "type": "invalid_argument", }, "data": {}, "request_id": "ddec96d2-165e-4f3e-8a64-2057db116d1s"}
#
错误码error.type 错误代码 | 错误描述 |
---|---|
claim_error | 权限校验错误 |
invalid_argument | 参数校验不通过 |