简要描述:

  • 通知列表

请求域名:

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

未读列表:

GET/plugin/project-manager/notice/unread

已读列表:

GET/plugin/project-manager/notice/read

参数:

参数名 是否必须 类型 说明

返回示例:

正确时返回:

{
    "result": 1,
    "msg": "list",
    "data": {
        "current_page": 1,
        "data": [
            {
                "id": 1,
                "business_id": 0,
                "task_id": 3,
                "notice_uid": 1,
                "change_uid": 1,
                "notice_type": 1,
                "notice_desc": "进行中",
                "mark": null,
                "content": "测试任务",
                "status": 0,
                "created_at": "2022-05-12 16:13:22",
                "body": {
                    "head": "将状态更变为:进行中",
                    "title": "修改任务名称",
                    "content": "测试任务",
                    "footer": ""
                },
                "has_one_creator": {
                    "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,
                    "uniacid": 6,
                    "business_id": 0,
                    "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": 1,
                    "is_archive": 0,
                    "work_sort": 1652170428,
                    "start_time": "2022-04-27 15:24:19",
                    "deadline_time": null,
                    "archive_time": null,
                    "created_at": "2022-04-24 15:41:55"
                }
            },
            {
                "id": 2,
                "business_id": 0,
                "task_id": 3,
                "notice_uid": 1,
                "change_uid": 1,
                "notice_type": 4,
                "notice_desc": "",
                "mark": null,
                "content": null,
                "status": 0,
                "created_at": "2022-05-12 16:47:55",
                "body": {
                    "head": "给你分配了任务",
                    "title": "修改任务名称",
                    "content": "",
                    "footer": ""
                },
                "has_one_creator": {
                    "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,
                    "uniacid": 6,
                    "business_id": 0,
                    "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": 1,
                    "is_archive": 0,
                    "work_sort": 1652170428,
                    "start_time": "2022-04-27 15:24:19",
                    "deadline_time": null,
                    "archive_time": null,
                    "created_at": "2022-04-24 15:41:55"
                }
            },
            {
                "id": 4,
                "business_id": 0,
                "task_id": 3,
                "notice_uid": 1,
                "change_uid": 1,
                "notice_type": 2,
                "notice_desc": null,
                "mark": null,
                "content": null,
                "status": 0,
                "created_at": "2022-05-12 16:49:16",
                "body": {
                    "head": "邀请你加入到任务的参与人中",
                    "title": "修改任务名称",
                    "content": "",
                    "footer": ""
                },
                "has_one_creator": {
                    "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,
                    "uniacid": 6,
                    "business_id": 0,
                    "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": 1,
                    "is_archive": 0,
                    "work_sort": 1652170428,
                    "start_time": "2022-04-27 15:24:19",
                    "deadline_time": null,
                    "archive_time": null,
                    "created_at": "2022-04-24 15:41:55"
                }
            },
            {
                "id": 6,
                "business_id": 0,
                "task_id": 3,
                "notice_uid": 2,
                "change_uid": 1,
                "notice_type": 3,
                "notice_desc": null,
                "mark": null,
                "content": "擦收纳洒洒大范德维尔投入软体家具他",
                "status": 0,
                "created_at": "2022-05-12 17:10:37",
                "body": {
                    "head": "评论了任务",
                    "title": "修改任务名称",
                    "content": "擦收纳洒洒大范德维尔投入软体家具他",
                    "footer": ""
                },
                "has_one_creator": {
                    "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,
                    "uniacid": 6,
                    "business_id": 0,
                    "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": 1,
                    "is_archive": 0,
                    "work_sort": 1652170428,
                    "start_time": "2022-04-27 15:24:19",
                    "deadline_time": null,
                    "archive_time": null,
                    "created_at": "2022-04-24 15:41:55"
                }
            }
        ],
        "first_page_url": "http://demo.yun.cn/business/6/plugin/project-manager/notice/unread?page=1",
        "from": 1,
        "last_page": 1,
        "last_page_url": "http://demo.yun.cn/business/6/plugin/project-manager/notice/unread?page=1",
        "next_page_url": null,
        "path": "http://demo.yun.cn/business/6/plugin/project-manager/notice/unread",
        "per_page": 20,
        "prev_page_url": null,
        "to": 4,
        "total": 4
    }
}

错误时返回:

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

data参数说明

参数名 类型 说明
body array 消息内容体
status int 状态:0未读1已读
notice_type int 消息类型
created_at string 创建时间
has_one_staff obj 消息发布者

body参数说明:

参数名 类型 说明
head string 通知类型标题
title string 任务名称
content string 通知内容
footer string 底部内容

has_one_creator参数说明:

参数名 类型 说明
id int 员工ID
name string 员工名称
avatar string 员工头像

备注:

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