1. 保存、编辑工作报告

接口名称 保存、编辑工作报告
功能描述 保存、编辑工作报告
请求地址 http://qy-ci.fdccloud.com/api/wzs/save-report?access_token=@access_token
请求方式 POST(HTTPS)

请求包结构

{
    "wzs_user_id": "wzs5f5985f185604096950085",
    "platform": 2,
    "version_name": "4.0.5",
    "__language__": "zh-CN",
    "tenant_id": "my56a9c966df069",
    "report": {
        "report_id": 267,
        "report_time": "2020-11-09",
        "content": "测试报告",
        "images": "https://oss-mytest.oss-cn-hangzhou.aliyuncs.com/1.png,https://oss-mytest.oss-cn-hangzhou.aliyuncs.com/2.png",
        "send_person": [{
            "is_person": false,
            "name": "集团管理层",
            "dept_id": "11b11db4-e907-4f1f-8835-b9daab6e1f23"
        }, {
            "avatar": "https://x.png",
            "is_person": true,
            "name": "张三",
            "user_id": "89877",
    }]
}
}

参数说明

参数 中文名 参数类型 说明
report_id 报告id int 传了为编辑,没传或者值小于等于0则为保存
report_time 报告时间 String
content 报告内容 String
images 报告图片 String 多个图片以逗号分隔
send_person.avatar 发送对象的头像 String
send_person.is_person 报告发送对象类型 bool true:人,false:部门
send_person.name 部门名称或者姓名 String
send_person.user_id 发送对象的用户标识 String user_id
send_person.dept_id 发送对象的部门id String 部门id

返回结果

{
    "success": 1,
    "data": {
        "code": 1,
        "message": "ok",
        "report_id": 267
    }
}
参数 类型 描述
code number 当前接口逻辑结果1-成功;非1-错误
message string 提示信息
success number 服务端框架层结果 1:成功 0:失败,对应的data为错误信息字符串
repori_id number 工作报告id

results matching ""

    No results matching ""