班次新增接口

简要描述
  • 班次新增接口
请求URL
  • http://10.10.1.31:8080/ops/manage/shifts/addShifts
修改接口也是一样的传递参数
` 当【轮流模式】的时候,weekList传递空数组;
`当【固定模式】的时候,peopleNumber 传递、shiftNumber传递 0、beOnDuty空字符串``
请求方式
  • POST
参数名 必选 类型 说明
peopleNumber int 值班人数
shiftNumber int 连续次数
pattern string “fixed/takeTur(固定/轮流),
请求json格式
{
    "shiName": "班次班次",
    "holidayBreak": "yes",
    "peopleNumber": 1,
    "shiftNumber": 1,
    "beOnDuty": "一,二,三",
    "displayOrder": 0,
    "startTime": "16:22",
    "stopTime": "16:22",
    "startDate": "2021-12-21",
    "remarks": "hello",
    "pattern": "fixed/takeTur",
    "weekList": [
        {
            "sunday": [],
            "saturday": [],
            "tuesday": [],
            "wednesday": [],
            "thursday": [],
            "friday": [],
            "id": "4fee27ef-952d-4e62-acb9-5568dc6d81e1",
            "monday": [
                {
                    "name": "仲平平",
                    "uuids": "48db5b98ce8e443b8293b64e1236f3ad"
                }
            ]
        },
        {
            "sunday": [
                {
                    "name": "彭波洛",
                    "uuids": "9770218209574db9b95b254aab807bfc"
                }
            ],
            "saturday": [],
            "tuesday": [
                {
                    "name": "冯杰",
                    "uuids": "9cdd365fb3f24d4faa8f5a94d59a6153"
                }
            ],
            "wednesday": [
                {
                    "name": "徐一翔",
                    "uuids": "f41893ae059b4aae9d5877c8a496666f"
                }
            ],
            "thursday": [
                {
                    "name": "崔倬苒",
                    "uuids": "c7dc3fd9c08d4aa0a1330ae68e5b13e4"
                }
            ],
            "friday": [
                {
                    "name": "刘子腾",
                    "uuids": "a45da632143240778c2a4728bf3dec03"
                }
            ],
            "id": "6c43b3e2-0d07-47cb-a50b-df5d94b28934",
            "monday": [
                {
                    "name": "傅泽义",
                    "uuids": "48853b63579249849f5b091e4ee17204"
                }
            ]
        }
    ]
}
返回的值
{
    "errorCode": 0,
    "message": "成功",
    "time": 1640139121240,
    "responseBody": null
}