/** * @api {get} /v1/home/permissions 01.查询当前登录用户的权限 * @apiName 查询当前登录用户的权限 * @apiGroup 主页 * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiVersion 1.0.0 * @apiSuccess { String[] } data 数据 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":[""], "message":"", "code":1} */ /** * @api {put} /v1/home/update/password 02.更新用户密码 * @apiName 更新用户密码 * @apiGroup 主页 * @apiHeader {String = application/json} Content-Type = application/json * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiVersion 1.0.0 * @apiBody { String } password 密码(md5加密) * @apiSuccess { Boolean } data 数据 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":true, "message":"", "code":1} */ /** * @api {get} /v1/home/patrol/task/rate 03.当月巡检任务完成率 * @apiName 当月巡检任务完成率 * @apiGroup 主页 * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiVersion 1.0.0 * @apiSuccess { Object } data 数据 * @apiSuccess { Long } data.completed 已完成 * @apiSuccess { Long } data.total 总计 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":{"completed":1, "total":1}, "message":"", "code":1} */ /** * @api {get} /v1/home/upkeep/task/rate 04.查询当月保养任务完成率 * @apiName 查询当月保养任务完成率 * @apiGroup 主页 * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiVersion 1.0.0 * @apiSuccess { Object } data 数据 * @apiSuccess { Long } data.completed 已完成 * @apiSuccess { Long } data.total 总计 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":{"completed":1, "total":1}, "message":"", "code":1} */ /** * @api {get} /v1/home/patrol/task/times 05.查询巡检次数 * @apiName 查询巡检次数 * @apiGroup 主页 * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiVersion 1.0.0 * @apiSuccess { Object[] } data 数据 * @apiSuccess { Date } data.time 日期 * @apiSuccess { Integer } data.missed 漏检次数,完成次数=总计-漏检 * @apiSuccess { Integer } data.total 总计 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":[{"time":1650761871414, "missed":1, "total":1}], "message":"", "code":1} */ /** * @api {get} /v1/home/visitor 06.查询当前机房访客人员 * @apiName 查询当前机房访客人员 * @apiGroup 主页 * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiVersion 1.0.0 * @apiQuery { Integer } [ page = 1 ] 页码 * @apiQuery { Integer } [ size = 10 ] 页大小 * @apiSuccess { Object } data 数据 * @apiSuccess { Long } data.total 数据总数 * @apiSuccess { Object[] } data.list 数据列表 * @apiSuccess { Long } data.list.id id主键 * @apiSuccess { String } data.list.openid 用户openid * @apiSuccess { Integer } data.list.number 编号,年+4位编号 * @apiSuccess { String } data.list.username 访客姓名 * @apiSuccess { String } data.list.userPhone 访客手机号 * @apiSuccess { String } data.list.company 访客公司 * @apiSuccess { Boolean } data.list.contact 是否密接 * @apiSuccess { Boolean } data.list.highRisk 是否高风险 * @apiSuccess { Boolean } data.list.confirm 是否确诊 * @apiSuccess { Date } data.list.entryTime 进入时间 * @apiSuccess { String } data.list.reason 事由 * @apiSuccess { Date } data.list.leaveTime 离开时间 * @apiSuccess { String } data.list.remark 出场备注 * @apiSuccess { String } data.list.images 图片 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":{"total":1, "list":[{"id":1, "openid":"", "number":1, "username":"", "userPhone":"", "company":"", "contact":true, "highRisk":true, "confirm":true, "entryTime":1650761871414, "reason":"", "leaveTime":1650761871414, "remark":"", "images":""}]}, "message":"", "code":1} */ /** * @api {get} /v1/home/attendance/statistical 07.查询月评分排行 * @apiName 查询月评分排行 * @apiGroup 主页 * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiVersion 1.0.0 * @apiQuery { Integer } [ page = 1 ] 页码 * @apiQuery { Integer } [ size = 10 ] 页大小 * @apiSuccess { Object } data 数据 * @apiSuccess { Long } data.total 数据总数 * @apiSuccess { Object[] } data.list 数据列表 * @apiSuccess { Long } data.list.userId 用户id * @apiSuccess { String } data.list.username 用户姓名 * @apiSuccess { String } data.list.telephone 手机号 * @apiSuccess { Integer } data.list.score 本月评分 * @apiSuccess { String } data.list.month 考勤年月 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":{"total":1, "list":[{"userId":1, "username":"", "telephone":"", "score":1, "month":""}]}, "message":"", "code":1} */ /** * @api {get} /v1/home/electricity/statistical 08.查询最近一年电量统计数据 * @apiName 查询最近一年电量统计数据 * @apiGroup 主页 * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiVersion 1.0.0 * @apiSuccess { Object[] } data 数据 * @apiSuccess { String } data.year 年 * @apiSuccess { String } data.month 月 * @apiSuccess { Float } data.electricityIt it用电量 * @apiSuccess { Float } data.electricityTotal 总用电量 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":[{"year":"", "month":"", "electricityIt":1.0, "electricityTotal":1.0}], "message":"", "code":1} */ /** * @api {get} /v1/home/cabinet/usage 09.查询机柜使用率 * @apiName 查询机柜使用率 * @apiGroup 主页 * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiVersion 1.0.0 * @apiSuccess { Object } data 数据 * @apiSuccess { Integer } data.used 已使用 * @apiSuccess { Integer } data.total 总计 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":{"used":1, "total":1}, "message":"", "code":1} */ /** * @api {get} /v1/home/room/usage 10.查询数据机房占用率 * @apiName 查询数据机房占用率 * @apiGroup 主页 * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiVersion 1.0.0 * @apiSuccess { Object[] } data 数据 * @apiSuccess { String } data.buildingName 楼栋名称 * @apiSuccess { String } data.floorName 楼层名称 * @apiSuccess { String } data.roomName 房间名称 * @apiSuccess { Integer } data.used 已使用 * @apiSuccess { Integer } data.total 总计 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":[{"buildingName":"", "floorName":"", "roomName":"", "used":1, "total":1}], "message":"", "code":1} */ /** * @api {post} /v1/check/item/type/add 01.添加项目类别 * @apiName 添加项目类别 * @apiGroup 检查项目-项目分类 * @apiHeader {String = application/json} Content-Type = application/json * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/check/item/type/add#POST】 * @apiVersion 1.0.0 * @apiBody { Long } [ id ] id 主键 * @apiBody { String } [ typeName ] 类别名称 * @apiBody { String } [ seq ] 类别排序 * @apiBody { String } [ remark ] 备注 * @apiSuccess { Object } data 数据 * @apiSuccess { Long } data.id id 主键 * @apiSuccess { String } data.typeName 类别名称 * @apiSuccess { String } data.seq 类别排序 * @apiSuccess { String } data.remark 备注 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":{"id":1, "typeName":"", "seq":"", "remark":""}, "message":"", "code":1} */ /** * @api {put} /v1/check/item/type/update 02.更新项目类别 * @apiName 更新项目类别 * @apiGroup 检查项目-项目分类 * @apiHeader {String = application/json} Content-Type = application/json * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/check/item/type/update#PUT】 * @apiVersion 1.0.0 * @apiBody { Long } [ id ] id 主键 * @apiBody { String } [ typeName ] 类别名称 * @apiBody { String } [ seq ] 类别排序 * @apiBody { String } [ remark ] 备注 * @apiSuccess { Object } data 数据 * @apiSuccess { Long } data.id id 主键 * @apiSuccess { String } data.typeName 类别名称 * @apiSuccess { String } data.seq 类别排序 * @apiSuccess { String } data.remark 备注 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":{"id":1, "typeName":"", "seq":"", "remark":""}, "message":"", "code":1} */ /** * @api {get} /v1/check/item/type/query/:id 03.查询项目类别 * @apiName 查询项目类别 * @apiGroup 检查项目-项目分类 * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/check/item/type/query/{id}#GET】 * @apiVersion 1.0.0 * @apiParam { Long } id 项目类别id * @apiSuccess { Object } data 数据 * @apiSuccess { Long } data.id id 主键 * @apiSuccess { String } data.typeName 类别名称 * @apiSuccess { String } data.seq 类别排序 * @apiSuccess { String } data.remark 备注 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":{"id":1, "typeName":"", "seq":"", "remark":""}, "message":"", "code":1} */ /** * @api {get} /v1/check/item/type/list 04.分页查询项目类别 * @apiName 分页查询项目类别 * @apiGroup 检查项目-项目分类 * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/check/item/type/list#GET】 * @apiVersion 1.0.0 * @apiQuery { String } [ typeName ] 类别名称 * @apiQuery { String } [ seq ] 类别排序 * @apiQuery { String } [ remark ] 备注 * @apiQuery { Integer } [ page = 1 ] 页码 * @apiQuery { Integer } [ size = 10 ] 页大小 * @apiQuery { String { ^[-+][\w]+ } } [ order = -id ] 排序规则(默认ID倒序),排序字段前加:+表示正序 -表示倒序 * @apiSuccess { Object } data 数据 * @apiSuccess { Long } data.total 数据总数 * @apiSuccess { Object[] } data.list 数据列表 * @apiSuccess { Long } data.list.id id 主键 * @apiSuccess { String } data.list.typeName 类别名称 * @apiSuccess { String } data.list.seq 类别排序 * @apiSuccess { String } data.list.remark 备注 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":{"total":1, "list":[{"id":1, "typeName":"", "seq":"", "remark":""}]}, "message":"", "code":1} */ /** * @api {delete} /v1/check/item/type/delete 05.删除多条项目类别 * @apiName 删除多条项目类别 * @apiGroup 检查项目-项目分类 * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/check/item/type/delete#DELETE】 * @apiVersion 1.0.0 * @apiQuery { Long[] { 1-2147483647 } } ids 项目类别id数组 * @apiSuccess { Boolean } data 数据 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":true, "message":"", "code":1} */ /** * @api {delete} /v1/check/item/type/delete/:id 06.删除项目类别 * @apiName 删除项目类别 * @apiGroup 检查项目-项目分类 * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/check/item/type/delete/{id}#DELETE】 * @apiVersion 1.0.0 * @apiParam { Long } id 项目类别id * @apiSuccess { Boolean } data 数据 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":true, "message":"", "code":1} */ /** * @api {delete} /v1/check/item/delete/:id 01.删除检查项 * @apiName 删除检查项 * @apiGroup 检查项目-项目 * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/check/item/delete/{id}#DELETE】 * @apiVersion 1.0.0 * @apiParam { Long } id 检查项id * @apiSuccess { Boolean } data 数据 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":true, "message":"", "code":1} */ /** * @api {delete} /v1/check/item/delete 02.删除多条检查项 * @apiName 删除多条检查项 * @apiGroup 检查项目-项目 * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/check/item/delete#DELETE】 * @apiVersion 1.0.0 * @apiQuery { Long[] { 1-2147483647 } } ids 检查项id数组 * @apiSuccess { Boolean } data 数据 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":true, "message":"", "code":1} */ /** * @api {get} /v1/check/item/list 03.分页查询检查项 * @apiName 分页查询检查项 * @apiGroup 检查项目-项目 * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/check/item/list#GET】 * @apiVersion 1.0.0 * @apiQuery { String } [ itemNo ] 检查项编号 * @apiQuery { String } [ itemName ] 检查项名称 * @apiQuery { Integer } [ itemType ] 检查项类别 1选择、2数字、3文本、4拍照 * @apiQuery { Boolean } [ isRequired ] 是否必填 * @apiQuery { String } [ defaultValue ] 默认值 * @apiQuery { Boolean } [ isScore ] 是否参与评分 * @apiQuery { Long } [ patrolTypeId ] 检查类别id * @apiQuery { String } [ patrolTypeName ] 检查类别名称 冗余字段 * @apiQuery { Long } [ userId ] 所属人员id * @apiQuery { String } [ username ] 所属人员名称 * @apiQuery { String } [ remark ] 备注说明 * @apiQuery { Integer } [ page = 1 ] 页码 * @apiQuery { Integer } [ size = 10 ] 页大小 * @apiQuery { String { ^[-+][\w]+ } } [ order = -id ] 排序规则(默认ID倒序),排序字段前加:+表示正序 -表示倒序 * @apiSuccess { Object } data 数据 * @apiSuccess { Long } data.total 数据总数 * @apiSuccess { Object[] } data.list 数据列表 * @apiSuccess { Long } data.list.id id 主键 * @apiSuccess { String } data.list.itemNo 检查项编号 * @apiSuccess { String } data.list.itemName 检查项名称 * @apiSuccess { Integer } data.list.itemType 检查项类别 1选择、2数字、3文本、4拍照 * @apiSuccess { Boolean } data.list.isRequired 是否必填 * @apiSuccess { String } data.list.defaultValue 默认值 * @apiSuccess { Boolean } data.list.isScore 是否参与评分 * @apiSuccess { Long } data.list.patrolTypeId 检查类别id * @apiSuccess { String } data.list.patrolTypeName 检查类别名称 冗余字段 * @apiSuccess { Long } data.list.userId 所属人员id * @apiSuccess { String } data.list.username 所属人员名称 * @apiSuccess { String } data.list.remark 备注说明 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":{"total":1, "list":[{"id":1, "itemNo":"", "itemName":"", "itemType":1, "isRequired":true, "defaultValue":"", "isScore":true, "patrolTypeId":1, "patrolTypeName":"", "userId":1, "username":"", "remark":""}]}, "message":"", "code":1} */ /** * @api {get} /v1/check/item/query/select/:id 04.获取选择项详情 * @apiName 获取选择项详情 * @apiGroup 检查项目-项目 * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/check/item/query/select/{id}#GET】 * @apiVersion 1.0.0 * @apiParam { Long } id 检查项id * @apiSuccess { Object } data 数据 * @apiSuccess { Object } data.checkItem 检查主项 * @apiSuccess { Long } data.checkItem.id id 主键 * @apiSuccess { String } data.checkItem.itemNo 检查项编号 * @apiSuccess { String } data.checkItem.itemName 检查项名称 * @apiSuccess { Integer } data.checkItem.itemType 检查项类别 1选择、2数字、3文本、4拍照 * @apiSuccess { Boolean } data.checkItem.isRequired 是否必填 * @apiSuccess { String } data.checkItem.defaultValue 默认值 * @apiSuccess { Boolean } data.checkItem.isScore 是否参与评分 * @apiSuccess { Long } data.checkItem.patrolTypeId 检查类别id * @apiSuccess { String } data.checkItem.patrolTypeName 检查类别名称 冗余字段 * @apiSuccess { Long } data.checkItem.userId 所属人员id * @apiSuccess { String } data.checkItem.username 所属人员名称 * @apiSuccess { String } data.checkItem.remark 备注说明 * @apiSuccess { Boolean } data.allowMultiple 是否允许多选 * @apiSuccess { Object[] } data.options 选项列表 * @apiSuccess { Long } data.options.id id 主键 * @apiSuccess { Long } data.options.checkItemId 检查项id * @apiSuccess { String } data.options.optionName 选项名称 * @apiSuccess { Boolean } data.options.qualifiedIfSelect 选中是否合格 * @apiSuccess { Boolean } data.options.qualifiedIfNoSelect 未选中是否合格 * @apiSuccess { Boolean } data.options.defaultSelect 是否默认选中 * @apiSuccess { Integer } data.options.score 合格评分 * @apiSuccess { Integer } data.options.seq 排序 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":{"checkItem":{"id":1, "itemNo":"", "itemName":"", "itemType":1, "isRequired":true, "defaultValue":"", "isScore":true, "patrolTypeId":1, "patrolTypeName":"", "userId":1, "username":"", "remark":""}, "allowMultiple":true, "options":[{"id":1, "checkItemId":1, "optionName":"", "qualifiedIfSelect":true, "qualifiedIfNoSelect":true, "defaultSelect":true, "score":1, "seq":1}]}, "message":"", "code":1} */ /** * @api {post} /v1/check/item/add/select 05.添加选择项 * @apiName 添加选择项 * @apiGroup 检查项目-项目 * @apiHeader {String = application/json} Content-Type = application/json * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/check/item/add/select#POST】 * @apiVersion 1.0.0 * @apiBody { Object } checkItem 检查主项 * @apiBody { String } checkItem.itemName 检查项名称 * @apiBody { Integer } checkItem.itemType 检查项类别 1选择、2数字、3文本、4拍照 * @apiBody { Boolean } checkItem.isRequired 是否必填 * @apiBody { String } [ checkItem.defaultValue ] 默认值 * @apiBody { Boolean } checkItem.isScore 是否参与评分 * @apiBody { Long } checkItem.patrolTypeId 巡检类别id * @apiBody { String } checkItem.patrolTypeName 巡检类别名称 冗余字段 * @apiBody { String } [ checkItem.remark ] 备注说明 * @apiBody { Boolean } allowMultiple 是否允许多选 * @apiBody { Object[] { 1..2147483647 } } options 选择项 * @apiBody { String } options.optionName 选项名称 * @apiBody { Boolean } options.qualifiedIfSelect 选中是否合格 * @apiBody { Boolean } options.qualifiedIfNoSelect 未选中是否合格 * @apiBody { Boolean } options.defaultSelect 是否默认选中 * @apiBody { Integer } options.score 合格评分 * @apiBody { Integer } options.seq 排序 * @apiSuccess { Boolean } data 数据 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":true, "message":"", "code":1} */ /** * @api {put} /v1/check/item/update/select 06.更新选择项 * @apiName 更新选择项 * @apiGroup 检查项目-项目 * @apiHeader {String = application/json} Content-Type = application/json * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/check/item/update/select#PUT】 * @apiVersion 1.0.0 * @apiBody { Object } checkItem 检查主项 * @apiBody { Long } checkItem.id id 主键 * @apiBody { String } checkItem.itemName 检查项名称 * @apiBody { Integer } checkItem.itemType 检查项类别 1选择、2数字、3文本、4拍照 * @apiBody { Boolean } checkItem.isRequired 是否必填 * @apiBody { String } [ checkItem.defaultValue ] 默认值 * @apiBody { Boolean } checkItem.isScore 是否参与评分 * @apiBody { Long } checkItem.patrolTypeId 巡检类别id * @apiBody { String } checkItem.patrolTypeName 巡检类别名称 冗余字段 * @apiBody { String } [ checkItem.remark ] 备注说明 * @apiBody { Boolean } allowMultiple 是否允许多选 * @apiBody { Object[] { 1..2147483647 } } options 选择项 * @apiBody { String } options.optionName 选项名称 * @apiBody { Boolean } options.qualifiedIfSelect 选中是否合格 * @apiBody { Boolean } options.qualifiedIfNoSelect 未选中是否合格 * @apiBody { Boolean } options.defaultSelect 是否默认选中 * @apiBody { Integer } options.score 合格评分 * @apiBody { Integer } options.seq 排序 * @apiSuccess { Boolean } data 数据 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":true, "message":"", "code":1} */ /** * @api {get} /v1/check/item/query/num/:id 07.获取数字项详情 * @apiName 获取数字项详情 * @apiGroup 检查项目-项目 * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/check/item/query/num/{id}#GET】 * @apiVersion 1.0.0 * @apiParam { Long } id 检查项id * @apiSuccess { Object } data 数据 * @apiSuccess { Object } data.checkItem 检查项 * @apiSuccess { Long } data.checkItem.id id 主键 * @apiSuccess { String } data.checkItem.itemNo 检查项编号 * @apiSuccess { String } data.checkItem.itemName 检查项名称 * @apiSuccess { Integer } data.checkItem.itemType 检查项类别 1选择、2数字、3文本、4拍照 * @apiSuccess { Boolean } data.checkItem.isRequired 是否必填 * @apiSuccess { String } data.checkItem.defaultValue 默认值 * @apiSuccess { Boolean } data.checkItem.isScore 是否参与评分 * @apiSuccess { Long } data.checkItem.patrolTypeId 检查类别id * @apiSuccess { String } data.checkItem.patrolTypeName 检查类别名称 冗余字段 * @apiSuccess { Long } data.checkItem.userId 所属人员id * @apiSuccess { String } data.checkItem.username 所属人员名称 * @apiSuccess { String } data.checkItem.remark 备注说明 * @apiSuccess { Object } data.extra 数字项额外信息 * @apiSuccess { Long } data.extra.id id 主键 * @apiSuccess { Long } data.extra.checkItemId 检查项id * @apiSuccess { String } data.extra.unit 单位 * @apiSuccess { Integer } data.extra.decimalPlaces 小数点后位数 * @apiSuccess { Integer } data.extra.qualifiedScore 合格评分 * @apiSuccess { Integer } data.extra.noQualifiedScore 不合格评分 * @apiSuccess { String } data.extra.validMaxValue 有效值上限 * @apiSuccess { String } data.extra.validMinValue 有效值下限 * @apiSuccess { String } data.extra.qualifiedMaxValue 合格值上限 * @apiSuccess { String } data.extra.qualifiedMinValue 合格值下限 * @apiSuccess { Boolean } data.extra.checkValidMaxValue 是否强制校验有效值上限 输入值不能大于有效值上限 * @apiSuccess { Boolean } data.extra.checkValidMinValue 是否强制校验有效值下限 输入值不能大于有效值下限 * @apiSuccess { Boolean } data.extra.checkQualifiedMaxValue 是否强制校验合格值上限 输入值大于合格值上限时为不合格 * @apiSuccess { Boolean } data.extra.checkQualifiedMinValue 是否强制校验合格值下限 输入值小于合格值下限时为不合格 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":{"checkItem":{"id":1, "itemNo":"", "itemName":"", "itemType":1, "isRequired":true, "defaultValue":"", "isScore":true, "patrolTypeId":1, "patrolTypeName":"", "userId":1, "username":"", "remark":""}, "extra":{"id":1, "checkItemId":1, "unit":"", "decimalPlaces":1, "qualifiedScore":1, "noQualifiedScore":1, "validMaxValue":"", "validMinValue":"", "qualifiedMaxValue":"", "qualifiedMinValue":"", "checkValidMaxValue":true, "checkValidMinValue":true, "checkQualifiedMaxValue":true, "checkQualifiedMinValue":true}}, "message":"", "code":1} */ /** * @api {post} /v1/check/item/add/num 08.添加数字项 * @apiName 添加数字项 * @apiGroup 检查项目-项目 * @apiHeader {String = application/json} Content-Type = application/json * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/check/item/add/num#POST】 * @apiVersion 1.0.0 * @apiBody { Object } checkItem 检查项 * @apiBody { String } checkItem.itemName 检查项名称 * @apiBody { Integer } checkItem.itemType 检查项类别 1选择、2数字、3文本、4拍照 * @apiBody { Boolean } checkItem.isRequired 是否必填 * @apiBody { String } [ checkItem.defaultValue ] 默认值 * @apiBody { Boolean } checkItem.isScore 是否参与评分 * @apiBody { Long } checkItem.patrolTypeId 巡检类别id * @apiBody { String } checkItem.patrolTypeName 巡检类别名称 冗余字段 * @apiBody { String } [ checkItem.remark ] 备注说明 * @apiBody { Object } extra 数字项 * @apiBody { String } [ extra.unit ] 单位 * @apiBody { Integer } extra.decimalPlaces 小数点后位数 * @apiBody { Integer } extra.qualifiedScore 合格评分 * @apiBody { Integer } extra.noQualifiedScore 不合格评分 * @apiBody { String } [ extra.validMaxValue ] 有效值上限 * @apiBody { String } [ extra.validMinValue ] 有效值下限 * @apiBody { String } [ extra.qualifiedMaxValue ] 合格值上限 * @apiBody { String } [ extra.qualifiedMinValue ] 合格值下限 * @apiBody { Boolean } extra.checkValidMaxValue 是否强制校验有效值上限 输入值不能大于有效值上限 * @apiBody { Boolean } extra.checkValidMinValue 是否强制校验有效值下限 输入值不能大于有效值下限 * @apiBody { Boolean } extra.checkQualifiedMaxValue 是否强制校验合格值上限 输入值大于合格值上限时为不合格 * @apiBody { Boolean } extra.checkQualifiedMinValue 是否强制校验合格值下限 输入值小于合格值下限时为不合格 * @apiSuccess { Boolean } data 数据 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":true, "message":"", "code":1} */ /** * @api {put} /v1/check/item/update/num 09.更新数字项 * @apiName 更新数字项 * @apiGroup 检查项目-项目 * @apiHeader {String = application/json} Content-Type = application/json * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/check/item/update/num#PUT】 * @apiVersion 1.0.0 * @apiBody { Object } checkItem 检查项 * @apiBody { Long } checkItem.id id 主键 * @apiBody { String } checkItem.itemName 检查项名称 * @apiBody { Integer } checkItem.itemType 检查项类别 1选择、2数字、3文本、4拍照 * @apiBody { Boolean } checkItem.isRequired 是否必填 * @apiBody { String } [ checkItem.defaultValue ] 默认值 * @apiBody { Boolean } checkItem.isScore 是否参与评分 * @apiBody { Long } checkItem.patrolTypeId 巡检类别id * @apiBody { String } checkItem.patrolTypeName 巡检类别名称 冗余字段 * @apiBody { String } [ checkItem.remark ] 备注说明 * @apiBody { Object } extra 数字项 * @apiBody { Long } extra.id id 主键 * @apiBody { String } [ extra.unit ] 单位 * @apiBody { Integer } extra.decimalPlaces 小数点后位数 * @apiBody { Integer } extra.qualifiedScore 合格评分 * @apiBody { Integer } extra.noQualifiedScore 不合格评分 * @apiBody { String } [ extra.validMaxValue ] 有效值上限 * @apiBody { String } [ extra.validMinValue ] 有效值下限 * @apiBody { String } [ extra.qualifiedMaxValue ] 合格值上限 * @apiBody { String } [ extra.qualifiedMinValue ] 合格值下限 * @apiBody { Boolean } extra.checkValidMaxValue 是否强制校验有效值上限 输入值不能大于有效值上限 * @apiBody { Boolean } extra.checkValidMinValue 是否强制校验有效值下限 输入值不能大于有效值下限 * @apiBody { Boolean } extra.checkQualifiedMaxValue 是否强制校验合格值上限 输入值大于合格值上限时为不合格 * @apiBody { Boolean } extra.checkQualifiedMinValue 是否强制校验合格值下限 输入值小于合格值下限时为不合格 * @apiSuccess { Boolean } data 数据 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":true, "message":"", "code":1} */ /** * @api {get} /v1/check/item/query/txt/:id 10.获取文本项详情 * @apiName 获取文本项详情 * @apiGroup 检查项目-项目 * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/check/item/query/txt/{id}#GET】 * @apiVersion 1.0.0 * @apiParam { Long } id 检查项id * @apiSuccess { Object } data 数据 * @apiSuccess { Object } data.checkItem 检查项 * @apiSuccess { Long } data.checkItem.id id 主键 * @apiSuccess { String } data.checkItem.itemNo 检查项编号 * @apiSuccess { String } data.checkItem.itemName 检查项名称 * @apiSuccess { Integer } data.checkItem.itemType 检查项类别 1选择、2数字、3文本、4拍照 * @apiSuccess { Boolean } data.checkItem.isRequired 是否必填 * @apiSuccess { String } data.checkItem.defaultValue 默认值 * @apiSuccess { Boolean } data.checkItem.isScore 是否参与评分 * @apiSuccess { Long } data.checkItem.patrolTypeId 检查类别id * @apiSuccess { String } data.checkItem.patrolTypeName 检查类别名称 冗余字段 * @apiSuccess { Long } data.checkItem.userId 所属人员id * @apiSuccess { String } data.checkItem.username 所属人员名称 * @apiSuccess { String } data.checkItem.remark 备注说明 * @apiSuccess { Object } data.extra 文本项额外信息 * @apiSuccess { Long } data.extra.id id 主键 * @apiSuccess { Long } data.extra.checkItemId 检查项id * @apiSuccess { Boolean } data.extra.allowMultiple 是否允许多行 * @apiSuccess { Integer } data.extra.qualifiedScore 合格评分 * @apiSuccess { Integer } data.extra.noQualifiedScore 不合格评分 * @apiSuccess { Integer } data.extra.qualifiedJudge 合格判定 1始终合格、2始终不合格、3无内容合格、4有内容合格 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":{"checkItem":{"id":1, "itemNo":"", "itemName":"", "itemType":1, "isRequired":true, "defaultValue":"", "isScore":true, "patrolTypeId":1, "patrolTypeName":"", "userId":1, "username":"", "remark":""}, "extra":{"id":1, "checkItemId":1, "allowMultiple":true, "qualifiedScore":1, "noQualifiedScore":1, "qualifiedJudge":1}}, "message":"", "code":1} */ /** * @api {post} /v1/check/item/add/txt 11.添加文本项 * @apiName 添加文本项 * @apiGroup 检查项目-项目 * @apiHeader {String = application/json} Content-Type = application/json * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/check/item/add/txt#POST】 * @apiVersion 1.0.0 * @apiBody { Object } checkItem 检查主项 * @apiBody { String } checkItem.itemName 检查项名称 * @apiBody { Integer } checkItem.itemType 检查项类别 1选择、2数字、3文本、4拍照 * @apiBody { Boolean } checkItem.isRequired 是否必填 * @apiBody { String } [ checkItem.defaultValue ] 默认值 * @apiBody { Boolean } checkItem.isScore 是否参与评分 * @apiBody { Long } checkItem.patrolTypeId 巡检类别id * @apiBody { String } checkItem.patrolTypeName 巡检类别名称 冗余字段 * @apiBody { String } [ checkItem.remark ] 备注说明 * @apiBody { Object } extra 文本 * @apiBody { Boolean } extra.allowMultiple 是否允许多行 * @apiBody { Integer } extra.qualifiedScore 合格评分 * @apiBody { Integer } extra.noQualifiedScore 不合格评分 * @apiBody { Integer } extra.qualifiedJudge 合格判定 1始终合格、2始终不合格、3无内容合格、4有内容合格 * @apiSuccess { Boolean } data 数据 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":true, "message":"", "code":1} */ /** * @api {put} /v1/check/item/update/txt 12.更新文本项 * @apiName 更新文本项 * @apiGroup 检查项目-项目 * @apiHeader {String = application/json} Content-Type = application/json * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/check/item/update/txt#PUT】 * @apiVersion 1.0.0 * @apiBody { Object } checkItem 检查主项 * @apiBody { Long } checkItem.id id 主键 * @apiBody { String } checkItem.itemName 检查项名称 * @apiBody { Integer } checkItem.itemType 检查项类别 1选择、2数字、3文本、4拍照 * @apiBody { Boolean } checkItem.isRequired 是否必填 * @apiBody { String } [ checkItem.defaultValue ] 默认值 * @apiBody { Boolean } checkItem.isScore 是否参与评分 * @apiBody { Long } checkItem.patrolTypeId 巡检类别id * @apiBody { String } checkItem.patrolTypeName 巡检类别名称 冗余字段 * @apiBody { String } [ checkItem.remark ] 备注说明 * @apiBody { Object } extra 文本项 * @apiBody { Long } extra.id id 主键 * @apiBody { Boolean } extra.allowMultiple 是否允许多行 * @apiBody { Integer } extra.qualifiedScore 合格评分 * @apiBody { Integer } extra.noQualifiedScore 不合格评分 * @apiBody { Integer } extra.qualifiedJudge 合格判定 1始终合格、2始终不合格、3无内容合格、4有内容合格 * @apiSuccess { Boolean } data 数据 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":true, "message":"", "code":1} */ /** * @api {get} /v1/check/item/query/photo/:id 13.获取拍照项详情 * @apiName 获取拍照项详情 * @apiGroup 检查项目-项目 * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/check/item/query/photo/{id}#GET】 * @apiVersion 1.0.0 * @apiParam { Long } id 检查项id * @apiSuccess { Object } data 数据 * @apiSuccess { Object } data.checkItem 检查项 * @apiSuccess { Long } data.checkItem.id id 主键 * @apiSuccess { String } data.checkItem.itemNo 检查项编号 * @apiSuccess { String } data.checkItem.itemName 检查项名称 * @apiSuccess { Integer } data.checkItem.itemType 检查项类别 1选择、2数字、3文本、4拍照 * @apiSuccess { Boolean } data.checkItem.isRequired 是否必填 * @apiSuccess { String } data.checkItem.defaultValue 默认值 * @apiSuccess { Boolean } data.checkItem.isScore 是否参与评分 * @apiSuccess { Long } data.checkItem.patrolTypeId 检查类别id * @apiSuccess { String } data.checkItem.patrolTypeName 检查类别名称 冗余字段 * @apiSuccess { Long } data.checkItem.userId 所属人员id * @apiSuccess { String } data.checkItem.username 所属人员名称 * @apiSuccess { String } data.checkItem.remark 备注说明 * @apiSuccess { Object[] } data.photoPoints 拍照点列表 * @apiSuccess { Long } data.photoPoints.id id 主键 * @apiSuccess { Long } data.photoPoints.checkItemId 检查项id * @apiSuccess { String } data.photoPoints.name 拍照点名称 * @apiSuccess { Boolean } data.photoPoints.isRequired 是否必须拍照 * @apiSuccess { Boolean } data.photoPoints.qualifiedJudge 合格判定 true:拍照合格、false:拍照不合格 * @apiSuccess { Integer } data.photoPoints.qualifiedScore 合格评分 * @apiSuccess { Integer } data.photoPoints.noQualifiedScore 不合格评分 * @apiSuccess { Integer } data.photoPoints.seq 排序 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":{"checkItem":{"id":1, "itemNo":"", "itemName":"", "itemType":1, "isRequired":true, "defaultValue":"", "isScore":true, "patrolTypeId":1, "patrolTypeName":"", "userId":1, "username":"", "remark":""}, "photoPoints":[{"id":1, "checkItemId":1, "name":"", "isRequired":true, "qualifiedJudge":true, "qualifiedScore":1, "noQualifiedScore":1, "seq":1}]}, "message":"", "code":1} */ /** * @api {post} /v1/check/item/add/photo 14.添加拍照项 * @apiName 添加拍照项 * @apiGroup 检查项目-项目 * @apiHeader {String = application/json} Content-Type = application/json * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/check/item/add/photo#POST】 * @apiVersion 1.0.0 * @apiBody { Object } checkItem 检查项 * @apiBody { String } checkItem.itemName 检查项名称 * @apiBody { Integer } checkItem.itemType 检查项类别 1选择、2数字、3文本、4拍照 * @apiBody { Boolean } checkItem.isRequired 是否必填 * @apiBody { String } [ checkItem.defaultValue ] 默认值 * @apiBody { Boolean } checkItem.isScore 是否参与评分 * @apiBody { Long } checkItem.patrolTypeId 巡检类别id * @apiBody { String } checkItem.patrolTypeName 巡检类别名称 冗余字段 * @apiBody { String } [ checkItem.remark ] 备注说明 * @apiBody { Object[] { 1..2147483647 } } photoPoints 选择项 * @apiBody { String } photoPoints.name 拍照点名称 * @apiBody { Boolean } photoPoints.isRequired 是否必须拍照 * @apiBody { Boolean } photoPoints.qualifiedJudge 合格判定 true:拍照合格、false:拍照不合格 * @apiBody { Integer } photoPoints.qualifiedScore 合格评分 * @apiBody { Integer } photoPoints.noQualifiedScore 不合格评分 * @apiBody { Integer } photoPoints.seq 排序 * @apiSuccess { Boolean } data 数据 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":true, "message":"", "code":1} */ /** * @api {put} /v1/check/item/update/photo 15.更新拍照项 * @apiName 更新拍照项 * @apiGroup 检查项目-项目 * @apiHeader {String = application/json} Content-Type = application/json * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/check/item/update/photo#PUT】 * @apiVersion 1.0.0 * @apiBody { Object } checkItem 检查项 * @apiBody { Long } checkItem.id id 主键 * @apiBody { String } checkItem.itemName 检查项名称 * @apiBody { Integer } checkItem.itemType 检查项类别 1选择、2数字、3文本、4拍照 * @apiBody { Boolean } checkItem.isRequired 是否必填 * @apiBody { String } [ checkItem.defaultValue ] 默认值 * @apiBody { Boolean } checkItem.isScore 是否参与评分 * @apiBody { Long } checkItem.patrolTypeId 巡检类别id * @apiBody { String } checkItem.patrolTypeName 巡检类别名称 冗余字段 * @apiBody { String } [ checkItem.remark ] 备注说明 * @apiBody { Object[] { 1..2147483647 } } photoPoints 拍照项 * @apiBody { String } photoPoints.name 拍照点名称 * @apiBody { Boolean } photoPoints.isRequired 是否必须拍照 * @apiBody { Boolean } photoPoints.qualifiedJudge 合格判定 true:拍照合格、false:拍照不合格 * @apiBody { Integer } photoPoints.qualifiedScore 合格评分 * @apiBody { Integer } photoPoints.noQualifiedScore 不合格评分 * @apiBody { Integer } photoPoints.seq 排序 * @apiSuccess { Boolean } data 数据 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":true, "message":"", "code":1} */ /** * @api {get} /v1/check/item/list/option 16.获取检查项选项 * @apiName 获取检查项选项 * @apiGroup 检查项目-项目 * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiVersion 1.0.0 * @apiQuery { Integer } itemType 检查项类别 1选择、2数字、3文本、4拍照 * @apiQuery { Boolean } isScore 是否参与评分 * @apiSuccess { Object[] } data 数据 * @apiSuccess { Long } data.id 选项key * @apiSuccess { String } data.name 选项值 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":[{"id":1, "name":""}], "message":"", "code":1} */ /** * @api {post} /v1/check/route/add 01.添加检查路线 * @apiName 添加检查路线 * @apiGroup 检查路线-路线查询 * @apiHeader {String = application/json} Content-Type = application/json * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/check/route/add#POST】 * @apiVersion 1.0.0 * @apiBody { String } name 路线名称 * @apiBody { String } [ responsibler ] 负责人名称 * @apiBody { String } [ telephone ] 联系电话 * @apiBody { String } [ remark ] 备注 * @apiBody { Long[] } [ roomIds ] 巡检房间id列表 * @apiBody { Long[] } [ deviceIds ] 巡检设备id列表 * @apiSuccess { Object } data 数据 * @apiSuccess { Long } data.id id 主键 * @apiSuccess { String } data.number 路线编号 * @apiSuccess { String } data.name 路线名称 * @apiSuccess { String } data.responsibler 负责人名称 * @apiSuccess { String } data.telephone 联系电话 * @apiSuccess { String } data.remark 备注 * @apiSuccess { Date } data.createTime 创建时间 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":{"id":1, "number":"", "name":"", "responsibler":"", "telephone":"", "remark":"", "createTime":1650761871420}, "message":"", "code":1} */ /** * @api {delete} /v1/check/route/delete/:id 02.删除检查路线 * @apiName 删除检查路线 * @apiGroup 检查路线-路线查询 * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/check/route/delete/{id}#DELETE】 * @apiVersion 1.0.0 * @apiParam { Long } id 检查路线id * @apiSuccess { Boolean } data 数据 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":true, "message":"", "code":1} */ /** * @api {delete} /v1/check/route/delete 03.删除多条检查路线 * @apiName 删除多条检查路线 * @apiGroup 检查路线-路线查询 * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/check/route/delete#DELETE】 * @apiVersion 1.0.0 * @apiQuery { Long[] { 1-2147483647 } } ids 检查路线id数组 * @apiSuccess { Boolean } data 数据 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":true, "message":"", "code":1} */ /** * @api {put} /v1/check/route/update 04.更新检查路线 * @apiName 更新检查路线 * @apiGroup 检查路线-路线查询 * @apiHeader {String = application/json} Content-Type = application/json * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/check/route/update#PUT】 * @apiVersion 1.0.0 * @apiBody { Long } id id 主键 * @apiBody { String } name 路线名称 * @apiBody { String } [ responsibler ] 负责人名称 * @apiBody { String } [ telephone ] 联系电话 * @apiBody { String } [ remark ] 备注 * @apiBody { Long[] } [ roomIds ] 巡检房间id列表 * @apiBody { Long[] } [ deviceIds ] 巡检设备id列表 * @apiSuccess { Object } data 数据 * @apiSuccess { Long } data.id id 主键 * @apiSuccess { String } data.number 路线编号 * @apiSuccess { String } data.name 路线名称 * @apiSuccess { String } data.responsibler 负责人名称 * @apiSuccess { String } data.telephone 联系电话 * @apiSuccess { String } data.remark 备注 * @apiSuccess { Date } data.createTime 创建时间 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":{"id":1, "number":"", "name":"", "responsibler":"", "telephone":"", "remark":"", "createTime":1650761871420}, "message":"", "code":1} */ /** * @api {get} /v1/check/route/query/:id 05.查询检查路线 * @apiName 查询检查路线 * @apiGroup 检查路线-路线查询 * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/check/route/query/{id}#GET】 * @apiVersion 1.0.0 * @apiParam { Long } id 检查路线id * @apiSuccess { Object } data 数据 * @apiSuccess { Long } data.id id 主键 * @apiSuccess { String } data.number 路线编号 * @apiSuccess { String } data.name 路线名称 * @apiSuccess { String } data.responsibler 负责人名称 * @apiSuccess { String } data.telephone 联系电话 * @apiSuccess { String } data.remark 备注 * @apiSuccess { Date } data.createTime 创建时间 * @apiSuccess { Object[] } data.rooms 房间列表 * @apiSuccess { Object[] } data.rooms.children 子选项 * @apiSuccess { Object[] } data.rooms.children.children 子选项 * @apiSuccess { Long } data.rooms.children.id 选项key * @apiSuccess { String } data.rooms.children.name 选项值 * @apiSuccess { Long } data.rooms.id 选项key * @apiSuccess { String } data.rooms.name 选项值 * @apiSuccess { Object[] } data.devices 设备列表 * @apiSuccess { Object[] } data.devices.children 子选项 * @apiSuccess { Object[] } data.devices.children.children 子选项 * @apiSuccess { Long } data.devices.children.id 选项key * @apiSuccess { String } data.devices.children.name 选项值 * @apiSuccess { Long } data.devices.id 选项key * @apiSuccess { String } data.devices.name 选项值 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":{"id":1, "number":"", "name":"", "responsibler":"", "telephone":"", "remark":"", "createTime":1650761871420, "rooms":[{"children":[{"children":[], "id":1, "name":""}], "id":1, "name":""}], "devices":[{"children":[{"children":[], "id":1, "name":""}], "id":1, "name":""}]}, "message":"", "code":1} */ /** * @api {get} /v1/check/route/list 06.分页查询检查路线 * @apiName 分页查询检查路线 * @apiGroup 检查路线-路线查询 * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/check/route/list#GET】 * @apiVersion 1.0.0 * @apiQuery { String } [ number ] 路线编号 * @apiQuery { String } [ name ] 路线名称 * @apiQuery { String } [ responsibler ] 负责人名称 * @apiQuery { String } [ telephone ] 联系电话 * @apiQuery { String } [ remark ] 备注 * @apiQuery { Date } [ createTimeStart ] 创建时间 开始时间 * @apiQuery { Date } [ createTimeEnd ] 创建时间 结束时间 * @apiQuery { Integer } [ page = 1 ] 页码 * @apiQuery { Integer } [ size = 10 ] 页大小 * @apiQuery { String { ^[-+][\w]+ } } [ order = -id ] 排序规则(默认ID倒序),排序字段前加:+表示正序 -表示倒序 * @apiSuccess { Object } data 数据 * @apiSuccess { Long } data.total 数据总数 * @apiSuccess { Object[] } data.list 数据列表 * @apiSuccess { Long } data.list.id id 主键 * @apiSuccess { String } data.list.number 路线编号 * @apiSuccess { String } data.list.name 路线名称 * @apiSuccess { String } data.list.responsibler 负责人名称 * @apiSuccess { String } data.list.telephone 联系电话 * @apiSuccess { String } data.list.remark 备注 * @apiSuccess { Date } data.list.createTime 创建时间 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":{"total":1, "list":[{"id":1, "number":"", "name":"", "responsibler":"", "telephone":"", "remark":"", "createTime":1650761871420}]}, "message":"", "code":1} */ /** * @api {get} /v1/check/route/list/option 07.获取检查路线选项 * @apiName 获取检查路线选项 * @apiGroup 检查路线-路线查询 * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiVersion 1.0.0 * @apiQuery { String } name 路线名称 * @apiSuccess { Object[] } data 数据 * @apiSuccess { Long } data.id 选项key * @apiSuccess { String } data.name 选项值 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":[{"id":1, "name":""}], "message":"", "code":1} */ /** * @api {put} /v1/patrol/task/update 01.更新巡检任务 * @apiName 更新巡检任务 * @apiGroup 巡检计划-巡检任务 * @apiHeader {String = application/json} Content-Type = application/json * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/patrol/task/update#PUT】 * @apiVersion 1.0.0 * @apiBody { Long } id id 主键 * @apiBody { Long } routeId 检查路线id * @apiBody { String } name 名称 * @apiBody { Integer } runModel 执行模式 1其中一人、2每人分别 * @apiBody { Date } beginTime 任务执行开始时间 * @apiBody { Date } endTime 任务执行结束时间 * @apiBody { Long[] { 1-2147483647 } } executors 执行人列表 * @apiSuccess { Object } data 数据 * @apiSuccess { Long } data.id id 主键 * @apiSuccess { Long } data.planId 计划id * @apiSuccess { Long } data.routeId 路线id * @apiSuccess { String } data.routeName 路线名称 * @apiSuccess { String } data.routeResponsibler 负责人名称 * @apiSuccess { String } data.routeTelephone 联系电话 * @apiSuccess { Long } data.userId 创建人id * @apiSuccess { String } data.username 创建人名称 * @apiSuccess { String } data.number 编号 * @apiSuccess { String } data.name 名称 * @apiSuccess { Integer } data.type 类型 1日计划、2周计划、3月计划 * @apiSuccess { Integer } data.status 状态 1未开始、2进行中、3正常完成、4超时漏检、5超时完成 * @apiSuccess { Integer } data.runModel 执行模式 1其中一人、2每人分别 * @apiSuccess { Boolean } data.disabled 是否禁用 * @apiSuccess { Date } data.beginTime 任务执行开始时间 * @apiSuccess { Date } data.endTime 任务执行结束时间 * @apiSuccess { Date } data.createTime 创建时间 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":{"id":1, "planId":1, "routeId":1, "routeName":"", "routeResponsibler":"", "routeTelephone":"", "userId":1, "username":"", "number":"", "name":"", "type":1, "status":1, "runModel":1, "disabled":true, "beginTime":1650761871421, "endTime":1650761871421, "createTime":1650761871421}, "message":"", "code":1} */ /** * @api {put} /v1/patrol/task/update/status 02.更新巡检任务禁用状态 * @apiName 更新巡检任务禁用状态 * @apiGroup 巡检计划-巡检任务 * @apiHeader {String = application/json} Content-Type = application/json * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/patrol/task/update/status#PUT】 * @apiVersion 1.0.0 * @apiBody { Long } id 数据ID * @apiBody { Boolean } disabled 是否禁用 * @apiSuccess { Boolean } data 数据 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":true, "message":"", "code":1} */ /** * @api {get} /v1/patrol/task/query/:id 03.查询巡检任务 * @apiName 查询巡检任务 * @apiGroup 巡检计划-巡检任务 * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/patrol/task/query/{id}#GET】 * @apiVersion 1.0.0 * @apiParam { Long } id 巡检任务id * @apiSuccess { Object } data 数据 * @apiSuccess { Long } data.id id 主键 * @apiSuccess { String } data.name 名称 * @apiSuccess { Integer } data.type 类型 1日计划、2周计划、3月计划 * @apiSuccess { Integer } data.runModel 执行模式 1其中一人、2每人分别 * @apiSuccess { Date } data.beginTime 任务执行开始时间 * @apiSuccess { Date } data.endTime 任务执行结束时间 * @apiSuccess { String } data.remark 备注 * @apiSuccess { Object } data.route 检查路线 * @apiSuccess { Long } data.route.id 选项key * @apiSuccess { String } data.route.name 选项值 * @apiSuccess { Object[] } data.executors 执行人列表 * @apiSuccess { Long } data.executors.id 选项key * @apiSuccess { String } data.executors.name 选项值 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":{"id":1, "name":"", "type":1, "runModel":1, "beginTime":1650761871421, "endTime":1650761871421, "remark":"", "route":{"id":1, "name":""}, "executors":[{"id":1, "name":""}]}, "message":"", "code":1} */ /** * @api {get} /v1/patrol/task/list 04.分页查询巡检任务 * @apiName 分页查询巡检任务 * @apiGroup 巡检计划-巡检任务 * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/patrol/task/list#GET】 * @apiVersion 1.0.0 * @apiQuery { String } [ name ] 任务名称 * @apiQuery { Boolean } [ disabled ] 是否禁用 * @apiQuery { Integer } [ type ] 类型 1日计划、2周计划、3月计划 * @apiQuery { Integer } [ status ] 状态 1未开始、2进行中、3正常完成、4超时漏检、5超时完成 * @apiQuery { Integer } [ runModel ] 执行模式 1其中一人、2每人分别 * @apiQuery { String } [ username ] 创建人 * @apiQuery { String } [ executor ] * @apiQuery { Date } [ beginTimeStart ] 创建时间 开始时间 * @apiQuery { Date } [ beginTimeEnd ] 创建时间 结束时间 * @apiQuery { Integer } [ page = 1 ] 页码 * @apiQuery { Integer } [ size = 10 ] 页大小 * @apiQuery { String { ^[-+][\w]+ } } [ order = +id ] 排序规则(默认ID正序),排序字段前加:+表示正序 -表示倒序 * @apiSuccess { Object } data 数据 * @apiSuccess { Long } data.total 数据总数 * @apiSuccess { Object[] } data.list 数据列表 * @apiSuccess { Long } data.list.id id 主键 * @apiSuccess { String } data.list.routeName 检查路线 * @apiSuccess { String } data.list.username 创建人 * @apiSuccess { String } data.list.number 编号 * @apiSuccess { String } data.list.name 名称 * @apiSuccess { Integer } data.list.type 类型 1日计划、2周计划、3月计划 * @apiSuccess { Integer } data.list.status 状态 1未开始、2进行中、3正常完成、4超时漏检、5超时完成 * @apiSuccess { Integer } data.list.runModel 执行模式 1其中一人、2每人分别 * @apiSuccess { Boolean } data.list.disabled 是否禁用 * @apiSuccess { Date } data.list.beginTime 任务执行开始时间 * @apiSuccess { Date } data.list.endTime 任务执行结束时间 * @apiSuccess { String[] } data.list.executors 执行人列表 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":{"total":1, "list":[{"id":1, "routeName":"", "username":"", "number":"", "name":"", "type":1, "status":1, "runModel":1, "disabled":true, "beginTime":1650761871421, "endTime":1650761871421, "executors":[""]}]}, "message":"", "code":1} */ /** * @api {get} /v1/patrol/task/generate/task 05.生成巡检任务 * @apiName 生成巡检任务 * @apiGroup 巡检计划-巡检任务 * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/patrol/task/generate/task#GET】 * @apiVersion 1.0.0 * @apiSuccess { Date } data 数据 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":1650761871421, "message":"", "code":1} */ /** * @api {delete} /v1/patrol/task/delete 06.删除多条巡检任务 * @apiName 删除多条巡检任务 * @apiGroup 巡检计划-巡检任务 * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/patrol/task/delete#DELETE】 * @apiVersion 1.0.0 * @apiQuery { Long[] { 1-2147483647 } } ids 巡检任务id数组 * @apiSuccess { Boolean } data 数据 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":true, "message":"", "code":1} */ /** * @api {delete} /v1/patrol/task/delete/:id 07.删除巡检任务 * @apiName 删除巡检任务 * @apiGroup 巡检计划-巡检任务 * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/patrol/task/delete/{id}#DELETE】 * @apiVersion 1.0.0 * @apiParam { Long } id 巡检任务id * @apiSuccess { Boolean } data 数据 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":true, "message":"", "code":1} */ /** * @api {post} /v1/patrol/plan/add 01.添加巡检计划 * @apiName 添加巡检计划 * @apiGroup 巡检计划-巡检计划查询 * @apiHeader {String = application/json} Content-Type = application/json * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/patrol/plan/add#POST】 * @apiVersion 1.0.0 * @apiBody { Long } routeId 检查路线id * @apiBody { String } name 名称 * @apiBody { Integer } type 类型 1日计划、2周计划、3月计划 * @apiBody { Integer } runModel 执行模式 1其中一人、2每人分别 * @apiBody { Date } beginDate 计划执行开始日期 * @apiBody { Date } [ endDate ] 计划执行结束日期,空代表永不结束 * @apiBody { Date } beginTime 任务执行开始时间 * @apiBody { Date } endTime 任务执行结束时间 * @apiBody { String } [ weeks ] 周计划 [1-7] * @apiBody { String } [ months ] 月计划 [1-31] * @apiBody { String } [ remark ] 备注 * @apiBody { Long[] { 1-2147483647 } } executors 执行人列表 * @apiSuccess { Object } data 数据 * @apiSuccess { Long } data.id id 主键 * @apiSuccess { Long } data.routeId 路线id * @apiSuccess { Long } data.userId 创建人id * @apiSuccess { String } data.number 编号 * @apiSuccess { String } data.name 名称 * @apiSuccess { Boolean } data.disabled 是否禁用 * @apiSuccess { Integer } data.type 类型 1日计划、2周计划、3月计划 * @apiSuccess { Integer } data.runModel 执行模式 1其中一人、2每人分别 * @apiSuccess { Date } data.beginDate 计划执行开始日期 * @apiSuccess { Date } data.endDate 计划执行结束日期,空代表永不结束 * @apiSuccess { Object } data.beginTime 任务执行开始时间 * @apiSuccess { Byte } data.beginTime.hour * @apiSuccess { Byte } data.beginTime.minute * @apiSuccess { Byte } data.beginTime.second * @apiSuccess { Integer } data.beginTime.nano * @apiSuccess { Object } data.endTime 任务执行结束时间 * @apiSuccess { Byte } data.endTime.hour * @apiSuccess { Byte } data.endTime.minute * @apiSuccess { Byte } data.endTime.second * @apiSuccess { Integer } data.endTime.nano * @apiSuccess { String } data.weeks 周计划 [1-7] * @apiSuccess { String } data.months 月计划 [1-31] * @apiSuccess { String } data.remark 备注 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":{"id":1, "routeId":1, "userId":1, "number":"", "name":"", "disabled":true, "type":1, "runModel":1, "beginDate":1650761871421, "endDate":1650761871421, "beginTime":{"hour":1, "minute":1, "second":1, "nano":1}, "endTime":{"hour":1, "minute":1, "second":1, "nano":1}, "weeks":"", "months":"", "remark":""}, "message":"", "code":1} */ /** * @api {put} /v1/patrol/plan/update 02.更新巡检计划 * @apiName 更新巡检计划 * @apiGroup 巡检计划-巡检计划查询 * @apiHeader {String = application/json} Content-Type = application/json * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/patrol/plan/update#PUT】 * @apiVersion 1.0.0 * @apiBody { Long } id id 主键 * @apiBody { Long } routeId 检查路线id * @apiBody { String } name 名称 * @apiBody { Integer } type 类型 1日计划、2周计划、3月计划 * @apiBody { Integer } runModel 执行模式 1其中一人、2每人分别 * @apiBody { Date } beginDate 计划执行开始日期 * @apiBody { Date } [ endDate ] 计划执行结束日期,空代表永不结束 * @apiBody { Date } beginTime 任务执行开始时间 * @apiBody { Date } endTime 任务执行结束时间 * @apiBody { String } [ weeks ] 周计划 [1-7] * @apiBody { String } [ months ] 月计划 [1-31] * @apiBody { String } [ remark ] 备注 * @apiBody { Long[] { 1-2147483647 } } executors 执行人列表 * @apiSuccess { Object } data 数据 * @apiSuccess { Long } data.id id 主键 * @apiSuccess { Long } data.routeId 路线id * @apiSuccess { Long } data.userId 创建人id * @apiSuccess { String } data.number 编号 * @apiSuccess { String } data.name 名称 * @apiSuccess { Boolean } data.disabled 是否禁用 * @apiSuccess { Integer } data.type 类型 1日计划、2周计划、3月计划 * @apiSuccess { Integer } data.runModel 执行模式 1其中一人、2每人分别 * @apiSuccess { Date } data.beginDate 计划执行开始日期 * @apiSuccess { Date } data.endDate 计划执行结束日期,空代表永不结束 * @apiSuccess { Object } data.beginTime 任务执行开始时间 * @apiSuccess { Byte } data.beginTime.hour * @apiSuccess { Byte } data.beginTime.minute * @apiSuccess { Byte } data.beginTime.second * @apiSuccess { Integer } data.beginTime.nano * @apiSuccess { Object } data.endTime 任务执行结束时间 * @apiSuccess { Byte } data.endTime.hour * @apiSuccess { Byte } data.endTime.minute * @apiSuccess { Byte } data.endTime.second * @apiSuccess { Integer } data.endTime.nano * @apiSuccess { String } data.weeks 周计划 [1-7] * @apiSuccess { String } data.months 月计划 [1-31] * @apiSuccess { String } data.remark 备注 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":{"id":1, "routeId":1, "userId":1, "number":"", "name":"", "disabled":true, "type":1, "runModel":1, "beginDate":1650761871422, "endDate":1650761871422, "beginTime":{"hour":1, "minute":1, "second":1, "nano":1}, "endTime":{"hour":1, "minute":1, "second":1, "nano":1}, "weeks":"", "months":"", "remark":""}, "message":"", "code":1} */ /** * @api {put} /v1/patrol/plan/update/status 03.更新巡检计划禁用状态 * @apiName 更新巡检计划禁用状态 * @apiGroup 巡检计划-巡检计划查询 * @apiHeader {String = application/json} Content-Type = application/json * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/patrol/plan/update/status#PUT】 * @apiVersion 1.0.0 * @apiBody { Long } id 数据ID * @apiBody { Boolean } disabled 是否禁用 * @apiSuccess { Boolean } data 数据 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":true, "message":"", "code":1} */ /** * @api {get} /v1/patrol/plan/query/:id 04.查询巡检计划 * @apiName 查询巡检计划 * @apiGroup 巡检计划-巡检计划查询 * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/patrol/plan/query/{id}#GET】 * @apiVersion 1.0.0 * @apiParam { Long } id 巡检计划id * @apiSuccess { Object } data 数据 * @apiSuccess { Long } data.id id 主键 * @apiSuccess { String } data.name 名称 * @apiSuccess { Integer } data.type 类型 1日计划、2周计划、3月计划 * @apiSuccess { Integer } data.runModel 执行模式 1其中一人、2每人分别 * @apiSuccess { Date } data.beginDate 计划执行开始日期 * @apiSuccess { Date } data.endDate 计划执行结束日期,空代表永不结束 * @apiSuccess { Date } data.beginTime 任务执行开始时间 * @apiSuccess { Date } data.endTime 任务执行结束时间 * @apiSuccess { String } data.weeks 周计划 [1-7] * @apiSuccess { String } data.months 月计划 [1-31] * @apiSuccess { String } data.remark 备注 * @apiSuccess { Object } data.route 检查路线 * @apiSuccess { Long } data.route.id 选项key * @apiSuccess { String } data.route.name 选项值 * @apiSuccess { Object[] } data.executors 执行人列表 * @apiSuccess { Long } data.executors.id 选项key * @apiSuccess { String } data.executors.name 选项值 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":{"id":1, "name":"", "type":1, "runModel":1, "beginDate":1650761871422, "endDate":1650761871422, "beginTime":1650761871422, "endTime":1650761871422, "weeks":"", "months":"", "remark":"", "route":{"id":1, "name":""}, "executors":[{"id":1, "name":""}]}, "message":"", "code":1} */ /** * @api {get} /v1/patrol/plan/list 05.分页查询巡检计划 * @apiName 分页查询巡检计划 * @apiGroup 巡检计划-巡检计划查询 * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/patrol/plan/list#GET】 * @apiVersion 1.0.0 * @apiQuery { String } [ name ] 计划名称 * @apiQuery { Boolean } [ disabled ] 是否禁用 * @apiQuery { Integer } [ type ] 类型 1日计划、2周计划、3月计划 * @apiQuery { Integer } [ runModel ] 执行模式 1其中一人、2每人分别 * @apiQuery { String } [ username ] 创建人 * @apiQuery { String } [ executor ] 执行人 * @apiQuery { Integer } [ page = 1 ] 页码 * @apiQuery { Integer } [ size = 10 ] 页大小 * @apiQuery { String { ^[-+][\w]+ } } [ order = -id ] 排序规则(默认ID倒序),排序字段前加:+表示正序 -表示倒序 * @apiSuccess { Object } data 数据 * @apiSuccess { Long } data.total 数据总数 * @apiSuccess { Object[] } data.list 数据列表 * @apiSuccess { Long } data.list.id id 主键 * @apiSuccess { String } data.list.routeName 检查路线 * @apiSuccess { String } data.list.username 创建人 * @apiSuccess { String } data.list.number 编号 * @apiSuccess { String } data.list.name 名称 * @apiSuccess { Boolean } data.list.disabled 是否禁用 * @apiSuccess { Integer } data.list.type 类型 1日计划、2周计划、3月计划 * @apiSuccess { Integer } data.list.runModel 执行模式 1其中一人、2每人分别 * @apiSuccess { Date } data.list.beginDate 计划执行开始日期 * @apiSuccess { Date } data.list.endDate 计划执行结束日期,空代表永不结束 * @apiSuccess { Date } data.list.beginTime 任务执行开始时间 * @apiSuccess { Date } data.list.endTime 任务执行结束时间 * @apiSuccess { String } data.list.weeks 周计划 [1-7] * @apiSuccess { String } data.list.months 月计划 [1-31] * @apiSuccess { String } data.list.remark 备注 * @apiSuccess { String[] } data.list.executors 执行人列表 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":{"total":1, "list":[{"id":1, "routeName":"", "username":"", "number":"", "name":"", "disabled":true, "type":1, "runModel":1, "beginDate":1650761871422, "endDate":1650761871422, "beginTime":1650761871422, "endTime":1650761871422, "weeks":"", "months":"", "remark":"", "executors":[""]}]}, "message":"", "code":1} */ /** * @api {delete} /v1/patrol/plan/delete 06.删除多条巡检计划 * @apiName 删除多条巡检计划 * @apiGroup 巡检计划-巡检计划查询 * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/patrol/plan/delete#DELETE】 * @apiVersion 1.0.0 * @apiQuery { Long[] { 1-2147483647 } } ids 巡检计划id数组 * @apiSuccess { Boolean } data 数据 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":true, "message":"", "code":1} */ /** * @api {delete} /v1/patrol/plan/delete/:id 07.删除巡检计划 * @apiName 删除巡检计划 * @apiGroup 巡检计划-巡检计划查询 * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/patrol/plan/delete/{id}#DELETE】 * @apiVersion 1.0.0 * @apiParam { Long } id 巡检计划id * @apiSuccess { Boolean } data 数据 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":true, "message":"", "code":1} */ /** * @api {get} /v1/patrol/task/record/list/room 01.分页查询房间巡检记录 * @apiName 分页查询房间巡检记录 * @apiGroup 巡检任务-巡检任务记录 * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiVersion 1.0.0 * @apiQuery { String } [ taskName ] 任务名称 * @apiQuery { String } [ username ] 执行用户名 * @apiQuery { String } [ buildingName ] 楼栋名称 * @apiQuery { String } [ floorName ] 楼层名称 * @apiQuery { String } [ roomName ] 房间名称 * @apiQuery { String } [ roomNumber ] 房间编号 * @apiQuery { Date } [ beginTimeStart ] 任务开始时间 开始时间 * @apiQuery { Date } [ beginTimeEnd ] 任务开始时间 结束时间 * @apiQuery { Integer } [ page = 1 ] 页码 * @apiQuery { Integer } [ size = 10 ] 页大小 * @apiQuery { String { ^[-+][\w]+ } } [ order = -id ] * @apiSuccess { Object } data 数据 * @apiSuccess { Long } data.total 数据总数 * @apiSuccess { Object[] } data.list 数据列表 * @apiSuccess { Long } data.list.id 任务id * @apiSuccess { String } data.list.name 任务名称 * @apiSuccess { String } data.list.buildingName 楼栋名称 * @apiSuccess { String } data.list.floorName 楼层名称 * @apiSuccess { Long } data.list.roomId 房间id * @apiSuccess { String } data.list.roomName 房间名称 * @apiSuccess { String } data.list.roomNumber 房间编号 * @apiSuccess { Long } data.list.userId 执行用户id * @apiSuccess { String } data.list.username 执行用户名 * @apiSuccess { Date } data.list.beginTime 巡检时间 * @apiSuccess { Boolean } data.list.qualified 是否合格 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":{"total":1, "list":[{"id":1, "name":"", "buildingName":"", "floorName":"", "roomId":1, "roomName":"", "roomNumber":"", "userId":1, "username":"", "beginTime":1650761871423, "qualified":true}]}, "message":"", "code":1} */ /** * @api {get} /v1/patrol/task/record/query/room 02.查询房间巡检记录详情 * @apiName 查询房间巡检记录详情 * @apiGroup 巡检任务-巡检任务记录 * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiVersion 1.0.0 * @apiQuery { Long } taskId 巡检任务id * @apiQuery { Long } roomId 房间id * @apiQuery { Long } userId 巡检人员id * @apiSuccess { Object } data 数据 * @apiSuccess { String } data.taskName 任务名称 * @apiSuccess { String } data.routeName 所属路线 * @apiSuccess { String } data.roomName 房间名称 * @apiSuccess { String } data.roomNumber 房间编号 * @apiSuccess { String } data.floorName 楼层名称 * @apiSuccess { String } data.buildingName 楼栋名称 * @apiSuccess { String } data.name 巡检任务名称 * @apiSuccess { Date } data.beginTime 任务开始时间 * @apiSuccess { Date } data.endTime 任务结束时间 * @apiSuccess { Date } data.updateTime 巡检时间 * @apiSuccess { String } data.username 巡检人员 * @apiSuccess { Integer } data.status 状态 1未开始、2进行中、3正常完成、4超时漏检、5超时完成 * @apiSuccess { Boolean } data.qualified 是否合格 * @apiSuccess { Integer } data.score 评分 * @apiSuccess { Object[] } data.checkItems 检查项列表 * @apiSuccess { Integer } data.checkItems.checkItemType 检查项类别 1选择、2数字、3文本、4拍照 * @apiSuccess { String } data.checkItems.checkItemName 检查项名称 * @apiSuccess { String } data.checkItems.checkItem 检查项 * @apiSuccess { Integer } data.checkItems.score 得分 * @apiSuccess { Integer } data.checkItems.scoreTotal 合格总分数 * @apiSuccess { String } data.checkItems.value 用户输入值 * @apiSuccess { Object[] } data.devices 设备列表 * @apiSuccess { String } data.devices.deviceName 设备名称 * @apiSuccess { Object[] } data.devices.checkItems 检查项列表 * @apiSuccess { Integer } data.devices.checkItems.checkItemType 检查项类别 1选择、2数字、3文本、4拍照 * @apiSuccess { String } data.devices.checkItems.checkItemName 检查项名称 * @apiSuccess { String } data.devices.checkItems.checkItem 检查项 * @apiSuccess { Integer } data.devices.checkItems.score 得分 * @apiSuccess { Integer } data.devices.checkItems.scoreTotal 合格总分数 * @apiSuccess { String } data.devices.checkItems.value 用户输入值 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":{"taskName":"", "routeName":"", "roomName":"", "roomNumber":"", "floorName":"", "buildingName":"", "name":"", "beginTime":1650761871423, "endTime":1650761871423, "updateTime":1650761871423, "username":"", "status":1, "qualified":true, "score":1, "checkItems":[{"checkItemType":1, "checkItemName":"", "checkItem":"", "score":1, "scoreTotal":1, "value":""}], "devices":[{"deviceName":"", "checkItems":[{"checkItemType":1, "checkItemName":"", "checkItem":"", "score":1, "scoreTotal":1, "value":""}]}]}, "message":"", "code":1} */ /** * @api {put} /v1/upkeep/task/update 01.更新保养任务 * @apiName 更新保养任务 * @apiGroup 保养计划-保养任务 * @apiHeader {String = application/json} Content-Type = application/json * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/upkeep/task/update#PUT】 * @apiVersion 1.0.0 * @apiBody { Long } id id 主键 * @apiBody { Long } routeId 检查路线id * @apiBody { String } name 名称 * @apiBody { Integer } runModel 执行模式 1其中一人、2每人分别 * @apiBody { Date } beginTime 任务执行开始时间 * @apiBody { Date } endTime 任务执行结束时间 * @apiBody { Long[] { 1-2147483647 } } executors 执行人列表 * @apiSuccess { Object } data 数据 * @apiSuccess { Long } data.id id 主键 * @apiSuccess { Long } data.planId 计划id * @apiSuccess { Long } data.routeId 巡检路线id * @apiSuccess { Long } data.userId 创建人id * @apiSuccess { String } data.number 编号 * @apiSuccess { String } data.name 名称 * @apiSuccess { Integer } data.type 类型 1日计划、2周计划、3月计划 * @apiSuccess { Integer } data.status 状态 1未开始、2进行中、3已结束 * @apiSuccess { Integer } data.runModel 执行模式 1其中一人、2每人分别 * @apiSuccess { Boolean } data.disabled 是否禁用 * @apiSuccess { Date } data.beginTime 任务执行开始时间 * @apiSuccess { Date } data.endTime 任务执行结束时间 * @apiSuccess { Date } data.createTime 创建时间 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":{"id":1, "planId":1, "routeId":1, "userId":1, "number":"", "name":"", "type":1, "status":1, "runModel":1, "disabled":true, "beginTime":1650761871423, "endTime":1650761871423, "createTime":1650761871423}, "message":"", "code":1} */ /** * @api {put} /v1/upkeep/task/update/status 02.更新保养任务禁用状态 * @apiName 更新保养任务禁用状态 * @apiGroup 保养计划-保养任务 * @apiHeader {String = application/json} Content-Type = application/json * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/upkeep/task/update/status#PUT】 * @apiVersion 1.0.0 * @apiBody { Long } id 数据ID * @apiBody { Boolean } disabled 是否禁用 * @apiSuccess { Boolean } data 数据 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":true, "message":"", "code":1} */ /** * @api {get} /v1/upkeep/task/query/:id 03.查询保养任务 * @apiName 查询保养任务 * @apiGroup 保养计划-保养任务 * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/upkeep/task/query/{id}#GET】 * @apiVersion 1.0.0 * @apiParam { Long } id 保养任务id * @apiSuccess { Object } data 数据 * @apiSuccess { Long } data.id id 主键 * @apiSuccess { String } data.name 名称 * @apiSuccess { Integer } data.type 类型 1日计划、2周计划、3月计划 * @apiSuccess { Integer } data.runModel 执行模式 1其中一人、2每人分别 * @apiSuccess { Date } data.beginTime 任务执行开始时间 * @apiSuccess { Date } data.endTime 任务执行结束时间 * @apiSuccess { String } data.remark 备注 * @apiSuccess { Object } data.route 检查路线 * @apiSuccess { Long } data.route.id 选项key * @apiSuccess { String } data.route.name 选项值 * @apiSuccess { Object[] } data.executors 执行人列表 * @apiSuccess { Long } data.executors.id 选项key * @apiSuccess { String } data.executors.name 选项值 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":{"id":1, "name":"", "type":1, "runModel":1, "beginTime":1650761871423, "endTime":1650761871423, "remark":"", "route":{"id":1, "name":""}, "executors":[{"id":1, "name":""}]}, "message":"", "code":1} */ /** * @api {get} /v1/upkeep/task/list 04.分页查询保养任务 * @apiName 分页查询保养任务 * @apiGroup 保养计划-保养任务 * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/upkeep/task/list#GET】 * @apiVersion 1.0.0 * @apiQuery { String } [ name ] 任务名称 * @apiQuery { Boolean } [ disabled ] 是否禁用 * @apiQuery { Integer } [ type ] 类型 1日计划、2周计划、3月计划 * @apiQuery { Integer } [ status ] 状态 1未开始、2进行中、3正常完成、4超时漏检、5超时完成 * @apiQuery { Integer } [ runModel ] 执行模式 1其中一人、2每人分别 * @apiQuery { String } [ username ] 创建人 * @apiQuery { String } [ executor ] * @apiQuery { Date } [ beginTimeStart ] 创建时间 开始时间 * @apiQuery { Date } [ beginTimeEnd ] 创建时间 结束时间 * @apiQuery { Integer } [ page = 1 ] 页码 * @apiQuery { Integer } [ size = 10 ] 页大小 * @apiQuery { String { ^[-+][\w]+ } } [ order = -id ] 排序规则(默认ID倒序),排序字段前加:+表示正序 -表示倒序 * @apiSuccess { Object } data 数据 * @apiSuccess { Long } data.total 数据总数 * @apiSuccess { Object[] } data.list 数据列表 * @apiSuccess { Long } data.list.id id 主键 * @apiSuccess { String } data.list.routeName 检查路线 * @apiSuccess { String } data.list.username 创建人 * @apiSuccess { String } data.list.number 编号 * @apiSuccess { String } data.list.name 名称 * @apiSuccess { Integer } data.list.type 类型 1日计划、2周计划、3月计划 * @apiSuccess { Integer } data.list.status 状态 1未开始、2进行中、3正常完成、4超时漏检、5超时完成 * @apiSuccess { Integer } data.list.runModel 执行模式 1其中一人、2每人分别 * @apiSuccess { Boolean } data.list.disabled 是否禁用 * @apiSuccess { Date } data.list.beginTime 任务执行开始时间 * @apiSuccess { Date } data.list.endTime 任务执行结束时间 * @apiSuccess { String[] } data.list.executors 执行人列表 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":{"total":1, "list":[{"id":1, "routeName":"", "username":"", "number":"", "name":"", "type":1, "status":1, "runModel":1, "disabled":true, "beginTime":1650761871424, "endTime":1650761871424, "executors":[""]}]}, "message":"", "code":1} */ /** * @api {get} /v1/upkeep/task/generate/task 05.生成保养任务 * @apiName 生成保养任务 * @apiGroup 保养计划-保养任务 * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/upkeep/task/generate/task#GET】 * @apiVersion 1.0.0 * @apiSuccess { Date } data 数据 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":1650761871424, "message":"", "code":1} */ /** * @api {delete} /v1/upkeep/task/delete 06.删除多条保养任务 * @apiName 删除多条保养任务 * @apiGroup 保养计划-保养任务 * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/upkeep/task/delete#DELETE】 * @apiVersion 1.0.0 * @apiQuery { Long[] { 1-2147483647 } } ids 保养任务id数组 * @apiSuccess { Boolean } data 数据 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":true, "message":"", "code":1} */ /** * @api {delete} /v1/upkeep/task/delete/:id 07.删除保养任务 * @apiName 删除保养任务 * @apiGroup 保养计划-保养任务 * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/upkeep/task/delete/{id}#DELETE】 * @apiVersion 1.0.0 * @apiParam { Long } id 保养任务id * @apiSuccess { Boolean } data 数据 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":true, "message":"", "code":1} */ /** * @api {post} /v1/upkeep/plan/add 01.添加保养计划 * @apiName 添加保养计划 * @apiGroup 保养计划-保养计划查询 * @apiHeader {String = application/json} Content-Type = application/json * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/upkeep/plan/add#POST】 * @apiVersion 1.0.0 * @apiBody { Long } routeId 检查路线id * @apiBody { String } name 名称 * @apiBody { Integer } type 类型 1日计划、2周计划、3月计划 * @apiBody { Integer } runModel 执行模式 1其中一人、2每人分别 * @apiBody { Date } beginDate 计划执行开始日期 * @apiBody { Date } [ endDate ] 计划执行结束日期,空代表永不结束 * @apiBody { Date } beginTime 任务执行开始时间 * @apiBody { Date } endTime 任务执行结束时间 * @apiBody { String } [ weeks ] 周计划 [1-7] * @apiBody { String } [ months ] 月计划 [1-31] * @apiBody { String } [ remark ] 备注 * @apiBody { Long[] { 1-2147483647 } } executors 执行人列表 * @apiSuccess { Object } data 数据 * @apiSuccess { Long } data.id id 主键 * @apiSuccess { Long } data.routeId 巡检路线id * @apiSuccess { Long } data.userId 创建人id * @apiSuccess { String } data.number 编号 * @apiSuccess { String } data.name 名称 * @apiSuccess { Boolean } data.disabled 是否禁用 * @apiSuccess { Integer } data.type 类型 1日计划、2周计划、3月计划 * @apiSuccess { Integer } data.runModel 执行模式 1其中一人、2每人分别 * @apiSuccess { Date } data.beginDate 计划执行开始日期 * @apiSuccess { Date } data.endDate 计划执行结束日期,空代表永不结束 * @apiSuccess { Object } data.beginTime 任务执行开始时间 * @apiSuccess { Byte } data.beginTime.hour * @apiSuccess { Byte } data.beginTime.minute * @apiSuccess { Byte } data.beginTime.second * @apiSuccess { Integer } data.beginTime.nano * @apiSuccess { Object } data.endTime 任务执行结束时间 * @apiSuccess { Byte } data.endTime.hour * @apiSuccess { Byte } data.endTime.minute * @apiSuccess { Byte } data.endTime.second * @apiSuccess { Integer } data.endTime.nano * @apiSuccess { String } data.weeks 周计划 [1-7] * @apiSuccess { String } data.months 月计划 [1-31] * @apiSuccess { String } data.remark 备注 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":{"id":1, "routeId":1, "userId":1, "number":"", "name":"", "disabled":true, "type":1, "runModel":1, "beginDate":1650761871427, "endDate":1650761871427, "beginTime":{"hour":1, "minute":1, "second":1, "nano":1}, "endTime":{"hour":1, "minute":1, "second":1, "nano":1}, "weeks":"", "months":"", "remark":""}, "message":"", "code":1} */ /** * @api {put} /v1/upkeep/plan/update 02.更新保养计划 * @apiName 更新保养计划 * @apiGroup 保养计划-保养计划查询 * @apiHeader {String = application/json} Content-Type = application/json * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/upkeep/plan/update#PUT】 * @apiVersion 1.0.0 * @apiBody { Long } id id 主键 * @apiBody { Long } routeId 检查路线id * @apiBody { String } name 名称 * @apiBody { Integer } type 类型 1日计划、2周计划、3月计划 * @apiBody { Integer } runModel 执行模式 1其中一人、2每人分别 * @apiBody { Date } beginDate 计划执行开始日期 * @apiBody { Date } [ endDate ] 计划执行结束日期,空代表永不结束 * @apiBody { Date } beginTime 任务执行开始时间 * @apiBody { Date } endTime 任务执行结束时间 * @apiBody { String } [ weeks ] 周计划 [1-7] * @apiBody { String } [ months ] 月计划 [1-31] * @apiBody { String } [ remark ] 备注 * @apiBody { Long[] { 1-2147483647 } } executors 执行人列表 * @apiSuccess { Object } data 数据 * @apiSuccess { Long } data.id id 主键 * @apiSuccess { Long } data.routeId 巡检路线id * @apiSuccess { Long } data.userId 创建人id * @apiSuccess { String } data.number 编号 * @apiSuccess { String } data.name 名称 * @apiSuccess { Boolean } data.disabled 是否禁用 * @apiSuccess { Integer } data.type 类型 1日计划、2周计划、3月计划 * @apiSuccess { Integer } data.runModel 执行模式 1其中一人、2每人分别 * @apiSuccess { Date } data.beginDate 计划执行开始日期 * @apiSuccess { Date } data.endDate 计划执行结束日期,空代表永不结束 * @apiSuccess { Object } data.beginTime 任务执行开始时间 * @apiSuccess { Byte } data.beginTime.hour * @apiSuccess { Byte } data.beginTime.minute * @apiSuccess { Byte } data.beginTime.second * @apiSuccess { Integer } data.beginTime.nano * @apiSuccess { Object } data.endTime 任务执行结束时间 * @apiSuccess { Byte } data.endTime.hour * @apiSuccess { Byte } data.endTime.minute * @apiSuccess { Byte } data.endTime.second * @apiSuccess { Integer } data.endTime.nano * @apiSuccess { String } data.weeks 周计划 [1-7] * @apiSuccess { String } data.months 月计划 [1-31] * @apiSuccess { String } data.remark 备注 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":{"id":1, "routeId":1, "userId":1, "number":"", "name":"", "disabled":true, "type":1, "runModel":1, "beginDate":1650761871427, "endDate":1650761871427, "beginTime":{"hour":1, "minute":1, "second":1, "nano":1}, "endTime":{"hour":1, "minute":1, "second":1, "nano":1}, "weeks":"", "months":"", "remark":""}, "message":"", "code":1} */ /** * @api {put} /v1/upkeep/plan/update/status 03.更新保养计划禁用状态 * @apiName 更新保养计划禁用状态 * @apiGroup 保养计划-保养计划查询 * @apiHeader {String = application/json} Content-Type = application/json * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/upkeep/plan/update/status#PUT】 * @apiVersion 1.0.0 * @apiBody { Long } id 数据ID * @apiBody { Boolean } disabled 是否禁用 * @apiSuccess { Boolean } data 数据 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":true, "message":"", "code":1} */ /** * @api {get} /v1/upkeep/plan/query/:id 04.查询保养计划 * @apiName 查询保养计划 * @apiGroup 保养计划-保养计划查询 * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/upkeep/plan/query/{id}#GET】 * @apiVersion 1.0.0 * @apiParam { Long } id 保养计划id * @apiSuccess { Object } data 数据 * @apiSuccess { Long } data.id id 主键 * @apiSuccess { String } data.name 名称 * @apiSuccess { Integer } data.type 类型 1日计划、2周计划、3月计划 * @apiSuccess { Integer } data.runModel 执行模式 1其中一人、2每人分别 * @apiSuccess { Date } data.beginDate 计划执行开始日期 * @apiSuccess { Date } data.endDate 计划执行结束日期,空代表永不结束 * @apiSuccess { Date } data.beginTime 任务执行开始时间 * @apiSuccess { Date } data.endTime 任务执行结束时间 * @apiSuccess { String } data.weeks 周计划 [1-7] * @apiSuccess { String } data.months 月计划 [1-31] * @apiSuccess { String } data.remark 备注 * @apiSuccess { Object } data.route 检查路线 * @apiSuccess { Long } data.route.id 选项key * @apiSuccess { String } data.route.name 选项值 * @apiSuccess { Object[] } data.executors 执行人列表 * @apiSuccess { Long } data.executors.id 选项key * @apiSuccess { String } data.executors.name 选项值 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":{"id":1, "name":"", "type":1, "runModel":1, "beginDate":1650761871427, "endDate":1650761871427, "beginTime":1650761871427, "endTime":1650761871427, "weeks":"", "months":"", "remark":"", "route":{"id":1, "name":""}, "executors":[{"id":1, "name":""}]}, "message":"", "code":1} */ /** * @api {get} /v1/upkeep/plan/list 05.分页查询保养计划 * @apiName 分页查询保养计划 * @apiGroup 保养计划-保养计划查询 * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/upkeep/plan/list#GET】 * @apiVersion 1.0.0 * @apiQuery { String } [ name ] 计划名称 * @apiQuery { Boolean } [ disabled ] 是否禁用 * @apiQuery { Integer } [ type ] 类型 1日计划、2周计划、3月计划 * @apiQuery { Integer } [ runModel ] 执行模式 1其中一人、2每人分别 * @apiQuery { String } [ username ] 创建人 * @apiQuery { String } [ executor ] 执行人 * @apiQuery { Integer } [ page = 1 ] 页码 * @apiQuery { Integer } [ size = 10 ] 页大小 * @apiQuery { String { ^[-+][\w]+ } } [ order = -id ] 排序规则(默认ID倒序),排序字段前加:+表示正序 -表示倒序 * @apiSuccess { Object } data 数据 * @apiSuccess { Long } data.total 数据总数 * @apiSuccess { Object[] } data.list 数据列表 * @apiSuccess { Long } data.list.id id 主键 * @apiSuccess { String } data.list.routeName 检查路线 * @apiSuccess { String } data.list.username 创建人 * @apiSuccess { String } data.list.number 编号 * @apiSuccess { String } data.list.name 名称 * @apiSuccess { Boolean } data.list.disabled 是否禁用 * @apiSuccess { Integer } data.list.type 类型 1日计划、2周计划、3月计划 * @apiSuccess { Integer } data.list.runModel 执行模式 1其中一人、2每人分别 * @apiSuccess { Date } data.list.beginDate 计划执行开始日期 * @apiSuccess { Date } data.list.endDate 计划执行结束日期,空代表永不结束 * @apiSuccess { Date } data.list.beginTime 任务执行开始时间 * @apiSuccess { Date } data.list.endTime 任务执行结束时间 * @apiSuccess { String } data.list.weeks 周计划 [1-7] * @apiSuccess { String } data.list.months 月计划 [1-31] * @apiSuccess { String } data.list.remark 备注 * @apiSuccess { String[] } data.list.executors 执行人列表 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":{"total":1, "list":[{"id":1, "routeName":"", "username":"", "number":"", "name":"", "disabled":true, "type":1, "runModel":1, "beginDate":1650761871427, "endDate":1650761871427, "beginTime":1650761871427, "endTime":1650761871427, "weeks":"", "months":"", "remark":"", "executors":[""]}]}, "message":"", "code":1} */ /** * @api {delete} /v1/upkeep/plan/delete 06.删除多条保养计划 * @apiName 删除多条保养计划 * @apiGroup 保养计划-保养计划查询 * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/upkeep/plan/delete#DELETE】 * @apiVersion 1.0.0 * @apiQuery { Long[] { 1-2147483647 } } ids 保养计划id数组 * @apiSuccess { Boolean } data 数据 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":true, "message":"", "code":1} */ /** * @api {delete} /v1/upkeep/plan/delete/:id 07.删除保养计划 * @apiName 删除保养计划 * @apiGroup 保养计划-保养计划查询 * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/upkeep/plan/delete/{id}#DELETE】 * @apiVersion 1.0.0 * @apiParam { Long } id 保养计划id * @apiSuccess { Boolean } data 数据 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":true, "message":"", "code":1} */ /** * @api {post} /v1/temporary/task/add 01.添加临时任务 * @apiName 添加临时任务 * @apiGroup 临时任务-全部临时任务 * @apiHeader {String = application/json} Content-Type = application/json * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/temporary/task/add#POST】 * @apiVersion 1.0.0 * @apiBody { String { 0..255 } } title 任务标题 * @apiBody { Integer } type 任务类型 1:一般任务 2: 较急任务 3:紧急任务 * @apiBody { String { 0..255 } } content 任务内容 * @apiBody { Long[] { 1-2147483647 } } executors 执行人列表 * @apiBody { Date } finishTime 完成时间 * @apiBody { String } [ images ] 任务图片 * @apiSuccess { Object } data 数据 * @apiSuccess { Long } data.id 任务id * @apiSuccess { String } data.title 任务标题 * @apiSuccess { Integer } data.type 任务类型 1:般任务 2:较急任务 3:紧急任务 * @apiSuccess { String } data.content 任务内容 * @apiSuccess { Long } data.userId 任务创建用户id * @apiSuccess { Integer } data.status 任务状态 1:正在处理 2:已经完成 3:已经取消 4:超时任务 * @apiSuccess { Integer } data.feedbackTotal 任务反馈数量 * @apiSuccess { Date } data.publishTime 任务发布时间 * @apiSuccess { Date } data.finishTime 任务完成时间 * @apiSuccess { String } data.images 任务图片 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":{"id":1, "title":"", "type":1, "content":"", "userId":1, "status":1, "feedbackTotal":1, "publishTime":1650761871428, "finishTime":1650761871428, "images":""}, "message":"", "code":1} */ /** * @api {put} /v1/temporary/task/update 02.更新临时任务 * @apiName 更新临时任务 * @apiGroup 临时任务-全部临时任务 * @apiHeader {String = application/json} Content-Type = application/json * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/temporary/task/update#PUT】 * @apiVersion 1.0.0 * @apiBody { Long } id id 主键 * @apiBody { Integer } status 任务状态 2:完成 3:取消 * @apiSuccess { Object } data 数据 * @apiSuccess { Long } data.id 任务id * @apiSuccess { String } data.title 任务标题 * @apiSuccess { Integer } data.type 任务类型 1:般任务 2:较急任务 3:紧急任务 * @apiSuccess { String } data.content 任务内容 * @apiSuccess { Long } data.userId 任务创建用户id * @apiSuccess { Integer } data.status 任务状态 1:正在处理 2:已经完成 3:已经取消 4:超时任务 * @apiSuccess { Integer } data.feedbackTotal 任务反馈数量 * @apiSuccess { Date } data.publishTime 任务发布时间 * @apiSuccess { Date } data.finishTime 任务完成时间 * @apiSuccess { String } data.images 任务图片 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":{"id":1, "title":"", "type":1, "content":"", "userId":1, "status":1, "feedbackTotal":1, "publishTime":1650761871428, "finishTime":1650761871428, "images":""}, "message":"", "code":1} */ /** * @api {get} /v1/temporary/task/list 03.分页查询临时任务 * @apiName 分页查询临时任务 * @apiGroup 临时任务-全部临时任务 * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/temporary/task/list#GET】 * @apiVersion 1.0.0 * @apiQuery { String } [ title ] 任务标题 * @apiQuery { Integer } [ type ] 任务类型 1:一般任务 2: 较急任务 3:紧急任务 * @apiQuery { Integer } [ status ] 任务状态 1:正在处理 2:已经完成 3:已经取消 4:超时任务 * @apiQuery { String } [ content ] 任务内容 * @apiQuery { String } [ username ] 发起人名称 * @apiQuery { String } [ executor ] 执行人名称 * @apiQuery { Date } [ startTime ] 开始日期 * @apiQuery { Date } [ endTime ] 结束日期 * @apiQuery { Integer } [ page = 1 ] 页码 * @apiQuery { Integer } [ size = 10 ] 页大小 * @apiQuery { String { ^[-+][\w]+ } } [ order = -id ] 排序规则(默认ID倒序),排序字段前加:+表示正序 -表示倒序 * @apiSuccess { Object } data 数据 * @apiSuccess { Long } data.total 数据总数 * @apiSuccess { Object[] } data.list 数据列表 * @apiSuccess { Long } data.list.id 任务id * @apiSuccess { String } data.list.title 任务标题 * @apiSuccess { Integer } data.list.type 任务类型 1:一般任务 2: 较急任务 3:紧急任务 * @apiSuccess { String } data.list.username 发起人姓名 * @apiSuccess { Integer } data.list.status 任务状态 1:正在处理 2:已经完成 3:已经取消 4:超时任务 * @apiSuccess { String } data.list.content 任务内容 * @apiSuccess { Integer } data.list.feedbackTotal 执行反馈次数 * @apiSuccess { Date } data.list.publishTime 发布时间 * @apiSuccess { Date } data.list.finishTime 完成时间 * @apiSuccess { String } data.list.images 任务图片 * @apiSuccess { String[] } data.list.executors 执行人 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":{"total":1, "list":[{"id":1, "title":"", "type":1, "username":"", "status":1, "content":"", "feedbackTotal":1, "publishTime":1650761871428, "finishTime":1650761871428, "images":"", "executors":[""]}]}, "message":"", "code":1} */ /** * @api {get} /v1/temporary/task/list/statistical 04.临时任务统计 * @apiName 临时任务统计 * @apiGroup 临时任务-全部临时任务 * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/temporary/task/list/statistical#GET】 * @apiVersion 1.0.0 * @apiQuery { Integer } type 统计口径 1:执行人 2:任务类型 3:任务日期 4:任务月份 * @apiQuery { Date } [ startTime ] 开始日期 * @apiQuery { Date } [ endTime ] 结束日期 * @apiQuery { Integer } [ page = 1 ] 页码 * @apiQuery { Integer } [ size = 10 ] 页大小 * @apiQuery { String { ^[-+][\w]+ } } [ order = +name ] 排序规则(默认name正序),排序字段前加:+表示正序 -表示倒序 * @apiSuccess { Object } data 数据 * @apiSuccess { Long } data.total 数据总数 * @apiSuccess { Object[] } data.list 数据列表 * @apiSuccess { String } data.list.name 项目名称 * @apiSuccess { Object[] } data.list.statusList 状态列表 * @apiSuccess { Integer } data.list.statusList.status 任务状态 1:正在处理 2:已经完成 3:已经取消 4:超时任务 * @apiSuccess { Integer } data.list.statusList.count 任务总数 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":{"total":1, "list":[{"name":"", "statusList":[{"status":1, "count":1}]}]}, "message":"", "code":1} */ /** * @api {delete} /v1/temporary/task/delete 05.删除多条临时任务 * @apiName 删除多条临时任务 * @apiGroup 临时任务-全部临时任务 * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/temporary/task/delete#DELETE】 * @apiVersion 1.0.0 * @apiQuery { Long[] { 1-2147483647 } } ids 临时任务id数组 * @apiSuccess { Boolean } data 数据 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":true, "message":"", "code":1} */ /** * @api {delete} /v1/temporary/task/delete/:id 06.删除临时任务 * @apiName 删除临时任务 * @apiGroup 临时任务-全部临时任务 * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/temporary/task/delete/{id}#DELETE】 * @apiVersion 1.0.0 * @apiParam { Long } id 临时任务id * @apiSuccess { Boolean } data 数据 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":true, "message":"", "code":1} */ /** * @api {get} /v1/temporary/task/feedback/list 01.分页查询临时任务反馈 * @apiName 分页查询临时任务反馈 * @apiGroup 临时任务-临时任务反馈 * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/temporary/task/feedback/list#GET】 * @apiVersion 1.0.0 * @apiQuery { Long } taskId 任务id * @apiQuery { Integer } [ page = 1 ] 页码 * @apiQuery { Integer } [ size = 10 ] 页大小 * @apiQuery { String { ^[-+][\w]+ } } [ order = -id ] 排序规则(默认ID倒序),排序字段前加:+表示正序 -表示倒序 * @apiSuccess { Object } data 数据 * @apiSuccess { Long } data.total 数据总数 * @apiSuccess { Object[] } data.list 数据列表 * @apiSuccess { Long } data.list.id id 主键 * @apiSuccess { String } data.list.username 反馈人 * @apiSuccess { String } data.list.content 反馈内容 * @apiSuccess { Date } data.list.createTime 反馈时间 * @apiSuccess { String } data.list.images 图片地址 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":{"total":1, "list":[{"id":1, "username":"", "content":"", "createTime":1650761871429, "images":""}]}, "message":"", "code":1} */ /** * @api {post} /v1/device/building/add 01.添加楼栋 * @apiName 添加楼栋 * @apiGroup 资产管理-楼栋管理 * @apiHeader {String = application/json} Content-Type = application/json * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/device/building/add#POST】 * @apiVersion 1.0.0 * @apiBody { String } name 楼栋名称 * @apiSuccess { Object } data 数据 * @apiSuccess { Long } data.id 楼栋id * @apiSuccess { String } data.name 楼栋名称 * @apiSuccess { Date } data.createTime 创建时间 * @apiSuccess { Date } data.updateTime 最后更新时间 * @apiSuccess { Long } data.updateUserId 最后更新用户id * @apiSuccess { String } data.updateUsername 最后更新用户名 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":{"id":1, "name":"", "createTime":1650761871429, "updateTime":1650761871429, "updateUserId":1, "updateUsername":""}, "message":"", "code":1} */ /** * @api {delete} /v1/device/building/delete 02.删除多条楼栋 * @apiName 删除多条楼栋 * @apiGroup 资产管理-楼栋管理 * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/device/building/delete#DELETE】 * @apiVersion 1.0.0 * @apiQuery { Long[] { 1-2147483647 } } ids 楼栋id数组 * @apiSuccess { Boolean } data 数据 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":true, "message":"", "code":1} */ /** * @api {delete} /v1/device/building/delete/:id 03.删除楼栋 * @apiName 删除楼栋 * @apiGroup 资产管理-楼栋管理 * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/device/building/delete/{id}#DELETE】 * @apiVersion 1.0.0 * @apiParam { Long } id 楼栋id * @apiSuccess { Boolean } data 数据 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":true, "message":"", "code":1} */ /** * @api {put} /v1/device/building/update 04.更新楼栋 * @apiName 更新楼栋 * @apiGroup 资产管理-楼栋管理 * @apiHeader {String = application/json} Content-Type = application/json * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/device/building/update#PUT】 * @apiVersion 1.0.0 * @apiBody { Long } id 楼栋ID * @apiBody { String } name 楼栋名称 * @apiSuccess { Boolean } data 数据 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":true, "message":"", "code":1} */ /** * @api {get} /v1/device/building/list 05.分页查询楼栋 * @apiName 分页查询楼栋 * @apiGroup 资产管理-楼栋管理 * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/device/building/list#GET】 * @apiVersion 1.0.0 * @apiQuery { String } [ name ] 楼栋名称 * @apiQuery { Integer } [ page = 1 ] 页码 * @apiQuery { Integer } [ size = 10 ] 页大小 * @apiQuery { String { ^[-+][\w]+ } } [ order = -id ] 排序规则(默认ID倒序),排序字段前加:+表示正序 -表示倒序 * @apiSuccess { Object } data 数据 * @apiSuccess { Long } data.total 数据总数 * @apiSuccess { Object[] } data.list 数据列表 * @apiSuccess { Long } data.list.id 楼栋id * @apiSuccess { String } data.list.name 楼栋名称 * @apiSuccess { Integer } data.list.floorTotal 总层高 * @apiSuccess { Integer } data.list.roomTotal 总房间数 * @apiSuccess { Date } data.list.updateTime 最后更新时间 * @apiSuccess { String } data.list.updateUsername 最后更新用户名 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":{"total":1, "list":[{"id":1, "name":"", "floorTotal":1, "roomTotal":1, "updateTime":1650761871429, "updateUsername":""}]}, "message":"", "code":1} */ /** * @api {get} /v1/device/building/list/option 06.获取所有楼栋选项列表 * @apiName 获取所有楼栋选项列表 * @apiGroup 资产管理-楼栋管理 * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiVersion 1.0.0 * @apiSuccess { Object[] } data 数据 * @apiSuccess { Long } data.id 选项key * @apiSuccess { String } data.name 选项值 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":[{"id":1, "name":""}], "message":"", "code":1} */ /** * @api {post} /v1/device/floor/add 01.添加楼层 * @apiName 添加楼层 * @apiGroup 资产管理-楼层管理 * @apiHeader {String = application/json} Content-Type = application/json * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/device/floor/add#POST】 * @apiVersion 1.0.0 * @apiBody { String } name 楼层名称 * @apiBody { Long } buildingId 楼栋id * @apiSuccess { Object } data 数据 * @apiSuccess { Long } data.id 楼层id * @apiSuccess { String } data.name 楼层名称 * @apiSuccess { Long } data.buildingId 楼栋id * @apiSuccess { Date } data.createTime 楼层创建时间 * @apiSuccess { Date } data.updateTime 楼层更新时间 * @apiSuccess { Long } data.updateUserId 最后更新用户id * @apiSuccess { String } data.updateUsername 最后更新用户名 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":{"id":1, "name":"", "buildingId":1, "createTime":1650761871430, "updateTime":1650761871430, "updateUserId":1, "updateUsername":""}, "message":"", "code":1} */ /** * @api {delete} /v1/device/floor/delete 02.删除多条楼层 * @apiName 删除多条楼层 * @apiGroup 资产管理-楼层管理 * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/device/floor/delete#DELETE】 * @apiVersion 1.0.0 * @apiQuery { Long[] { 1-2147483647 } } ids 楼层id数组 * @apiSuccess { Boolean } data 数据 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":true, "message":"", "code":1} */ /** * @api {delete} /v1/device/floor/delete/:id 03.删除楼层 * @apiName 删除楼层 * @apiGroup 资产管理-楼层管理 * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/device/floor/delete/{id}#DELETE】 * @apiVersion 1.0.0 * @apiParam { Long } id 楼层id * @apiSuccess { Boolean } data 数据 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":true, "message":"", "code":1} */ /** * @api {put} /v1/device/floor/update 04.更新楼层 * @apiName 更新楼层 * @apiGroup 资产管理-楼层管理 * @apiHeader {String = application/json} Content-Type = application/json * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/device/floor/update#PUT】 * @apiVersion 1.0.0 * @apiBody { Long } id 楼层id * @apiBody { String } name 楼层名称 * @apiBody { Long } buildingId 楼栋id * @apiSuccess { Object } data 数据 * @apiSuccess { Long } data.id 楼层id * @apiSuccess { String } data.name 楼层名称 * @apiSuccess { Long } data.buildingId 楼栋id * @apiSuccess { Date } data.createTime 楼层创建时间 * @apiSuccess { Date } data.updateTime 楼层更新时间 * @apiSuccess { Long } data.updateUserId 最后更新用户id * @apiSuccess { String } data.updateUsername 最后更新用户名 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":{"id":1, "name":"", "buildingId":1, "createTime":1650761871430, "updateTime":1650761871430, "updateUserId":1, "updateUsername":""}, "message":"", "code":1} */ /** * @api {get} /v1/device/floor/list 05.分页查询楼层 * @apiName 分页查询楼层 * @apiGroup 资产管理-楼层管理 * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/device/floor/list#GET】 * @apiVersion 1.0.0 * @apiQuery { Long } [ buildingId ] 楼栋id * @apiQuery { String } [ buildingName ] 楼栋名称 * @apiQuery { String } [ name ] 楼层名称 * @apiQuery { Integer } [ page = 1 ] 页码 * @apiQuery { Integer } [ size = 10 ] 页大小 * @apiQuery { String { ^[-+][\w]+ } } [ order = -id ] 排序规则(默认ID倒序),排序字段前加:+表示正序 -表示倒序 * @apiSuccess { Object } data 数据 * @apiSuccess { Long } data.total 数据总数 * @apiSuccess { Object[] } data.list 数据列表 * @apiSuccess { Long } data.list.id 楼层id * @apiSuccess { String } data.list.name 楼层名称 * @apiSuccess { String } data.list.buildingId 所属楼栋 * @apiSuccess { String } data.list.buildingName 所属楼栋 * @apiSuccess { Integer } data.list.roomTotal 总房间数 * @apiSuccess { Date } data.list.updateTime 楼层更新时间 * @apiSuccess { String } data.list.updateUsername 最后更新用户名 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":{"total":1, "list":[{"id":1, "name":"", "buildingId":"", "buildingName":"", "roomTotal":1, "updateTime":1650761871430, "updateUsername":""}]}, "message":"", "code":1} */ /** * @api {get} /v1/device/floor/list/option/:buildingId 06.获取楼栋中的所有楼层选项 * @apiName 获取楼栋中的所有楼层选项 * @apiGroup 资产管理-楼层管理 * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiVersion 1.0.0 * @apiParam { Long } buildingId 楼栋id * @apiSuccess { Object[] } data 数据 * @apiSuccess { Long } data.id 选项key * @apiSuccess { String } data.name 选项值 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":[{"id":1, "name":""}], "message":"", "code":1} */ /** * @api {post} /v1/device/room/add 01.添加房间 * @apiName 添加房间 * @apiGroup 资产管理-房间管理 * @apiHeader {String = application/json} Content-Type = application/json * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/device/room/add#POST】 * @apiVersion 1.0.0 * @apiBody { String } name 房间名称 * @apiBody { String } number 房间编号 * @apiBody { Long } floorId 房间位置(楼层id) * @apiBody { Long[] } [ checkItems = [] ] 检查项 * @apiSuccess { Object } data 数据 * @apiSuccess { Long } data.id 房间id * @apiSuccess { String } data.name 房间名称 * @apiSuccess { Long } data.floorId 楼层id * @apiSuccess { String } data.number 房间编号 * @apiSuccess { Date } data.createTime 房间创建时间 * @apiSuccess { Date } data.updateTime 房间最后更新时间 * @apiSuccess { Long } data.updateUserId 房间最后更新用户id * @apiSuccess { String } data.updateUsername 房间最后更新用户名 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":{"id":1, "name":"", "floorId":1, "number":"", "createTime":1650761871430, "updateTime":1650761871430, "updateUserId":1, "updateUsername":""}, "message":"", "code":1} */ /** * @api {delete} /v1/device/room/delete/:id 02.删除房间 * @apiName 删除房间 * @apiGroup 资产管理-房间管理 * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/device/room/delete/{id}#DELETE】 * @apiVersion 1.0.0 * @apiParam { Long } id 房间id * @apiSuccess { Boolean } data 数据 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":true, "message":"", "code":1} */ /** * @api {delete} /v1/device/room/delete 03.删除多条房间 * @apiName 删除多条房间 * @apiGroup 资产管理-房间管理 * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/device/room/delete#DELETE】 * @apiVersion 1.0.0 * @apiQuery { Long[] { 1-2147483647 } } ids 房间id数组 * @apiSuccess { Boolean } data 数据 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":true, "message":"", "code":1} */ /** * @api {put} /v1/device/room/update 04.更新房间 * @apiName 更新房间 * @apiGroup 资产管理-房间管理 * @apiHeader {String = application/json} Content-Type = application/json * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/device/room/update#PUT】 * @apiVersion 1.0.0 * @apiBody { Long } id 房间id * @apiBody { String } name 房间名称 * @apiBody { String } number 房间编号 * @apiBody { Long } floorId 房间位置(楼层id) * @apiBody { Long[] } [ checkItems = [] ] 检查项 * @apiSuccess { Object } data 数据 * @apiSuccess { Long } data.id 房间id * @apiSuccess { String } data.name 房间名称 * @apiSuccess { Long } data.floorId 楼层id * @apiSuccess { String } data.number 房间编号 * @apiSuccess { Date } data.createTime 房间创建时间 * @apiSuccess { Date } data.updateTime 房间最后更新时间 * @apiSuccess { Long } data.updateUserId 房间最后更新用户id * @apiSuccess { String } data.updateUsername 房间最后更新用户名 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":{"id":1, "name":"", "floorId":1, "number":"", "createTime":1650761871430, "updateTime":1650761871430, "updateUserId":1, "updateUsername":""}, "message":"", "code":1} */ /** * @api {get} /v1/device/room/query/:id 05.查询房间 * @apiName 查询房间 * @apiGroup 资产管理-房间管理 * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/device/room/query/{id}#GET】 * @apiVersion 1.0.0 * @apiParam { Long } id 房间id * @apiSuccess { Object } data 数据 * @apiSuccess { Long } data.id 房间id * @apiSuccess { String } data.name 房间名称 * @apiSuccess { String } data.number 房间编号 * @apiSuccess { Long } data.buildingId 楼栋id * @apiSuccess { Long } data.floorId 楼层id * @apiSuccess { Object[] } data.checkItems 检查项列表 * @apiSuccess { Integer } data.checkItems.itemType 检查项类别 1选择、2数字、3文本、4拍照 * @apiSuccess { String } data.checkItems.isScore 是否参与评分 1是、2否 * @apiSuccess { Long } data.checkItems.id 选项key * @apiSuccess { String } data.checkItems.name 选项值 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":{"id":1, "name":"", "number":"", "buildingId":1, "floorId":1, "checkItems":[{"itemType":1, "isScore":"", "id":1, "name":""}]}, "message":"", "code":1} */ /** * @api {get} /v1/device/room/list 06.分页查询房间 * @apiName 分页查询房间 * @apiGroup 资产管理-房间管理 * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/device/room/list#GET】 * @apiVersion 1.0.0 * @apiQuery { Long } [ buildingId ] 楼栋id * @apiQuery { String } [ buildingName ] 楼栋名称 * @apiQuery { Long } [ floorId ] 楼层id * @apiQuery { String } [ floorName ] 楼层名称 * @apiQuery { String } [ name ] 房间名称 * @apiQuery { Integer } [ page = 1 ] 页码 * @apiQuery { Integer } [ size = 10 ] 页大小 * @apiQuery { String { ^[-+][\w]+ } } [ order = -id ] 排序规则(默认ID倒序),排序字段前加:+表示正序 -表示倒序 * @apiSuccess { Object } data 数据 * @apiSuccess { Long } data.total 数据总数 * @apiSuccess { Object[] } data.list 数据列表 * @apiSuccess { Long } data.list.id 房间id * @apiSuccess { String } data.list.name 房间名称 * @apiSuccess { String } data.list.number 房间编号 * @apiSuccess { Long } data.list.buildingId 楼栋id * @apiSuccess { String } data.list.buildingName 楼栋名称 * @apiSuccess { Long } data.list.floorId 楼层id * @apiSuccess { String } data.list.floorName 楼层名称 * @apiSuccess { Integer } data.list.deviceTotal 设备数量 * @apiSuccess { Integer } data.list.itemTotal 项目数量 * @apiSuccess { Date } data.list.updateTime 房间最后更新时间 * @apiSuccess { String } data.list.updateUsername 房间最后更新用户名 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":{"total":1, "list":[{"id":1, "name":"", "number":"", "buildingId":1, "buildingName":"", "floorId":1, "floorName":"", "deviceTotal":1, "itemTotal":1, "updateTime":1650761871431, "updateUsername":""}]}, "message":"", "code":1} */ /** * @api {get} /v1/device/room/list/option/:floorId 07.获取楼层中的所有房间选项 * @apiName 获取楼层中的所有房间选项 * @apiGroup 资产管理-房间管理 * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiVersion 1.0.0 * @apiParam { Long } floorId 楼层id * @apiSuccess { Object[] } data 数据 * @apiSuccess { Long } data.id 选项key * @apiSuccess { String } data.name 选项值 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":[{"id":1, "name":""}], "message":"", "code":1} */ /** * @api {delete} /v1/device/delete 01.删除多条设备 * @apiName 删除多条设备 * @apiGroup 资产管理-设备管理 * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/device/delete#DELETE】 * @apiVersion 1.0.0 * @apiQuery { Long[] { 1-2147483647 } } ids 设备id数组 * @apiSuccess { Boolean } data 数据 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":true, "message":"", "code":1} */ /** * @api {delete} /v1/device/delete/:id 02.删除设备 * @apiName 删除设备 * @apiGroup 资产管理-设备管理 * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/device/delete/{id}#DELETE】 * @apiVersion 1.0.0 * @apiParam { Long } id 设备id * @apiSuccess { Boolean } data 数据 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":true, "message":"", "code":1} */ /** * @api {post} /v1/device/add 03.添加设备 * @apiName 添加设备 * @apiGroup 资产管理-设备管理 * @apiHeader {String = application/json} Content-Type = application/json * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/device/add#POST】 * @apiVersion 1.0.0 * @apiBody { String } name 设备名称 * @apiBody { Long } roomId 房间id * @apiBody { String } [ vendor ] 设备厂家 * @apiBody { String } [ model ] 设备型号 * @apiBody { Integer } type 设备类型 1:机柜设备 99:其他设备 * @apiBody { Integer } [ layerTotal ] 设备层数 机柜设备有效 * @apiBody { String } [ params ] 设备参数 json格式 * @apiBody { Long[] } [ checkItems ] 检查项 * @apiBody { String } [ images ] 设备照片 json格式 * @apiBody { String } [ files ] 设备附件 json格式 * @apiSuccess { Object } data 数据 * @apiSuccess { Long } data.id 设备id * @apiSuccess { String } data.name 设备名称 * @apiSuccess { Long } data.roomId 房间id * @apiSuccess { String } data.number 设备编号 * @apiSuccess { String } data.vendor 设备厂家 * @apiSuccess { String } data.model 设备型号 * @apiSuccess { Integer } data.type 设备类型 1:机柜设备 99:其他设备 * @apiSuccess { Date } data.createTime 设备创建时间 * @apiSuccess { Date } data.updateTime 设备更新时间 * @apiSuccess { Long } data.updateUserId 设备更新用户id * @apiSuccess { String } data.updateUsername 设备更新用户名 * @apiSuccess { String } data.params 设备参数 json格式 * @apiSuccess { String } data.images 设备照片 json格式 * @apiSuccess { String } data.files 设备附件 json格式 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":{"id":1, "name":"", "roomId":1, "number":"", "vendor":"", "model":"", "type":1, "createTime":1650761871431, "updateTime":1650761871431, "updateUserId":1, "updateUsername":"", "params":"", "images":"", "files":""}, "message":"", "code":1} */ /** * @api {put} /v1/device/update 04.更新设备 * @apiName 更新设备 * @apiGroup 资产管理-设备管理 * @apiHeader {String = application/json} Content-Type = application/json * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/device/update#PUT】 * @apiVersion 1.0.0 * @apiBody { Long } id 设备id * @apiBody { String } name 设备名称 * @apiBody { Long } roomId 房间id * @apiBody { String } number 设备编号 * @apiBody { String } [ vendor ] 设备厂家 * @apiBody { String } [ model ] 设备型号 * @apiBody { String } [ params ] 设备参数 json格式 * @apiBody { Long[] } [ checkItems = [] ] 检查项 * @apiBody { String } [ images ] 设备照片 json格式 * @apiBody { String } [ files ] 设备附件 json格式 * @apiSuccess { Object } data 数据 * @apiSuccess { Long } data.id 设备id * @apiSuccess { String } data.name 设备名称 * @apiSuccess { Long } data.roomId 房间id * @apiSuccess { String } data.number 设备编号 * @apiSuccess { String } data.vendor 设备厂家 * @apiSuccess { String } data.model 设备型号 * @apiSuccess { Integer } data.type 设备类型 1:机柜设备 99:其他设备 * @apiSuccess { Date } data.createTime 设备创建时间 * @apiSuccess { Date } data.updateTime 设备更新时间 * @apiSuccess { Long } data.updateUserId 设备更新用户id * @apiSuccess { String } data.updateUsername 设备更新用户名 * @apiSuccess { String } data.params 设备参数 json格式 * @apiSuccess { String } data.images 设备照片 json格式 * @apiSuccess { String } data.files 设备附件 json格式 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":{"id":1, "name":"", "roomId":1, "number":"", "vendor":"", "model":"", "type":1, "createTime":1650761871431, "updateTime":1650761871431, "updateUserId":1, "updateUsername":"", "params":"", "images":"", "files":""}, "message":"", "code":1} */ /** * @api {get} /v1/device/query/:id 05.查询设备 * @apiName 查询设备 * @apiGroup 资产管理-设备管理 * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/device/query/{id}#GET】 * @apiVersion 1.0.0 * @apiParam { Long } id 设备id * @apiSuccess { Object } data 数据 * @apiSuccess { Long } data.id 设备id * @apiSuccess { String } data.name 设备名称 * @apiSuccess { Long } data.buildingId 楼栋id * @apiSuccess { Long } data.floorId 楼层id * @apiSuccess { Long } data.roomId 房间id * @apiSuccess { String } data.number 设备编号 * @apiSuccess { String } data.vendor 设备厂家 * @apiSuccess { String } data.model 设备型号 * @apiSuccess { Integer } data.type 设备类型 1:机柜设备 99:其他设备 * @apiSuccess { Date } data.createTime 设备创建时间 * @apiSuccess { Date } data.updateTime 设备更新时间 * @apiSuccess { Long } data.updateUserId 设备更新用户id * @apiSuccess { String } data.updateUsername 设备更新用户名 * @apiSuccess { String } data.params 设备参数 json格式 * @apiSuccess { String } data.images 设备照片 json格式 * @apiSuccess { String } data.files 设备附件 json格式 * @apiSuccess { Object } data.cabinet 机柜 机柜设备有效 * @apiSuccess { Long } data.cabinet.id 机柜id * @apiSuccess { Long } data.cabinet.deviceId 设备id * @apiSuccess { Integer } data.cabinet.layerTotal 机柜层数 * @apiSuccess { Integer } data.cabinet.layerUsed 机柜已使用层数 * @apiSuccess { Object[] } data.checkItems 检查项列表 * @apiSuccess { Integer } data.checkItems.itemType 检查项类别 1选择、2数字、3文本、4拍照 * @apiSuccess { String } data.checkItems.isScore 是否参与评分 1是、2否 * @apiSuccess { Long } data.checkItems.id 选项key * @apiSuccess { String } data.checkItems.name 选项值 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":{"id":1, "name":"", "buildingId":1, "floorId":1, "roomId":1, "number":"", "vendor":"", "model":"", "type":1, "createTime":1650761871431, "updateTime":1650761871431, "updateUserId":1, "updateUsername":"", "params":"", "images":"", "files":"", "cabinet":{"id":1, "deviceId":1, "layerTotal":1, "layerUsed":1}, "checkItems":[{"itemType":1, "isScore":"", "id":1, "name":""}]}, "message":"", "code":1} */ /** * @api {get} /v1/device/list 06.分页查询设备 * @apiName 分页查询设备 * @apiGroup 资产管理-设备管理 * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/device/list#GET】 * @apiVersion 1.0.0 * @apiQuery { Long } [ buildingId ] 楼栋id * @apiQuery { String } [ buildingName ] 楼栋名称 * @apiQuery { Long } [ floorId ] 楼层id * @apiQuery { String } [ floorName ] 楼层名称 * @apiQuery { Long } [ roomId ] 房间id * @apiQuery { String } [ roomName ] 房间名称 * @apiQuery { String } [ name ] 设备名称 * @apiQuery { Integer } [ type ] 设备类型 1:机柜设备 99:其他设备 * @apiQuery { Integer } [ page = 1 ] 页码 * @apiQuery { Integer } [ size = 10 ] 页大小 * @apiQuery { String { ^[-+][\w]+ } } [ order = -id ] 排序规则(默认ID倒序),排序字段前加:+表示正序 -表示倒序 * @apiSuccess { Object } data 数据 * @apiSuccess { Long } data.total 数据总数 * @apiSuccess { Object[] } data.list 数据列表 * @apiSuccess { Long } data.list.id 设备id * @apiSuccess { String } data.list.name 设备名称 * @apiSuccess { String } data.list.number 设备编号 * @apiSuccess { String } data.list.buildingName 楼栋名称 * @apiSuccess { String } data.list.floorName 楼层名称 * @apiSuccess { String } data.list.roomName 房间名称 * @apiSuccess { Integer } data.list.checkItemTotal 关联检查项数 * @apiSuccess { Integer } data.list.type 设备类型 1:机柜设备 99:其他设备 * @apiSuccess { Date } data.list.createTime 设备创建时间 * @apiSuccess { Object } data.list.cabinet 机柜 机柜设备有效 * @apiSuccess { Long } data.list.cabinet.id 机柜id * @apiSuccess { Long } data.list.cabinet.deviceId 设备id * @apiSuccess { Integer } data.list.cabinet.layerTotal 机柜层数 * @apiSuccess { Integer } data.list.cabinet.layerUsed 机柜已使用层数 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":{"total":1, "list":[{"id":1, "name":"", "number":"", "buildingName":"", "floorName":"", "roomName":"", "checkItemTotal":1, "type":1, "createTime":1650761871431, "cabinet":{"id":1, "deviceId":1, "layerTotal":1, "layerUsed":1}}]}, "message":"", "code":1} */ /** * @api {get} /v1/device/list/option/:roomId 07.获取房间中的所有设备选项 * @apiName 获取房间中的所有设备选项 * @apiGroup 资产管理-设备管理 * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiVersion 1.0.0 * @apiParam { Long } roomId 房间id * @apiSuccess { Object[] } data 数据 * @apiSuccess { Long } data.id 选项key * @apiSuccess { String } data.name 选项值 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":[{"id":1, "name":""}], "message":"", "code":1} */ /** * @api {put} /v1/device/cabinet/child/device/update 01.更新机柜内设备 * @apiName 更新机柜内设备 * @apiGroup 资产管理-设备管理-机柜-设备 * @apiHeader {String = application/json} Content-Type = application/json * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/device/cabinet/child/device/update#PUT】 * @apiVersion 1.0.0 * @apiBody { Long } [ id ] 机柜内设备id * @apiBody { Long } [ cabinetId ] 机柜id * @apiBody { String } [ name ] 设备名称 * @apiBody { String } [ vendor ] 设备厂商 * @apiBody { String } [ model ] 设备型号 * @apiBody { Integer } [ layerCount ] 设备占用层数 * @apiBody { String } [ remark ] 备注 * @apiBody { Integer } [ top ] 设备顶部距机柜顶端距离 * @apiBody { Integer } [ bottom ] 设备底部距机柜顶端距离 * @apiSuccess { Object } data 数据 * @apiSuccess { Long } data.id 机柜内设备id * @apiSuccess { Long } data.cabinetId 机柜id * @apiSuccess { String } data.name 设备名称 * @apiSuccess { String } data.vendor 设备厂商 * @apiSuccess { String } data.model 设备型号 * @apiSuccess { Integer } data.layerCount 设备占用层数 * @apiSuccess { String } data.remark 备注 * @apiSuccess { Integer } data.top 设备顶部距机柜顶端距离 * @apiSuccess { Integer } data.bottom 设备底部距机柜顶端距离 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":{"id":1, "cabinetId":1, "name":"", "vendor":"", "model":"", "layerCount":1, "remark":"", "top":1, "bottom":1}, "message":"", "code":1} */ /** * @api {get} /v1/device/cabinet/child/device/list 02.分页查询机柜内设备 * @apiName 分页查询机柜内设备 * @apiGroup 资产管理-设备管理-机柜-设备 * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/device/cabinet/child/device/list#GET】 * @apiVersion 1.0.0 * @apiQuery { Long } [ cabinetId ] 机柜id * @apiQuery { String } [ name ] 设备名称 * @apiQuery { String } [ vendor ] 设备厂商 * @apiQuery { String } [ model ] 设备型号 * @apiQuery { Integer } [ layerCount ] 设备占用层数 * @apiQuery { String } [ remark ] 备注 * @apiQuery { Integer } [ top ] 设备顶部距机柜顶端距离 * @apiQuery { Integer } [ bottom ] 设备底部距机柜顶端距离 * @apiQuery { Integer } [ page = 1 ] 页码 * @apiQuery { Integer } [ size = 10 ] 页大小 * @apiQuery { String { ^[-+][\w]+ } } [ order = -id ] 排序规则(默认ID倒序),排序字段前加:+表示正序 -表示倒序 * @apiSuccess { Object } data 数据 * @apiSuccess { Long } data.total 数据总数 * @apiSuccess { Object[] } data.list 数据列表 * @apiSuccess { Long } data.list.id 机柜内设备id * @apiSuccess { Long } data.list.cabinetId 机柜id * @apiSuccess { String } data.list.name 设备名称 * @apiSuccess { String } data.list.vendor 设备厂商 * @apiSuccess { String } data.list.model 设备型号 * @apiSuccess { Integer } data.list.layerCount 设备占用层数 * @apiSuccess { String } data.list.remark 备注 * @apiSuccess { Integer } data.list.top 设备顶部距机柜顶端距离 * @apiSuccess { Integer } data.list.bottom 设备底部距机柜顶端距离 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":{"total":1, "list":[{"id":1, "cabinetId":1, "name":"", "vendor":"", "model":"", "layerCount":1, "remark":"", "top":1, "bottom":1}]}, "message":"", "code":1} */ /** * @api {post} /v1/device/cabinet/child/device/add 03.添加机柜内设备 * @apiName 添加机柜内设备 * @apiGroup 资产管理-设备管理-机柜-设备 * @apiHeader {String = application/json} Content-Type = application/json * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/device/cabinet/child/device/add#POST】 * @apiVersion 1.0.0 * @apiBody { Long } cabinetId 机柜id * @apiBody { String } name 设备名称 * @apiBody { String } [ vendor ] 设备厂商 * @apiBody { String } [ model ] 设备型号 * @apiBody { Integer } layerCount 设备占用层数 * @apiBody { String } [ remark ] 备注 * @apiBody { Integer } top 设备顶部距机柜顶端距离 * @apiBody { Integer } bottom 设备底部距机柜顶端距离 * @apiSuccess { Object } data 数据 * @apiSuccess { Long } data.id 机柜内设备id * @apiSuccess { Long } data.cabinetId 机柜id * @apiSuccess { String } data.name 设备名称 * @apiSuccess { String } data.vendor 设备厂商 * @apiSuccess { String } data.model 设备型号 * @apiSuccess { Integer } data.layerCount 设备占用层数 * @apiSuccess { String } data.remark 备注 * @apiSuccess { Integer } data.top 设备顶部距机柜顶端距离 * @apiSuccess { Integer } data.bottom 设备底部距机柜顶端距离 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":{"id":1, "cabinetId":1, "name":"", "vendor":"", "model":"", "layerCount":1, "remark":"", "top":1, "bottom":1}, "message":"", "code":1} */ /** * @api {delete} /v1/device/cabinet/child/device/delete/:id 04.删除机柜内设备 * @apiName 删除机柜内设备 * @apiGroup 资产管理-设备管理-机柜-设备 * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/device/cabinet/child/device/delete/{id}#DELETE】 * @apiVersion 1.0.0 * @apiParam { Long } id 机柜内设备id * @apiSuccess { Boolean } data 数据 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":true, "message":"", "code":1} */ /** * @api {post} /v1/device/template/add 01.添加机柜内设备模板 * @apiName 添加机柜内设备模板 * @apiGroup 资产管理-设备管理-机柜-设备模板 * @apiHeader {String = application/json} Content-Type = application/json * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/device/template/add#POST】 * @apiVersion 1.0.0 * @apiBody { Long } [ id ] 设备id * @apiBody { String } [ name ] 设备名称 * @apiBody { Integer } [ layerCount ] 占用层数 * @apiBody { String } [ vendor ] 设备厂商 * @apiBody { String } [ model ] 设备型号 * @apiSuccess { Object } data 数据 * @apiSuccess { Long } data.id 设备id * @apiSuccess { String } data.name 设备名称 * @apiSuccess { Integer } data.layerCount 占用层数 * @apiSuccess { String } data.vendor 设备厂商 * @apiSuccess { String } data.model 设备型号 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":{"id":1, "name":"", "layerCount":1, "vendor":"", "model":""}, "message":"", "code":1} */ /** * @api {delete} /v1/device/template/delete/:id 02.删除机柜内设备模板 * @apiName 删除机柜内设备模板 * @apiGroup 资产管理-设备管理-机柜-设备模板 * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/device/template/delete/{id}#DELETE】 * @apiVersion 1.0.0 * @apiParam { Long } id 机柜内设备模板id * @apiSuccess { Boolean } data 数据 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":true, "message":"", "code":1} */ /** * @api {put} /v1/device/template/update 03.更新机柜内设备模板 * @apiName 更新机柜内设备模板 * @apiGroup 资产管理-设备管理-机柜-设备模板 * @apiHeader {String = application/json} Content-Type = application/json * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/device/template/update#PUT】 * @apiVersion 1.0.0 * @apiBody { Long } [ id ] 设备id * @apiBody { String } [ name ] 设备名称 * @apiBody { Integer } [ layerCount ] 占用层数 * @apiBody { String } [ vendor ] 设备厂商 * @apiBody { String } [ model ] 设备型号 * @apiSuccess { Object } data 数据 * @apiSuccess { Long } data.id 设备id * @apiSuccess { String } data.name 设备名称 * @apiSuccess { Integer } data.layerCount 占用层数 * @apiSuccess { String } data.vendor 设备厂商 * @apiSuccess { String } data.model 设备型号 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":{"id":1, "name":"", "layerCount":1, "vendor":"", "model":""}, "message":"", "code":1} */ /** * @api {get} /v1/device/template/query/:id 04.查询机柜内设备模板 * @apiName 查询机柜内设备模板 * @apiGroup 资产管理-设备管理-机柜-设备模板 * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/device/template/query/{id}#GET】 * @apiVersion 1.0.0 * @apiParam { Long } id 机柜内设备模板id * @apiSuccess { Object } data 数据 * @apiSuccess { Long } data.id 设备id * @apiSuccess { String } data.name 设备名称 * @apiSuccess { Integer } data.layerCount 占用层数 * @apiSuccess { String } data.vendor 设备厂商 * @apiSuccess { String } data.model 设备型号 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":{"id":1, "name":"", "layerCount":1, "vendor":"", "model":""}, "message":"", "code":1} */ /** * @api {get} /v1/device/template/list 05.分页查询机柜内设备模板 * @apiName 分页查询机柜内设备模板 * @apiGroup 资产管理-设备管理-机柜-设备模板 * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/device/template/list#GET】 * @apiVersion 1.0.0 * @apiQuery { String } [ name ] 设备名称 * @apiQuery { Integer } [ layerCount ] 占用层数 * @apiQuery { String } [ vendor ] 设备厂商 * @apiQuery { String } [ model ] 设备型号 * @apiQuery { Integer } [ page = 1 ] 页码 * @apiQuery { Integer } [ size = 10 ] 页大小 * @apiQuery { String { ^[-+][\w]+ } } [ order = -id ] 排序规则(默认ID倒序),排序字段前加:+表示正序 -表示倒序 * @apiSuccess { Object } data 数据 * @apiSuccess { Long } data.total 数据总数 * @apiSuccess { Object[] } data.list 数据列表 * @apiSuccess { Long } data.list.id 设备id * @apiSuccess { String } data.list.name 设备名称 * @apiSuccess { Integer } data.list.layerCount 占用层数 * @apiSuccess { String } data.list.vendor 设备厂商 * @apiSuccess { String } data.list.model 设备型号 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":{"total":1, "list":[{"id":1, "name":"", "layerCount":1, "vendor":"", "model":""}]}, "message":"", "code":1} */ /** * @api {get} /v1/device/cabinet/log/list 01.分页查询机柜操作日志 * @apiName 分页查询机柜操作日志 * @apiGroup 资产管理-设备管理-机柜-操作日志 * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/device/cabinet/log/list#GET】 * @apiVersion 1.0.0 * @apiQuery { Long } [ cabinetId ] 机柜id * @apiQuery { String } [ content ] 操作内容 * @apiQuery { Date } [ createTimeStart ] 操作时间 开始时间 * @apiQuery { Date } [ createTimeEnd ] 操作时间 结束时间 * @apiQuery { Long } [ operateUserId ] 操作用户id * @apiQuery { String } [ operateUsername ] 操作用户名 * @apiQuery { Integer } [ page = 1 ] 页码 * @apiQuery { Integer } [ size = 10 ] 页大小 * @apiQuery { String { ^[-+][\w]+ } } [ order = -id ] 排序规则(默认ID倒序),排序字段前加:+表示正序 -表示倒序 * @apiSuccess { Object } data 数据 * @apiSuccess { Long } data.total 数据总数 * @apiSuccess { Object[] } data.list 数据列表 * @apiSuccess { Long } data.list.id 机柜操作日志id * @apiSuccess { Long } data.list.cabinetId 机柜id * @apiSuccess { String } data.list.content 操作内容 * @apiSuccess { Date } data.list.createTime 操作时间 * @apiSuccess { Long } data.list.operateUserId 操作用户id * @apiSuccess { String } data.list.operateUsername 操作用户名 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":{"total":1, "list":[{"id":1, "cabinetId":1, "content":"", "createTime":1650761871433, "operateUserId":1, "operateUsername":""}]}, "message":"", "code":1} */ /** * @api {post} /v1/stock/classify/add 01.添加资产分类 * @apiName 添加资产分类 * @apiGroup 出入库管理-物品分类 * @apiHeader {String = application/json} Content-Type = application/json * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/stock/classify/add#POST】 * @apiVersion 1.0.0 * @apiBody { String } name 分类名称 * @apiSuccess { Object } data 数据 * @apiSuccess { Long } data.id id主键 * @apiSuccess { String } data.name 分类名称 * @apiSuccess { Date } data.createTime 添加时间 * @apiSuccess { Date } data.updateTime 更新时间 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":{"id":1, "name":"", "createTime":1650761871434, "updateTime":1650761871434}, "message":"", "code":1} */ /** * @api {put} /v1/stock/classify/update 02.更新资产分类 * @apiName 更新资产分类 * @apiGroup 出入库管理-物品分类 * @apiHeader {String = application/json} Content-Type = application/json * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/stock/classify/update#PUT】 * @apiVersion 1.0.0 * @apiBody { Long } id id 主键 * @apiBody { String } name 分类名称 * @apiSuccess { Object } data 数据 * @apiSuccess { Long } data.id id主键 * @apiSuccess { String } data.name 分类名称 * @apiSuccess { Date } data.createTime 添加时间 * @apiSuccess { Date } data.updateTime 更新时间 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":{"id":1, "name":"", "createTime":1650761871434, "updateTime":1650761871434}, "message":"", "code":1} */ /** * @api {delete} /v1/stock/classify/delete/:id 03.删除物品类别 * @apiName 删除物品类别 * @apiGroup 出入库管理-物品分类 * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/stock/classify/delete/{id}#DELETE】 * @apiVersion 1.0.0 * @apiParam { Long } id 物品类别id * @apiSuccess { Boolean } data 数据 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":true, "message":"", "code":1} */ /** * @api {delete} /v1/stock/classify/delete 04.删除多条物品类别 * @apiName 删除多条物品类别 * @apiGroup 出入库管理-物品分类 * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/stock/classify/delete#DELETE】 * @apiVersion 1.0.0 * @apiQuery { Long[] { 1-2147483647 } } ids 物品类别id数组 * @apiSuccess { Boolean } data 数据 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":true, "message":"", "code":1} */ /** * @api {get} /v1/stock/classify/list 05.分页查询物品类别 * @apiName 分页查询物品类别 * @apiGroup 出入库管理-物品分类 * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/stock/classify/list#GET】 * @apiVersion 1.0.0 * @apiQuery { String } [ name ] 分类名称 * @apiQuery { Date } [ createTimeStart ] 添加时间 开始时间 * @apiQuery { Date } [ createTimeEnd ] 添加时间 结束时间 * @apiQuery { Date } [ updateTimeStart ] 更新时间 开始时间 * @apiQuery { Date } [ updateTimeEnd ] 更新时间 结束时间 * @apiQuery { Integer } [ page = 1 ] 页码 * @apiQuery { Integer } [ size = 10 ] 页大小 * @apiQuery { String { ^[-+][\w]+ } } [ order = -id ] 排序规则(默认ID倒序),排序字段前加:+表示正序 -表示倒序 * @apiSuccess { Object } data 数据 * @apiSuccess { Long } data.total 数据总数 * @apiSuccess { Object[] } data.list 数据列表 * @apiSuccess { Long } data.list.id id主键 * @apiSuccess { String } data.list.name 分类名称 * @apiSuccess { Date } data.list.createTime 添加时间 * @apiSuccess { Date } data.list.updateTime 更新时间 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":{"total":1, "list":[{"id":1, "name":"", "createTime":1650761871434, "updateTime":1650761871434}]}, "message":"", "code":1} */ /** * @api {post} /v1/stock/goods/add 01.添加物品 * @apiName 添加物品 * @apiGroup 出入库管理-物品库存 * @apiHeader {String = application/json} Content-Type = application/json * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/stock/goods/add#POST】 * @apiVersion 1.0.0 * @apiBody { Long } classifyId 物品分类id * @apiBody { String } name 物品名称 * @apiBody { Integer { 1- } } count 物品数量 * @apiBody { String } description 物品介绍 * @apiSuccess { Object } data 数据 * @apiSuccess { Long } data.id id主键(物品编号) * @apiSuccess { Long } data.classifyId 物品分类id * @apiSuccess { String } data.name 物品名称 * @apiSuccess { Integer } data.count 物品数量 * @apiSuccess { String } data.description 物品介绍 * @apiSuccess { Date } data.createTime 物品添加时间 * @apiSuccess { Date } data.updateTime 物品更新时间 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":{"id":1, "classifyId":1, "name":"", "count":1, "description":"", "createTime":1650761871434, "updateTime":1650761871434}, "message":"", "code":1} */ /** * @api {put} /v1/stock/goods/take 02.出库 * @apiName 出库 * @apiGroup 出入库管理-物品库存 * @apiHeader {String = application/json} Content-Type = application/json * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/stock/goods/take#PUT】 * @apiVersion 1.0.0 * @apiBody { Long } id 物品id * @apiBody { Integer { 1- } } count 物品出库数量 * @apiBody { Long } userId 领取人id * @apiSuccess { Object } data 数据 * @apiSuccess { Long } data.id id主键(物品编号) * @apiSuccess { Long } data.classifyId 物品分类id * @apiSuccess { String } data.name 物品名称 * @apiSuccess { Integer } data.count 物品数量 * @apiSuccess { String } data.description 物品介绍 * @apiSuccess { Date } data.createTime 物品添加时间 * @apiSuccess { Date } data.updateTime 物品更新时间 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":{"id":1, "classifyId":1, "name":"", "count":1, "description":"", "createTime":1650761871434, "updateTime":1650761871434}, "message":"", "code":1} */ /** * @api {get} /v1/stock/goods/list 03.分页查询物品 * @apiName 分页查询物品 * @apiGroup 出入库管理-物品库存 * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/stock/goods/list#GET】 * @apiVersion 1.0.0 * @apiQuery { Long } [ classifyId ] 物品分类id * @apiQuery { String } [ name ] 物品名称 * @apiQuery { Integer } [ count ] 物品数量 * @apiQuery { String } [ description ] 物品介绍 * @apiQuery { Date } [ createTimeStart ] 物品添加时间 开始时间 * @apiQuery { Date } [ createTimeEnd ] 物品添加时间 结束时间 * @apiQuery { Date } [ updateTimeStart ] 物品更新时间 开始时间 * @apiQuery { Date } [ updateTimeEnd ] 物品更新时间 结束时间 * @apiQuery { Integer } [ page = 1 ] 页码 * @apiQuery { Integer } [ size = 10 ] 页大小 * @apiQuery { String { ^[-+][\w]+ } } [ order = -id ] 排序规则(默认ID倒序),排序字段前加:+表示正序 -表示倒序 * @apiSuccess { Object } data 数据 * @apiSuccess { Long } data.total 数据总数 * @apiSuccess { Object[] } data.list 数据列表 * @apiSuccess { Long } data.list.id id主键(物品编号) * @apiSuccess { Long } data.list.classifyId 物品分类id * @apiSuccess { String } data.list.name 物品名称 * @apiSuccess { Integer } data.list.count 物品数量 * @apiSuccess { String } data.list.description 物品介绍 * @apiSuccess { Date } data.list.createTime 物品添加时间 * @apiSuccess { Date } data.list.updateTime 物品更新时间 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":{"total":1, "list":[{"id":1, "classifyId":1, "name":"", "count":1, "description":"", "createTime":1650761871434, "updateTime":1650761871434}]}, "message":"", "code":1} */ /** * @api {get} /v1/stock/change/record/list 01.分页查询出入库记录 * @apiName 分页查询出入库记录 * @apiGroup 出入库管理-出入库记录 * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/stock/change/record/list#GET】 * @apiVersion 1.0.0 * @apiQuery { Long } [ classifyId ] 物品分类id * @apiQuery { String } [ name ] 物品名称 * @apiQuery { Integer } [ page = 1 ] 页码 * @apiQuery { Integer } [ size = 10 ] 页大小 * @apiQuery { String { ^[-+][\w]+ } } [ order = -id ] 排序规则(默认ID倒序),排序字段前加:+表示正序 -表示倒序 * @apiSuccess { Object } data 数据 * @apiSuccess { Long } data.total 数据总数 * @apiSuccess { Object[] } data.list 数据列表 * @apiSuccess { Long } data.list.id id主键 * @apiSuccess { Long } data.list.goodsId 物品id * @apiSuccess { Integer } data.list.count 变化数量,入库时大于0,出库时小于0 * @apiSuccess { Date } data.list.createTime 操作时间 * @apiSuccess { Long } data.list.userId 领取人id * @apiSuccess { Long } data.list.operatorId 操作人id * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":{"total":1, "list":[{"id":1, "goodsId":1, "count":1, "createTime":1650761871434, "userId":1, "operatorId":1}]}, "message":"", "code":1} */ /** * @api {get} /v1/visitor/list 01.分页查询访客 * @apiName 分页查询访客 * @apiGroup 访客管理 * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/visitor/list#GET】 * @apiVersion 1.0.0 * @apiDeprecated 接口已弃用 使用(#访客管理-访客审批:分页查询访客审批) * @apiQuery { String } [ openid ] 用户openid * @apiQuery { Integer } [ number ] 编号,年+4位编号 * @apiQuery { String } [ username ] 访客姓名 * @apiQuery { String } [ userPhone ] 访客手机号 * @apiQuery { String } [ company ] 访客公司 * @apiQuery { Boolean } [ contact ] 是否密接 * @apiQuery { Boolean } [ highRisk ] 是否高风险 * @apiQuery { Boolean } [ confirm ] 是否确诊 * @apiQuery { Date } [ entryTimeStart ] 进入时间 开始时间 * @apiQuery { Date } [ entryTimeEnd ] 进入时间 结束时间 * @apiQuery { String } [ reason ] 事由 * @apiQuery { Date } [ leaveTimeStart ] 离开时间 开始时间 * @apiQuery { Date } [ leaveTimeEnd ] 离开时间 结束时间 * @apiQuery { String } [ remark ] 出场备注 * @apiQuery { String } [ images ] 图片 * @apiQuery { Integer } [ page = 1 ] 页码 * @apiQuery { Integer } [ size = 10 ] 页大小 * @apiQuery { String { ^[-+][\w]+ } } [ order = -id ] 排序规则(默认ID倒序),排序字段前加:+表示正序 -表示倒序 * @apiSuccess { Object } data 数据 * @apiSuccess { Long } data.total 数据总数 * @apiSuccess { Object[] } data.list 数据列表 * @apiSuccess { Long } data.list.id id主键 * @apiSuccess { String } data.list.openid 用户openid * @apiSuccess { Integer } data.list.number 编号,年+4位编号 * @apiSuccess { String } data.list.username 访客姓名 * @apiSuccess { String } data.list.userPhone 访客手机号 * @apiSuccess { String } data.list.company 访客公司 * @apiSuccess { Boolean } data.list.contact 是否密接 * @apiSuccess { Boolean } data.list.highRisk 是否高风险 * @apiSuccess { Boolean } data.list.confirm 是否确诊 * @apiSuccess { Date } data.list.entryTime 进入时间 * @apiSuccess { String } data.list.reason 事由 * @apiSuccess { Date } data.list.leaveTime 离开时间 * @apiSuccess { String } data.list.remark 出场备注 * @apiSuccess { String } data.list.images 图片 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":{"total":1, "list":[{"id":1, "openid":"", "number":1, "username":"", "userPhone":"", "company":"", "contact":true, "highRisk":true, "confirm":true, "entryTime":1650761871435, "reason":"", "leaveTime":1650761871435, "remark":"", "images":""}]}, "message":"", "code":1} */ /** * @api {get} /v1/system/permissions/list/tree 01.获取所有权限-树形 * @apiName 获取所有权限-树形 * @apiGroup 系统设置-权限管理 * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiVersion 1.0.0 * @apiSuccess { Object[] } data 数据 * @apiSuccess { Long } data.parentId 父级权限ID * @apiSuccess { String } data.uri 请求路径 * @apiSuccess { Boolean } data.disabled 是否禁用 * @apiSuccess { Object[] } data.children 子级权限 * @apiSuccess { Long } data.children.parentId 父级权限ID * @apiSuccess { String } data.children.uri 请求路径 * @apiSuccess { Boolean } data.children.disabled 是否禁用 * @apiSuccess { Object[] } data.children.children 子级权限 * @apiSuccess { Long } data.children.id 选项key * @apiSuccess { String } data.children.name 选项值 * @apiSuccess { Long } data.id 选项key * @apiSuccess { String } data.name 选项值 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":[{"parentId":1, "uri":"", "disabled":true, "children":[{"parentId":1, "uri":"", "disabled":true, "children":[], "id":1, "name":""}], "id":1, "name":""}], "message":"", "code":1} */ /** * @api {put} /v1/system/permissions/update/enable 02.启用权限 * @apiName 启用权限 * @apiGroup 系统设置-权限管理 * @apiHeader {String = application/json} Content-Type = application/json * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/system/permissions/update/enable#PUT】 * @apiVersion 1.0.0 * @apiBody { Long[] } ids 权限ID列表 * @apiSuccess { Boolean } data 数据 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":true, "message":"", "code":1} */ /** * @api {post} /v1/system/role/add 01.添加角色-角色名称验证 * @apiName 添加角色-角色名称验证 * @apiGroup 系统设置-角色管理 * @apiHeader {String = application/json} Content-Type = application/json * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/system/role/add#POST】 * @apiVersion 1.0.0 * @apiBody { String { 0..15 } } name 角色 * @apiSuccess { Boolean } data 数据 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":true, "message":"", "code":1} */ /** * @api {delete} /v1/system/role/delete 02.删除角色 * @apiName 删除角色 * @apiGroup 系统设置-角色管理 * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/system/role/delete#DELETE】 * @apiVersion 1.0.0 * @apiQuery { Long[] { 1-2147483647 } } ids 角色id数组 * @apiSuccess { Boolean } data 数据 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":true, "message":"", "code":1} */ /** * @api {get} /v1/system/role/list 03.查询角色列表 * @apiName 查询角色列表 * @apiGroup 系统设置-角色管理 * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/system/role/list#GET】 * @apiVersion 1.0.0 * @apiQuery { String } [ name ] 名称 * @apiQuery { Date } [ createTimeStart ] 创建时间 开始时间 * @apiQuery { Date } [ createTimeEnd ] 创建时间 结束时间 * @apiQuery { Boolean } [ disabled ] 是否禁用 * @apiQuery { String { ^[-+][\w]+ } } [ order = +id ] 排序规则(默认按ID正序),排序字段前加:+表示正序 -表示倒序 * @apiSuccess { Object[] } data 数据 * @apiSuccess { Long } data.id 角色ID * @apiSuccess { String } data.name 名称 * @apiSuccess { Date } data.createTime 创建时间 * @apiSuccess { Boolean } data.disabled 是否禁用 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":[{"id":1, "name":"", "createTime":1650761871435, "disabled":true}], "message":"", "code":1} */ /** * @api {put} /v1/system/role/update/status 04.更新角色禁用状态 * @apiName 更新角色禁用状态 * @apiGroup 系统设置-角色管理 * @apiHeader {String = application/json} Content-Type = application/json * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/system/role/update/status#PUT】 * @apiVersion 1.0.0 * @apiBody { Long } id 数据ID * @apiBody { Boolean } disabled 是否禁用 * @apiSuccess { Boolean } data 数据 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":true, "message":"", "code":1} */ /** * @api {put} /v1/system/role/update 05.更新角色名称和权限 * @apiName 更新角色名称和权限 * @apiGroup 系统设置-角色管理 * @apiHeader {String = application/json} Content-Type = application/json * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/system/role/update#PUT】 * @apiVersion 1.0.0 * @apiBody { Long { 2- } } id 角色ID * @apiBody { Long[] } [ permissions ] 权限id集合 * @apiBody { String { 0..15 } } name 角色 * @apiSuccess { Boolean } data 数据 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":true, "message":"", "code":1} */ /** * @api {get} /v1/system/role/list/:roleId/permissions 06.查询角色权限列表 * @apiName 查询角色权限列表 * @apiGroup 系统设置-角色管理 * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/system/role/list/{roleId}/permissions#GET】 * @apiVersion 1.0.0 * @apiParam { Long } roleId 角色ID * @apiSuccess { Long[] } data 数据 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":[1], "message":"", "code":1} */ /** * @api {get} /v1/system/role/list/option 07.查询所有角色选项 * @apiName 查询所有角色选项 * @apiGroup 系统设置-角色管理 * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiVersion 1.0.0 * @apiSuccess { Object[] } data 数据 * @apiSuccess { Long } data.id 选项key * @apiSuccess { String } data.name 选项值 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":[{"id":1, "name":""}], "message":"", "code":1} */ /** * @api {post} /v1/system/dept/add 01.添加部门 * @apiName 添加部门 * @apiGroup 系统设置-部门管理 * @apiHeader {String = application/json} Content-Type = application/json * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/system/dept/add#POST】 * @apiVersion 1.0.0 * @apiBody { String } name 名称 * @apiBody { Long } parentId 上级部门id * @apiSuccess { Object } data 数据 * @apiSuccess { Long } data.id id主键 * @apiSuccess { String } data.name 名称 * @apiSuccess { Long } data.parentId 上级部门id * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":{"id":1, "name":"", "parentId":1}, "message":"", "code":1} */ /** * @api {delete} /v1/system/dept/delete/:id 02.删除部门 * @apiName 删除部门 * @apiGroup 系统设置-部门管理 * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/system/dept/delete/{id}#DELETE】 * @apiVersion 1.0.0 * @apiParam { Long } id 部门id * @apiSuccess { Boolean } data 数据 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":true, "message":"", "code":1} */ /** * @api {put} /v1/system/dept/update 03.更新部门 * @apiName 更新部门 * @apiGroup 系统设置-部门管理 * @apiHeader {String = application/json} Content-Type = application/json * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/system/dept/update#PUT】 * @apiVersion 1.0.0 * @apiBody { Long } id 部门id * @apiBody { String } name 名称 * @apiSuccess { Boolean } data 数据 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":true, "message":"", "code":1} */ /** * @api {get} /v1/system/dept/list/tree 04.查询部门树 * @apiName 查询部门树 * @apiGroup 系统设置-部门管理 * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiVersion 1.0.0 * @apiSuccess { Object[] } data 数据 * @apiSuccess { Long } data.parentId 父级部门ID * @apiSuccess { Object[] } data.children 子级部门 * @apiSuccess { Long } data.children.parentId 父级部门ID * @apiSuccess { Object[] } data.children.children 子级部门 * @apiSuccess { Long } data.children.id 选项key * @apiSuccess { String } data.children.name 选项值 * @apiSuccess { Long } data.id 选项key * @apiSuccess { String } data.name 选项值 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":[{"parentId":1, "children":[{"parentId":1, "children":[], "id":1, "name":""}], "id":1, "name":""}], "message":"", "code":1} */ /** * @api {get} /v1/system/user/check/authorize 01.用户授权验证 * @apiName 用户授权验证 * @apiGroup 系统设置-用户管理 * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiVersion 1.0.0 */ /** * @api {post} /v1/system/user/register 02.注册 * @apiName 注册 * @apiGroup 系统设置-用户管理 * @apiHeader {String = application/json} Content-Type = application/json * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiVersion 1.0.0 * @apiBody { String { 6..20 } } username 用户名 * @apiBody { String { 32..2147483647 } } password 用户密码(md5加密) * @apiBody { String { ^1[3|45789][0-9]\d{8}$ } } telephone 手机号 * @apiBody { Long[] { 1-2147483647 } } roles 用户角色 * @apiSuccess { Boolean } data 数据 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":true, "message":"", "code":1} */ /** * @api {post} /v1/system/user/add 03.添加用户 * @apiName 添加用户 * @apiGroup 系统设置-用户管理 * @apiHeader {String = application/json} Content-Type = application/json * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiVersion 1.0.0 * @apiBody { String { 2..20 } } username 用户名 * @apiBody { String { ^1[3|45789][0-9]\d{8}$ } } telephone 手机号 * @apiBody { String { 32..2147483647 } } password 用户密码(md5加密) * @apiBody { Long } [ deptId ] 用户部门 * @apiBody { Long[] { 1-2147483647 } } roles 用户角色 * @apiSuccess { Boolean } data 数据 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":true, "message":"", "code":1} */ /** * @api {post} /v1/system/user/login 04.登录 * @apiName 登录 * @apiGroup 系统设置-用户管理 * @apiHeader {String = application/json} Content-Type = application/json * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiVersion 1.0.0 * @apiBody { String } [ username ] 用户名 * @apiBody { String } [ telephone ] 手机号码 * @apiBody { String } password 用户密码(md5加密) * @apiSuccess { Object } data 数据 * @apiSuccess { Long } data.id 用户id * @apiSuccess { String } data.username 用户名称 * @apiSuccess { String } data.telephone 手机号 * @apiSuccess { String } data.token 授权信息 * @apiSuccess { String[] } data.permissions 权限列表 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":{"id":1, "username":"", "telephone":"", "token":"", "permissions":[""]}, "message":"", "code":1} */ /** * @api {get} /v1/system/user/query/:userId 05.查询用户信息 * @apiName 查询用户信息 * @apiGroup 系统设置-用户管理 * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/system/user/query/{userId}#GET】 * @apiVersion 1.0.0 * @apiParam { Long { 2- } } userId 用户ID * @apiSuccess { Object } data 数据 * @apiSuccess { Long } data.id 用户ID * @apiSuccess { String } data.username 用户名 * @apiSuccess { String } data.telephone 手机号 * @apiSuccess { Long } data.deptId 部门id * @apiSuccess { String } data.deptName 部门名称 * @apiSuccess { Boolean } data.disabled 是否禁用 * @apiSuccess { Date } data.createTime 创建时间 * @apiSuccess { Object[] } data.roles 角色列表 * @apiSuccess { Long } data.roles.id 选项key * @apiSuccess { String } data.roles.name 选项值 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":{"id":1, "username":"", "telephone":"", "deptId":1, "deptName":"", "disabled":true, "createTime":1650761871436, "roles":[{"id":1, "name":""}]}, "message":"", "code":1} */ /** * @api {get} /v1/system/user/list 06.分页查询用户列表 * @apiName 分页查询用户列表 * @apiGroup 系统设置-用户管理 * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/system/user/list#GET】 * @apiVersion 1.0.0 * @apiQuery { Long } [ roleId ] 角色 * @apiQuery { Long } [ deptId ] 部门 * @apiQuery { String } [ username ] 用户名 * @apiQuery { String } [ telephone ] 手机号 * @apiQuery { Boolean } [ disabled ] 是否禁用 * @apiQuery { Date } [ createTimeStart ] 创建时间 开始时间 * @apiQuery { Date } [ createTimeEnd ] 创建时间 结束时间 * @apiQuery { Integer } [ page = 1 ] 页码 * @apiQuery { Integer } [ size = 10 ] 页大小 * @apiQuery { String { ^[-+][\w]+ } } [ order = -id ] 排序规则(默认ID倒序),排序字段前加:+表示正序 -表示倒序 * @apiSuccess { Object } data 数据 * @apiSuccess { Long } data.total 数据总数 * @apiSuccess { Object[] } data.list 数据列表 * @apiSuccess { Long } data.list.id 用户ID * @apiSuccess { String } data.list.username 用户名 * @apiSuccess { String } data.list.telephone 手机号 * @apiSuccess { Long } data.list.deptId 部门id * @apiSuccess { String } data.list.deptName 部门名称 * @apiSuccess { Boolean } data.list.disabled 是否禁用 * @apiSuccess { Date } data.list.createTime 创建时间 * @apiSuccess { Object[] } data.list.roles 角色列表 * @apiSuccess { Long } data.list.roles.id 选项key * @apiSuccess { String } data.list.roles.name 选项值 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":{"total":1, "list":[{"id":1, "username":"", "telephone":"", "deptId":1, "deptName":"", "disabled":true, "createTime":1650761871436, "roles":[{"id":1, "name":""}]}]}, "message":"", "code":1} */ /** * @api {delete} /v1/system/user/delete 07.删除多个用户 * @apiName 删除多个用户 * @apiGroup 系统设置-用户管理 * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/system/user/delete#DELETE】 * @apiVersion 1.0.0 * @apiQuery { Long[] { 1-2147483647 } } ids 用户id数组 * @apiSuccess { Boolean } data 数据 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":true, "message":"", "code":1} */ /** * @api {delete} /v1/system/user/delete/:id 08.删除用户 * @apiName 删除用户 * @apiGroup 系统设置-用户管理 * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/system/user/delete/{id}#DELETE】 * @apiVersion 1.0.0 * @apiParam { Long { 2- } } id 用户id * @apiSuccess { Boolean } data 数据 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":true, "message":"", "code":1} */ /** * @api {put} /v1/system/user/update/status 09.更新用户禁用状态 * @apiName 更新用户禁用状态 * @apiGroup 系统设置-用户管理 * @apiHeader {String = application/json} Content-Type = application/json * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/system/user/update/status#PUT】 * @apiVersion 1.0.0 * @apiBody { Long } id 数据ID * @apiBody { Boolean } disabled 是否禁用 * @apiSuccess { Boolean } data 数据 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":true, "message":"", "code":1} */ /** * @api {put} /v1/system/user/update 10.更新用户信息 * @apiName 更新用户信息 * @apiGroup 系统设置-用户管理 * @apiHeader {String = application/json} Content-Type = application/json * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/system/user/update#PUT】 * @apiVersion 1.0.0 * @apiBody { Long } id 用户id * @apiBody { String { 2..20 } } username 用户名 * @apiBody { String { ^1[3|45789][0-9]\d{8}$ } } telephone 手机号 * @apiBody { Long } [ deptId ] 用户部门 * @apiBody { Long[] { 1-2147483647 } } roles 用户角色 * @apiSuccess { Boolean } data 数据 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":true, "message":"", "code":1} */ /** * @api {get} /v1/system/user/list/option 11.通过用户名或手机号查询用户选项 * @apiName 通过用户名或手机号查询用户选项 * @apiGroup 系统设置-用户管理 * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiVersion 1.0.0 * @apiQuery { String } keyword 用户名或手机号 * @apiSuccess { Object[] } data 数据 * @apiSuccess { Long } data.id 选项key * @apiSuccess { String } data.name 选项值 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":[{"id":1, "name":""}], "message":"", "code":1} */ /** * @api {delete} /v1/system/user/comment/delete/:id 01.删除用户评价 * @apiName 删除用户评价 * @apiGroup 系统设置-用户评价 * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/system/user/comment/delete/{id}#DELETE】 * @apiVersion 1.0.0 * @apiParam { Long } id 用户评价id * @apiSuccess { Boolean } data 数据 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":true, "message":"", "code":1} */ /** * @api {delete} /v1/system/user/comment/delete 02.删除多条用户评价 * @apiName 删除多条用户评价 * @apiGroup 系统设置-用户评价 * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/system/user/comment/delete#DELETE】 * @apiVersion 1.0.0 * @apiQuery { Long[] { 1-2147483647 } } ids 用户评价id数组 * @apiSuccess { Boolean } data 数据 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":true, "message":"", "code":1} */ /** * @api {get} /v1/system/user/comment/list 03.分页查询用户评价 * @apiName 分页查询用户评价 * @apiGroup 系统设置-用户评价 * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/system/user/comment/list#GET】 * @apiVersion 1.0.0 * @apiQuery { Long } [ userId ] 评价人id * @apiQuery { String } [ username ] 评价人姓名 * @apiQuery { Long } [ respondentUserId ] 被评价人id * @apiQuery { String } [ respondentUsername ] 被评价人姓名 * @apiQuery { String } [ content ] 评论内容 * @apiQuery { Integer } [ score ] 评论分数 * @apiQuery { Date } [ createTimeStart ] 评论时间 开始时间 * @apiQuery { Date } [ createTimeEnd ] 评论时间 结束时间 * @apiQuery { String } [ images ] 评论图片地址数组 * @apiQuery { Integer } [ page = 1 ] 页码 * @apiQuery { Integer } [ size = 10 ] 页大小 * @apiQuery { String { ^[-+][\w]+ } } [ order = -id ] 排序规则(默认ID倒序),排序字段前加:+表示正序 -表示倒序 * @apiSuccess { Object } data 数据 * @apiSuccess { Long } data.total 数据总数 * @apiSuccess { Object[] } data.list 数据列表 * @apiSuccess { Long } data.list.id id主键 * @apiSuccess { Long } data.list.userId 评价人id * @apiSuccess { String } data.list.username 评价人姓名 * @apiSuccess { Long } data.list.respondentUserId 被评价人id * @apiSuccess { String } data.list.respondentUsername 被评价人姓名 * @apiSuccess { String } data.list.content 评论内容 * @apiSuccess { Integer } data.list.score 评论分数 * @apiSuccess { Date } data.list.createTime 评论时间 * @apiSuccess { String } data.list.images 评论图片地址数组 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":{"total":1, "list":[{"id":1, "userId":1, "username":"", "respondentUserId":1, "respondentUsername":"", "content":"", "score":1, "createTime":1650761871437, "images":""}]}, "message":"", "code":1} */ /** * @api {delete} /v1/system/login/log/delete/:id 01.删除登录日志 * @apiName 删除登录日志 * @apiGroup 系统设置-登录日志管理 * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/system/login/log/delete/{id}#DELETE】 * @apiVersion 1.0.0 * @apiParam { Long } id 登录日志id * @apiSuccess { Boolean } data 数据 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":true, "message":"", "code":1} */ /** * @api {delete} /v1/system/login/log/delete 02.删除多条登录日志 * @apiName 删除多条登录日志 * @apiGroup 系统设置-登录日志管理 * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/system/login/log/delete#DELETE】 * @apiVersion 1.0.0 * @apiQuery { Long[] { 1-2147483647 } } ids 登录日志id数组 * @apiSuccess { Boolean } data 数据 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":true, "message":"", "code":1} */ /** * @api {get} /v1/system/login/log/list 03.分页查询登录日志 * @apiName 分页查询登录日志 * @apiGroup 系统设置-登录日志管理 * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/system/login/log/list#GET】 * @apiVersion 1.0.0 * @apiQuery { Long } [ userId ] 用户ID * @apiQuery { Integer } [ platform ] 平台类型 1:管理端 2:小程序端 * @apiQuery { Date } [ loginTimeStart ] 登录时间 开始时间 * @apiQuery { Date } [ loginTimeEnd ] 登录时间 结束时间 * @apiQuery { String } [ ip ] 用户IP * @apiQuery { String } [ address ] 地址 * @apiQuery { Integer } [ page = 1 ] 页码 * @apiQuery { Integer } [ size = 10 ] 页大小 * @apiQuery { String { ^[-+][\w]+ } } [ order = -id ] 排序规则(默认ID倒序),排序字段前加:+表示正序 -表示倒序 * @apiSuccess { Object } data 数据 * @apiSuccess { Long } data.total 数据总数 * @apiSuccess { Object[] } data.list 数据列表 * @apiSuccess { Long } data.list.id 登录日志ID * @apiSuccess { Long } data.list.userId 用户ID * @apiSuccess { Integer } data.list.platform 平台类型 1:管理端 2:小程序端 * @apiSuccess { Date } data.list.loginTime 登录时间 * @apiSuccess { String } data.list.ip 用户IP * @apiSuccess { String } data.list.address 地址 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":{"total":1, "list":[{"id":1, "userId":1, "platform":1, "loginTime":1650761871437, "ip":"", "address":""}]}, "message":"", "code":1} */ /** * @api {delete} /v1/system/log/delete/:id 01.删除操作日志 * @apiName 删除操作日志 * @apiGroup 系统设置-操作日志管理 * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/system/log/delete/{id}#DELETE】 * @apiVersion 1.0.0 * @apiParam { Long } id 操作日志id * @apiSuccess { Boolean } data 数据 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":true, "message":"", "code":1} */ /** * @api {delete} /v1/system/log/delete 02.删除多条操作日志 * @apiName 删除多条操作日志 * @apiGroup 系统设置-操作日志管理 * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/system/log/delete#DELETE】 * @apiVersion 1.0.0 * @apiQuery { Long[] { 1-2147483647 } } ids 操作日志id数组 * @apiSuccess { Boolean } data 数据 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":true, "message":"", "code":1} */ /** * @api {get} /v1/system/log/list 03.分页查询操作日志 * @apiName 分页查询操作日志 * @apiGroup 系统设置-操作日志管理 * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/system/log/list#GET】 * @apiVersion 1.0.0 * @apiQuery { Long } [ userId ] 用户ID * @apiQuery { String } [ userIp ] 用户IP * @apiQuery { String } [ method ] 请求类型 * @apiQuery { Integer } [ platform ] 平台类型 1:管理端 2:小程序端 * @apiQuery { String } [ uri ] 请求接口名 * @apiQuery { Boolean } [ success ] 是否请求成功 * @apiQuery { Long } [ time ] 请求耗时 * @apiQuery { String } [ fileName ] 异常文件 * @apiQuery { Integer } [ lineNumber ] 异常行号 * @apiQuery { Date } [ createTimeStart ] 请求时间 开始时间 * @apiQuery { Date } [ createTimeEnd ] 请求时间 结束时间 * @apiQuery { String } [ request ] 请求参数 * @apiQuery { String } [ response ] 响应结果 * @apiQuery { Integer } [ page = 1 ] 页码 * @apiQuery { Integer } [ size = 10 ] 页大小 * @apiQuery { String { ^[-+][\w]+ } } [ order = -id ] 排序规则(默认ID倒序),排序字段前加:+表示正序 -表示倒序 * @apiSuccess { Object } data 数据 * @apiSuccess { Long } data.total 数据总数 * @apiSuccess { Object[] } data.list 数据列表 * @apiSuccess { Long } data.list.id 日志ID * @apiSuccess { Long } data.list.userId 用户ID * @apiSuccess { String } data.list.userIp 用户IP * @apiSuccess { String } data.list.method 请求类型 * @apiSuccess { Integer } data.list.platform 平台类型 1:管理端 2:小程序端 * @apiSuccess { String } data.list.uri 请求接口名 * @apiSuccess { Boolean } data.list.success 是否请求成功 * @apiSuccess { Long } data.list.time 请求耗时 * @apiSuccess { String } data.list.fileName 异常文件 * @apiSuccess { Integer } data.list.lineNumber 异常行号 * @apiSuccess { Date } data.list.createTime 请求时间 * @apiSuccess { String } data.list.request 请求参数 * @apiSuccess { String } data.list.response 响应结果 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":{"total":1, "list":[{"id":1, "userId":1, "userIp":"", "method":"", "platform":1, "uri":"", "success":true, "time":1, "fileName":"", "lineNumber":1, "createTime":1650761871437, "request":"", "response":""}]}, "message":"", "code":1} */ /** * @api {post} /v1/system/attendance/score 01.评分 * @apiName 评分 * @apiGroup 系统设置-考勤管理 * @apiHeader {String = application/json} Content-Type = application/json * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/system/attendance/score#POST】 * @apiVersion 1.0.0 * @apiBody { Long } userId 用户id * @apiBody { String { ^[0-9]{4}-(0[1-9]|1[0-2])$ } } month 考勤月份 yyyy-MM * @apiBody { Integer } changeScore 变动分值 * @apiBody { String } event 事件 * @apiSuccess { Object } data 数据 * @apiSuccess { Long } data.id id 主键 * @apiSuccess { Long } data.userId 用户id * @apiSuccess { Integer } data.lastScore 上次分值 * @apiSuccess { Integer } data.changeScore 变动分值 * @apiSuccess { Integer } data.currentScore 当前分值 * @apiSuccess { String } data.month 考勤年月 * @apiSuccess { Integer } data.type 考勤类型 1:任务 2:手动 * @apiSuccess { String } data.event 事件 * @apiSuccess { Date } data.createTime 创建时间 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":{"id":1, "userId":1, "lastScore":1, "changeScore":1, "currentScore":1, "month":"", "type":1, "event":"", "createTime":1650761871437}, "message":"", "code":1} */ /** * @api {get} /v1/system/attendance/list/statistical 02.分页查询考勤统计 * @apiName 分页查询考勤统计 * @apiGroup 系统设置-考勤管理 * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/system/attendance/list/statistical#GET】 * @apiVersion 1.0.0 * @apiQuery { String { ^[0-9]{4}-(0[1-9]|1[0-2])$ } } [ month ] 考勤年月 * @apiQuery { String } [ username ] 用户名 * @apiQuery { Integer } [ page = 1 ] 页码 * @apiQuery { Integer } [ size = 10 ] 页大小 * @apiQuery { String { ^[-+][\w]+ } } [ order = -month ] 排序规则(默认month倒序),排序字段前加:+表示正序 -表示倒序 * @apiSuccess { Object } data 数据 * @apiSuccess { Long } data.total 数据总数 * @apiSuccess { Object[] } data.list 数据列表 * @apiSuccess { Long } data.list.userId 用户id * @apiSuccess { String } data.list.username 用户姓名 * @apiSuccess { String } data.list.telephone 手机号 * @apiSuccess { Integer } data.list.score 本月评分 * @apiSuccess { String } data.list.month 考勤年月 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":{"total":1, "list":[{"userId":1, "username":"", "telephone":"", "score":1, "month":""}]}, "message":"", "code":1} */ /** * @api {get} /v1/system/attendance/list 03.分页查询考勤 * @apiName 分页查询考勤 * @apiGroup 系统设置-考勤管理 * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/system/attendance/list#GET】 * @apiVersion 1.0.0 * @apiQuery { String { ^[0-9]{4}-(0[1-9]|1[0-2])$ } } month 考勤年月 * @apiQuery { Long } userId 用户id * @apiQuery { Integer } [ page = 1 ] 页码 * @apiQuery { Integer } [ size = 10 ] 页大小 * @apiQuery { String { ^[-+][\w]+ } } [ order = -id ] 排序规则(默认ID倒序),排序字段前加:+表示正序 -表示倒序 * @apiSuccess { Object } data 数据 * @apiSuccess { Long } data.total 数据总数 * @apiSuccess { Object[] } data.list 数据列表 * @apiSuccess { Long } data.list.id id 主键 * @apiSuccess { Long } data.list.userId 用户id * @apiSuccess { Integer } data.list.lastScore 上次分值 * @apiSuccess { Integer } data.list.changeScore 变动分值 * @apiSuccess { Integer } data.list.currentScore 当前分值 * @apiSuccess { String } data.list.month 考勤年月 * @apiSuccess { Integer } data.list.type 考勤类型 1:任务 2:手动 * @apiSuccess { String } data.list.event 事件 * @apiSuccess { Date } data.list.createTime 创建时间 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":{"total":1, "list":[{"id":1, "userId":1, "lastScore":1, "changeScore":1, "currentScore":1, "month":"", "type":1, "event":"", "createTime":1650761871439}]}, "message":"", "code":1} */ /** * @api {put} /v1/system/pue/update 01.更新电量 * @apiName 更新电量 * @apiGroup 系统设置-PUE管理 * @apiHeader {String = application/json} Content-Type = application/json * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/system/pue/update#PUT】 * @apiVersion 1.0.0 * @apiBody { Date } month 年月 * @apiBody { Float } electricityIt it用电量 * @apiBody { Float } electricityTotal 总用电量 * @apiSuccess { Object } data 数据 * @apiSuccess { Long } data.id id主键 * @apiSuccess { Float } data.electricityIt it用电量 * @apiSuccess { Float } data.electricityTotal 总用电量 * @apiSuccess { Date } data.month 年月 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":{"id":1, "electricityIt":1.0, "electricityTotal":1.0, "month":1650761871439}, "message":"", "code":1} */ /** * @api {get} /v1/system/pue/list/statistical 02.分页查询电量统计数据 * @apiName 分页查询电量统计数据 * @apiGroup 系统设置-PUE管理 * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/system/pue/list/statistical#GET】 * @apiVersion 1.0.0 * @apiQuery { Date } [ time ] 年 * @apiQuery { Integer } [ page = 1 ] 页码 * @apiQuery { Integer } [ size = 10 ] 页大小 * @apiQuery { String { ^[-+][\w]+ } } [ order = -month ] 排序规则(默认month倒序),排序字段前加:+表示正序 -表示倒序 * @apiSuccess { Object } data 数据 * @apiSuccess { Long } data.total 数据总数 * @apiSuccess { Object[] } data.list 数据列表 * @apiSuccess { String } data.list.year 年 * @apiSuccess { String } data.list.month 月 * @apiSuccess { Float } data.list.electricityIt it用电量 * @apiSuccess { Float } data.list.electricityTotal 总用电量 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":{"total":1, "list":[{"year":"", "month":"", "electricityIt":1.0, "electricityTotal":1.0}]}, "message":"", "code":1} */ /** * @api {get} /v1/system/status 01.系统状态 * @apiName 系统状态 * @apiGroup 系统设置-系统信息 * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/system/status#GET】 * @apiVersion 1.0.0 * @apiSuccess { Object } data 数据 * @apiSuccess { Object } data.cpu CPU信息 * @apiSuccess { String } data.cpu.name 名称 * @apiSuccess { Integer } data.cpu.pack 物理CPU数 * @apiSuccess { Integer } data.cpu.core 物理核心数 * @apiSuccess { Integer } data.cpu.coreNumber 核心数 * @apiSuccess { Integer } data.cpu.logic 逻辑CPU数 * @apiSuccess { String } data.cpu.usageRate CPU用户使用率 * @apiSuccess { String } data.cpu.idle CPU当前空闲率 * @apiSuccess { Object } data.memory 內存信息 * @apiSuccess { String } data.memory.total 内存总量 * @apiSuccess { String } data.memory.available 剩余内存 * @apiSuccess { String } data.memory.used 已用内存 * @apiSuccess { String } data.memory.usageRate 使用率 * @apiSuccess { Object } data.sys 服务器信息 * @apiSuccess { String } data.sys.os 操作系统 * @apiSuccess { String } data.sys.time 服务器运行时间 * @apiSuccess { String } data.sys.ip 服务器Ip * @apiSuccess { String } data.sys.dir 项目路径 * @apiSuccess { Object } data.swap 交换区信息 * @apiSuccess { String } data.swap.total 内存总量 * @apiSuccess { String } data.swap.available 剩余内存 * @apiSuccess { String } data.swap.used 已用内存 * @apiSuccess { String } data.swap.usageRate 使用率 * @apiSuccess { Object } data.disk 磁盘信息 * @apiSuccess { String } data.disk.total 磁盘总量 * @apiSuccess { String } data.disk.available 剩余容量 * @apiSuccess { String } data.disk.used 已用容量 * @apiSuccess { String } data.disk.usageRate 使用率 * @apiSuccess { Date } data.time 时间 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":{"cpu":{"name":"", "pack":1, "core":1, "coreNumber":1, "logic":1, "usageRate":"", "idle":""}, "memory":{"total":"", "available":"", "used":"", "usageRate":""}, "sys":{"os":"", "time":"", "ip":"", "dir":""}, "swap":{"total":"", "available":"", "used":"", "usageRate":""}, "disk":{"total":"", "available":"", "used":"", "usageRate":""}, "time":1650761871439}, "message":"", "code":1} */ /** * @api {post} /v1/system/database/backup/add 01.添加数据备份 * @apiName 添加数据备份 * @apiGroup 系统设置-数据备份 * @apiHeader {String = application/json} Content-Type = application/json * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/system/database/backup/add#POST】 * @apiVersion 1.0.0 * @apiBody { String } remark 备注 * @apiSuccess { Boolean } data 数据 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":true, "message":"", "code":1} */ /** * @api {delete} /v1/system/database/backup/delete/:id 02.删除数据备份 * @apiName 删除数据备份 * @apiGroup 系统设置-数据备份 * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/system/database/backup/delete/{id}#DELETE】 * @apiVersion 1.0.0 * @apiParam { Long } id 数据备份id * @apiSuccess { Boolean } data 数据 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":true, "message":"", "code":1} */ /** * @api {delete} /v1/system/database/backup/delete 03.删除多条数据备份 * @apiName 删除多条数据备份 * @apiGroup 系统设置-数据备份 * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/system/database/backup/delete#DELETE】 * @apiVersion 1.0.0 * @apiQuery { Long[] { 1-2147483647 } } ids 数据备份id数组 * @apiSuccess { Boolean } data 数据 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":true, "message":"", "code":1} */ /** * @api {get} /v1/system/database/backup/list 04.分页查询数据备份 * @apiName 分页查询数据备份 * @apiGroup 系统设置-数据备份 * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization = "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjMzODkzNTc0MDMzNjk0NzIwLCJuYmYiOjE2NDcxMDMzMjV9.zkk2igTRJMx15TPwlpVRa63sV11YHFgAqPZpnp9hGEU" 授权信息 * @apiPermission 【/v1/system/database/backup/list#GET】 * @apiVersion 1.0.0 * @apiQuery { String } [ name ] 文件名 * @apiQuery { String } [ path ] 访问路径 * @apiQuery { Integer } [ type ] 类型 1:自动备份 2:手动备份 * @apiQuery { Integer } [ status ] 状态 1:正在备份 2:备份失败 3:备份完成 * @apiQuery { Long } [ fileSize ] 文件大小 * @apiQuery { String } [ remark ] 备注 * @apiQuery { Date } [ createTimeStart ] 创建时间 开始时间 * @apiQuery { Date } [ createTimeEnd ] 创建时间 结束时间 * @apiQuery { Integer } [ page = 1 ] 页码 * @apiQuery { Integer } [ size = 10 ] 页大小 * @apiQuery { String { ^[-+][\w]+ } } [ order = -id ] 排序规则(默认ID倒序),排序字段前加:+表示正序 -表示倒序 * @apiSuccess { Object } data 数据 * @apiSuccess { Long } data.total 数据总数 * @apiSuccess { Object[] } data.list 数据列表 * @apiSuccess { Long } data.list.id id主键 * @apiSuccess { String } data.list.name 文件名 * @apiSuccess { String } data.list.path 访问路径 * @apiSuccess { Integer } data.list.type 类型 1:自动备份 2:手动备份 * @apiSuccess { Integer } data.list.status 状态 1:正在备份 2:备份失败 3:备份完成 * @apiSuccess { Long } data.list.fileSize 文件大小 * @apiSuccess { String } data.list.remark 备注 * @apiSuccess { Date } data.list.createTime 创建时间 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":{"total":1, "list":[{"id":1, "name":"", "path":"", "type":1, "status":1, "fileSize":1, "remark":"", "createTime":1650761871439}]}, "message":"", "code":1} */ /** * @api {post} /v1/file/upload 01.文件上传 * @apiName 文件上传 * @apiGroup 文件服务-文件 * @apiHeader {String = multipart/form-data} Content-Type = multipart/form-data * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiVersion 1.0.0 * @apiBody { File } file 文件 * @apiSuccess { String } data 数据 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":"", "message":"", "code":1} */ /** * @api {post} /v1/file/uploads 02.多文件上传 * @apiName 多文件上传 * @apiGroup 文件服务-文件 * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiVersion 1.0.0 * @apiSuccess { String[] } data 数据 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":[""], "message":"", "code":1} */ /** * @api {get} /v1/file/query/:path 03.文件下载 * @apiName 文件下载 * @apiGroup 文件服务-文件 * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiVersion 1.0.0 * @apiParam { String } path 文件存储路径 */