简要描述:
请求域名:
- https://dev8.yunzmall.com/business/1/
请求URL:
GET/plugin/project-manager/task/annex
参数:
参数名 |
是否必须 |
类型 |
说明 |
id |
是 |
int |
任务ID |
返回示例:
正确时返回:
{
"result": 1,
"msg": "annex list",
"data": [
{
"id": 1,
"uniacid": 6,
"business_id": 1,
"task_id": 3,
"upload_by_uid": 1,
"file_type": "image",
"file_name": "sadasdada",
"file_size": "23434",
"file": "asdadasd",
"created_at": null,
"has_one_staff": {
"id": 1,
"uniacid": 6,
"business_id": 1,
"uid": 2455,
"user_id": "",
"name": "测试员工",
"mobile": "15012345678",
"position": "",
"gender": 0,
"telephone": "",
"email": "",
"avatar": "https://open.work.weixin.qq.com/wwopen/userQRCode?vcode=vc1020a663f6887d1a",
"alias": "",
"status": 0,
"qr_code": "",
"address": "",
"open_userid": "",
"main_department": "",
"updated_at": null,
"created_at": null,
"deleted_at": null,
"right_type": 0,
"disabled": 0,
"userid": "",
"avatar_mediaid": "https://open.work.weixin.qq.com/wwopen/userQRCode?vcode=vc1020a663f6887d1a"
},
"has_one_task": {
"id": 3,
"name": "测试任务"
}
}
]
}
错误时返回:
{
"result": 0,
"msg": "",
"data": []
}
data参数说明
参数名 |
类型 |
说明 |
task_id |
int |
任务编号 |
file_type |
string |
文件类型:image、video、file |
file_name |
string |
文件名称 |
file_size |
string |
文件大小,单位:b |
file |
string |
文件路径 |
created_at |
string |
创建时间 |
has_one_staff |
obj |
附件上传者对象 |
status_body参数说明:
参数名 |
类型 |
说明 |
id |
int |
状态ID |
name |
string |
标签名称 |
color |
string |
状态颜色 |
icon |
string |
标签图标 |
has_one_staff参数说明:
参数名 |
类型 |
说明 |
id |
int |
员工ID |
name |
string |
员工名称 |
avatar |
string |
员工头像 |
备注: