简要描述:

  • 工作台小组任务分页

请求域名:

  • https://dev15.yunzmall.com/business/25/plugin/project-manager/work/workTaskGroup?i=25&mid=164379&type=5&cid=11

请求URL:

POST/plugin/project-manager/work/workTaskGroup

参数:

参数名 是否必须 类型 说明
work_group_id int 工作台小组id

返回示例:

正确时返回:

{
    "result": 1,
    "msg": "ok",
    "data": {
        "current_page": 1,
        "data": [
            {
                "id": 1,
                "uniacid": 6,
                "business_id": 1,
                "project_id": 1,
                "staff_uid": 1,
                "create_uid": 1,
                "archive_uid": 0,
                "parent_id": 0,
                "name": "测试任务",
                "desc": "任务描述",
                "work_group_id": 1,
                "project_group_id": 0,
                "project_sort": 0,
                "priority": 0,
                "status": 0,
                "is_archive": 0,
                "work_sort": 0,
                "start_time": null,
                "deadline_time": null,
                "archive_time": null,
                "created_at": "2022-04-24 15:35:52",
                "status_body": {
                    "id": 0,
                    "name": "未开始",
                    "color": "#a7cfae",
                    "icon": "",
                    "desc": ""
                },
                "priority_name": "!! 普通",
                "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_project": {
                    "id": 1,
                    "uniacid": 6,
                    "business_id": 1,
                    "cover": "1",
                    "name": "默认项目",
                    "creator_uid": 2455,
                    "permit_visible": 1,
                    "is_share": 0,
                    "classify_id": 0,
                    "is_archive": 0,
                    "archive_time": null,
                    "created_at": "1970-01-01 08:00:00",
                    "updated_at": null,
                    "deleted_at": null,
                    "cover_str": "1"
                },
                "label": []
            },
            {
                "id": 2,
                "uniacid": 6,
                "business_id": 1,
                "project_id": 1,
                "staff_uid": 1,
                "create_uid": 1,
                "archive_uid": 0,
                "parent_id": 0,
                "name": "测试任务",
                "desc": "任务描述",
                "work_group_id": 0,
                "project_group_id": 0,
                "project_sort": 0,
                "priority": 0,
                "status": 0,
                "is_archive": 0,
                "work_sort": 1651044260,
                "start_time": null,
                "deadline_time": null,
                "archive_time": null,
                "created_at": "2022-04-24 15:35:52",
                "status_body": {
                    "id": 0,
                    "name": "未开始",
                    "color": "#a7cfae",
                    "icon": "",
                    "desc": ""
                },
                "priority_name": "!! 普通",
                "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_project": {
                    "id": 1,
                    "uniacid": 6,
                    "business_id": 1,
                    "cover": "1",
                    "name": "默认项目",
                    "creator_uid": 2455,
                    "permit_visible": 1,
                    "is_share": 0,
                    "classify_id": 0,
                    "is_archive": 0,
                    "archive_time": null,
                    "created_at": "1970-01-01 08:00:00",
                    "updated_at": null,
                    "deleted_at": null,
                    "cover_str": "1"
                },
                "label": [
                    {
                        "label_id": 1,
                        "name": "测试",
                        "style_color": "",
                        "pivot": {
                            "task_id": 2,
                            "label_id": 1
                        }
                    }
                ]
            },
            {
                "id": 3,
                "uniacid": 6,
                "business_id": 1,
                "project_id": 1,
                "staff_uid": 1,
                "create_uid": 1,
                "archive_uid": 0,
                "parent_id": 0,
                "name": "测试任务",
                "desc": "任务描述",
                "work_group_id": 0,
                "project_group_id": 0,
                "project_sort": 0,
                "priority": 0,
                "status": 1,
                "is_archive": 0,
                "work_sort": 1651044259,
                "start_time": "2022-04-27 15:24:19",
                "deadline_time": null,
                "archive_time": null,
                "created_at": "2022-04-24 15:41:55",
                "status_body": {
                    "id": 1,
                    "name": "进行中",
                    "color": "#a7cfae",
                    "icon": "",
                    "desc": ""
                },
                "priority_name": "!! 普通",
                "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_project": {
                    "id": 1,
                    "uniacid": 6,
                    "business_id": 1,
                    "cover": "1",
                    "name": "默认项目",
                    "creator_uid": 2455,
                    "permit_visible": 1,
                    "is_share": 0,
                    "classify_id": 0,
                    "is_archive": 0,
                    "archive_time": null,
                    "created_at": "1970-01-01 08:00:00",
                    "updated_at": null,
                    "deleted_at": null,
                    "cover_str": "1"
                },
                "label": [
                    {
                        "label_id": 1,
                        "name": "测试",
                        "style_color": "",
                        "pivot": {
                            "task_id": 3,
                            "label_id": 1
                        }
                    }
                ]
            }
        ],
        "from": 1,
        "last_page": 1,
        "per_page": 20,
        "prev_page_url": null,
        "to": 3,
        "total": 3
    }
}

错误时返回:

{
  "result": 0,
  "msg": "",
  "data": []
}

备注:

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