简要描述:
- 项目详情页附件列表
请求域名:
- https://dev8.yunzmall.com/business/1/
请求URL:
GET/plugin/project-manager/projectDetail/annex
参数:
参数名 | 是否必须 | 类型 | 说明 |
---|---|---|---|
project_id | 是 | int | 项目ID |
返回示例:
正确时返回:
{
"result": 1,
"msg": "",
"data": {
"list": {
"current_page": 1,
"data": [
{
"id": 1,
"upload_by_uid": 67,
"file_name": "4c5d5e9970d045d1f86cb3186b5b5b18",
"file_size": "10240",
"file": "https://dev4.yunzmall.com/attachment/images/9/2022/04/4c5d5e9970d045d1f86cb3186b5b5b18.jpg",
"has_one_staff": {
"id": 67,
"name": "孙新建",
"avatar": "http://wework.qpic.cn/bizmail/r4f9blWlVJOpCPlAticV65autpiaZW6bLc74uEj20uqzYN6PRP3qgOwQ/0",
"userid": null,
"avatar_mediaid": "http://wework.qpic.cn/bizmail/r4f9blWlVJOpCPlAticV65autpiaZW6bLc74uEj20uqzYN6PRP3qgOwQ/0"
}
}
],
"first_page_url": "https://dev8.yunzmall.com/business/1/plugin/project-manager/projectDetail/annex?page=1",
"from": 1,
"last_page": 1,
"last_page_url": "https://dev8.yunzmall.com/business/1/plugin/project-manager/projectDetail/annex?page=1",
"next_page_url": null,
"path": "https://dev8.yunzmall.com/business/1/plugin/project-manager/projectDetail/annex",
"per_page": 20,
"prev_page_url": null,
"to": 1,
"total": 1
}
}
}
错误时返回:
{
"result": 0,
"msg": "",
"data": []
}
list返回参数说明:附件列表
参数名 | 类型 | 说明 |
---|---|---|
id | int | id |
upload_by_uid | int | 上传人id |
file_name | string | 文件名 |
file_size | int | 文件大小,单位B,换算kb需要除于1024 |
file | string | 文件整体路径 |
has_one_staff | array | 上传者信息 |
has_one_staff参数说明:
参数名 | 类型 | 说明 |
---|---|---|
id | int | 员工ID |
name | string | 员工名称 |
avatar | string | 员工头像 |
备注:
- 更多返回错误代码请看首页的错误代码描述