简要描述:
请求域名:
- https://dev8.yunzmall.com/business/1/
请求URL:
GET/plugin/project-manager/project/edit
参数:
参数名 |
是否必须 |
类型 |
说明 |
id |
是 |
int |
项目id |
返回示例:
正确时返回:
{
"result": 1,
"msg": "",
"data": {
"project": {
"id": 7,
"uniacid": 1,
"business_id": 6,
"cover": "https://dev4.yunzmall.com/attachment/images/9/2022/04/4c5d5e9970d045d1f86cb3186b5b5b18.jpg",
"name": "最新测试",
"creator_uid": 89,
"permit_visible": 1,
"is_share": 1,
"classify_id": 1,
"is_archive": 0,
"archive_time": null,
"created_at": "2022-05-05 16:49:33",
"updated_at": "2022-05-05 16:49:33",
"deleted_at": null,
"cover_str": "https://dev4.yunzmall.com/attachment/images/9/2022/04/4c5d5e9970d045d1f86cb3186b5b5b18.jpg",
"share_business": [
{
"id": 7,
"name": "广州市芸签信息科技有限公司",
"rule": "[\"edit\",\"read\"]",
"enterprise": 7,
"project_id": 7,
"pivot": {
"project_id": 7,
"enterprise": 7,
"rule": "[\"edit\",\"read\"]"
}
}
],
"participants_staff": [
{
"id": 67,
"name": "孙新建",
"avatar": "http://wework.qpic.cn/bizmail/r4f9blWlVJOpCPlAticV65autpiaZW6bLc74uEj20uqzYN6PRP3qgOwQ/0",
"user_id": 67,
"project_id": 7,
"userid": 67,
"avatar_mediaid": "http://wework.qpic.cn/bizmail/r4f9blWlVJOpCPlAticV65autpiaZW6bLc74uEj20uqzYN6PRP3qgOwQ/0",
"pivot": {
"project_id": 7,
"user_id": 67
}
},
{
"id": 66,
"name": "3089",
"avatar": "",
"user_id": 66,
"project_id": 7,
"userid": 66,
"avatar_mediaid": "",
"pivot": {
"project_id": 7,
"user_id": 66
}
}
]
}
}
}
错误时返回:
{
"result": 0,
"msg": "",
"data": []
}
project返回参数说明:
参数名 |
类型 |
说明 |
id |
int |
id |
name |
string |
名称 |
cover |
string |
封面图片。绝对地址cover_src |
creator_uid |
int |
创建人id |
permit_visible |
int |
可见范围:0公有1私有 |
is_share |
int |
是否共享:0否1是 |
classify_id |
int |
项目分类ID |
is_archive |
int |
是否归档:0否1是 |
archive_time |
string |
归档时间 |
share_business |
array |
共享企业信息 |
participants_staff |
array |
项目成员信息 |
is_auth |
bool |
true代表是当前登录企业的创始人或者法人 |
participants_staff返回参数说明:
参数名 |
类型 |
说明 |
name |
string |
名称 |
avatar |
string |
头像 |
user_id |
int |
成员id |
share_business返回参数说明:
参数名 |
类型 |
说明 |
name |
string |
企业名称 |
rule |
array |
权限数组:edit编辑,read查看,例:['edit','read'] |
enterprise |
int |
企业id |
备注: