简要描述:

  • 共享项目列表

请求域名:

  • https://dev8.yunzmall.com/business/1/

请求URL:

GET/plugin/project-manager/projectShare/index

参数:

参数名 是否必须 类型 说明
project_id int 项目ID
name string 项目名称
business string 所属企业名称
is_archive int 是否归档:0否1是
is_follow int 是否关注:0否1是
start int 搜索创建时间:开始时间
end int 搜索创建时间:结束时间

返回示例:

正确时返回:

{
	"result": 1,
	"msg": "",
	"data": {
		"list": {
			"current_page": 1,
			"data": [
				{
					"id": 24,
					"uniacid": 1,
					"business_id": 7,
					"cover": "/plugins/project-manager/assets/images/cover_6.png",
					"name": "项目名称12",
					"creator_uid": 101,
					"permit_visible": 0,
					"is_share": 1,
					"classify_id": 1,
					"is_archive": 0,
					"archive_time": null,
					"created_at": "2022-05-16 18:18:28",
					"updated_at": "2022-05-16 18:18:28",
					"deleted_at": null,
					"task_count": 0,
					"cover_str": "https://dev8.yunzmall.com/plugins/project-manager/assets/images/cover_6.png",
					"is_follow": 0,
					"user_follow": [],
					"business": {
						"id": 6,
						"name": "广州市芸众信息科技有限公司",
					}
				}
			],
			"first_page_url": "https://dev8.yunzmall.com/business/1/plugin/project-manager/projectShare/index?page=1",
			"from": 1,
			"last_page": 1,
			"last_page_url": "https://dev8.yunzmall.com/business/1/plugin/project-manager/projectShare/index?page=1",
			"next_page_url": null,
			"path": "https://dev8.yunzmall.com/business/1/plugin/project-manager/projectShare/index",
			"per_page": 20,
			"prev_page_url": null,
			"to": 1,
			"total": 1
		}
	}
}

错误时返回:

{
  "result": 0,
  "msg": "分类下有项目,无法删除",
  "data": []
}

list返回参数说明:分类列表(有分页)

参数名 类型 说明
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是
task_count int 任务数量
archive_time string 归档时间
is_follow int 是否关注:0否1是
business array 所属企业信息

business返回参数说明:

参数名 类型 说明
id int 企业id
name string 企业名称

备注:

  • 更多返回错误代码请看首页的错误代码描述