简要描述:

  • 任务评论列表

请求域名:

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

请求URL:

GET/plugin/project-manager/task/comment

参数:

参数名 是否必须 类型 说明
id int 任务ID

返回示例:

正确时返回:

{
    "result": 1,
    "msg": "comment list",
    "data": [
        {
            "id": 1,
            "uniacid": 6,
            "task_id": 3,
            "reply_id": null,
            "user_id": 1,
            "content": "擦洒洒大刀锋女王日为您服务i大富翁",
            "created_at": null,
            "updated_at": null,
            "deleted_at": null,
            "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"
            }
        }
    ]
}

错误时返回:

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

data参数说明

参数名 类型 说明
id int 评论ID
reply_id int 回复评论ID
task_id int 任务ID
content text 评论内容
attachment_url array 附件链接数组
has_one_staff obj 员工对象

has_one_staff参数说明:

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

备注:

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