GET https://lxapi.lexiangla.com/cgi-bin/v1/staffs/{staff_id}/honor-rewards
支持分页参数:(通用说明?)
参数 | 是否必须 | 默认值 | 说明 |
---|---|---|---|
staff_id | 否 | 无 | 员工帐号 |
document
{
"data": [
{
"type": "honor_reward",
"id": "5e9a1e85a53f491894c59a70af943263",
"attributes": {
"honor_score": 1,
"created_at": "2024-05-20 16:37:21",
"reason": "按时完成任务,赠送你一个勋章"
},
"relationships": {
"medal": {
"data": {
"type": "medal",
"id": "e93a6395cba6482f8bfaf117976fba2f"
}
},
"sentBy": {
"data": {
"type": "staff",
"id": "zhangsan"
}
}
}
},
{
"type": "honor_reward",
"id": "1649939c45e349b98207116532f7b7ee",
"attributes": {
"honor_score": 1,
"created_at": "2024-05-17 17:11:27",
"reason": "按时完成任务,赠送你一个勋章"
},
"relationships": {
"medal": {
"data": {
"type": "medal",
"id": "440bb24db6e44e91b78b90c6d01a0ba2"
}
},
"sentBy": {
"data": {
"type": "staff",
"id": "system-bot"
}
}
}
}
],
"links": {
"first": "https://lxapi.lexiangla.com/cgi-bin/v1/staffs/zhangsan/honor-rewards?per_page=2&page=1",
"last": "https://lxapi.lexiangla.com/cgi-bin/v1/staffs/zhangsan/honor-rewards?per_page=2&page=26",
"prev": null,
"next": "https://lxapi.lexiangla.com/cgi-bin/v1/staffs/zhangsan/honor-rewards?per_page=2&page=2"
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 26,
"path": "https://lxapi.lexiangla.com/cgi-bin/v1/staffs/zhangsan/honor-rewards",
"per_page": 2,
"to": 2,
"total": 51
},
"included": [
{
"type": "medal",
"id": "e93a6395cba6482f8bfaf117976fba2f",
"attributes": {
"id": "e93a6395cba6482f8bfaf117976fba2f",
"title": "勋章1",
"description": "勋章描述",
"logo": "https://image-pub.lexiang-asset.com/company_85535ed0c66311e5a2f8bf5011933e87/assets/2024/05/e85bd12e-0c1e-11ef-8a35-22d119ace8e2.jpg",
"created_at": "2024-05-07 11:07:58",
"status": "已启用",
"scene": "同事互赠",
"dimension": "进取"
}
},
{
"type": "medal",
"id": "440bb24db6e44e91b78b90c6d01a0ba2",
"attributes": {
"id": "440bb24db6e44e91b78b90c6d01a0ba2",
"title": "勋章2",
"description": "这是一个测试的勋章",
"logo": "https://image-pub.lexiang-asset.com/company_85535ed0c66311e5a2f8bf5011933e87/assets/2024/05/2f3210f6-1401-11ef-9e67-0297149b799f.png",
"created_at": "2024-05-17 11:55:12",
"status": "已启用",
"scene": "平台颁发",
"dimension": "Collaboration"
}
},
{
"type": "staff",
"id": "zhangsan",
"attributes": {
"name": "zhangsan"
}
},
{
"type": "staff",
"id": "system-bot",
"attributes": {
"name": "小秘书"
}
}
]
}
参数 | 说明 |
---|---|
data.type | 类型为荣誉列表 |
data.attributes.honor_score | 荣誉值 |
data.attributes.created_at | 勋章颁发/赠送时间 |
data.attributes.reason | 勋章颁发/赠送原因 |
data.relationships.medal | 关联的勋章信息 |
data.relationships.sentBy | 勋章颁发/赠送人 |
data.included[0].title | 勋章名称 |
data.included[0].description | 勋章描述 |
data.included[0].logo | 勋章图标 |
data.included[0].created_at | 勋章主体创建时间 |
data.included[0].status | 勋章状态 |
data.included[0].scene | 勋章发放方式 |
data.included[0].dimension | 勋章维度 |
data.included[2].name | 勋章赠送人姓名 |