/** * @api {post} /v1/system/user/login 01.登录 * @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.deptName 用户部门 * @apiSuccess { String } data.token 授权信息 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":{"id":1, "username":"", "telephone":"", "deptName":"", "token":""}, "message":"", "code":1} */ /** * @api {put} /v1/system/user/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 授权信息 * @apiVersion 1.0.0 * @apiBody { String } passwordOld 旧密码(md5加密) * @apiBody { String } password 密码(md5加密) * @apiSuccess { Boolean } data 数据 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":true, "message":"", "code":1} */ /** * @api {get} /v1/system/user/list/dept/user 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 授权信息 * @apiVersion 1.0.0 * @apiQuery { String } [ username ] 用户名 * @apiSuccess { Object[] } data 数据 * @apiSuccess { String } data.name 部门名称 * @apiSuccess { Object[] } data.users 用户列表 * @apiSuccess { Long } data.users.id 用户ID * @apiSuccess { String } data.users.username 用户名 * @apiSuccess { String } data.users.telephone 手机号 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":[{"name":"", "users":[{"id":1, "username":"", "telephone":""}]}], "message":"", "code":1} */ /** * @api {get} /v1/system/user/list/option 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 授权信息 * @apiVersion 1.0.0 * @apiQuery { String } [ keyword ] 用户名或手机号 * @apiQuery { Integer } [ page = 1 ] 页码 * @apiQuery { Integer } [ size = 10 ] 页大小 * @apiSuccess { Object } data 数据 * @apiSuccess { Long } data.total 数据总数 * @apiSuccess { Object[] } data.list 数据列表 * @apiSuccess { Long } data.list.id 选项key * @apiSuccess { String } data.list.name 选项值 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":{"total":1, "list":[{"id":1, "name":""}]}, "message":"", "code":1} */ /** * @api {get} /v1/device/building/list/option 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 授权信息 * @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 {get} /v1/device/floor/list/option/:buildingId 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 授权信息 * @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 {get} /v1/device/room/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 授权信息 * @apiVersion 1.0.0 * @apiQuery { String } [ name ] 房间名称 * @apiQuery { Long } [ id ] 检查路线id * @apiQuery { Integer } [ page = 1 ] 页码 * @apiQuery { Integer } [ size = 10 ] 页大小 * @apiSuccess { Object } data 数据 * @apiSuccess { Long } data.total 数据总数 * @apiSuccess { Object[] } data.list 数据列表 * @apiSuccess { Long } data.list.routeId 路线id * @apiSuccess { String } data.list.number 编号 * @apiSuccess { Long } data.list.id 选项key * @apiSuccess { String } data.list.name 选项值 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":{"total":1, "list":[{"routeId":1, "number":"", "id":1, "name":""}]}, "message":"", "code":1} */ /** * @api {get} /v1/device/room/query 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 授权信息 * @apiVersion 1.0.0 * @apiQuery { Long } id 房间id * @apiQuery { Long } routeId 路线id * @apiSuccess { Object } data 数据 * @apiSuccess { Long } data.id 房间id * @apiSuccess { String } data.name 房间名称 * @apiSuccess { String } data.number 房间编号 * @apiSuccess { String } data.floorName 楼层名称 * @apiSuccess { String } data.buildingName 楼栋名称 * @apiSuccess { String } data.routeName 路线名称 * @apiSuccess { Object[] } data.checkItems 检查项列表 * @apiSuccess { Integer } data.checkItems.itemType 检查项类别 1选择、2数字、3文本、4拍照 * @apiSuccess { Long } data.checkItems.id 选项key * @apiSuccess { String } data.checkItems.name 选项值 * @apiSuccess { Object[] } data.devices 设备列表 * @apiSuccess { Long } data.devices.id 设备id * @apiSuccess { String } data.devices.name 设备名称 * @apiSuccess { Object[] } data.devices.checkItems 检查项列表 * @apiSuccess { Integer } data.devices.checkItems.itemType 检查项类别 1选择、2数字、3文本、4拍照 * @apiSuccess { Long } data.devices.checkItems.id 选项key * @apiSuccess { String } data.devices.checkItems.name 选项值 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":{"id":1, "name":"", "number":"", "floorName":"", "buildingName":"", "routeName":"", "checkItems":[{"itemType":1, "id":1, "name":""}], "devices":[{"id":1, "name":"", "checkItems":[{"itemType":1, "id":1, "name":""}]}]}, "message":"", "code":1} */ /** * @api {get} /v1/device/room/list/option/:floorId 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 授权信息 * @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 {get} /v1/device/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 授权信息 * @apiVersion 1.0.0 * @apiQuery { Long } roomId 房间id * @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.name 设备名称 * @apiSuccess { String } data.list.number 设备编号 * @apiSuccess { Integer } data.list.type 设备类型 1:机柜设备 99:其他设备 * @apiSuccess { Integer } data.list.checkItemTotal 关联检查项数 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":{"total":1, "list":[{"id":1, "name":"", "number":"", "type":1, "checkItemTotal":1}]}, "message":"", "code":1} */ /** * @api {get} /v1/check/route/list/option 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 授权信息 * @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 {get} /v1/stock/classify/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 授权信息 * @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":1650761833746, "updateTime":1650761833746}]}, "message":"", "code":1} */ /** * @api {get} /v1/stock/goods/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 授权信息 * @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":1650761833747, "updateTime":1650761833747}]}, "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 授权信息 * @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":1650761833747, "finishTime":1650761833747, "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 授权信息 * @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":1650761833747, "finishTime":1650761833747, "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 授权信息 * @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":1650761833747, "finishTime":1650761833747, "images":"", "executors":[""]}]}, "message":"", "code":1} */ /** * @api {get} /v1/temporary/task/list/receive/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 授权信息 * @apiVersion 1.0.0 * @apiSuccess { Object[] } data 数据 * @apiSuccess { Integer } data.status 任务状态 1:正在处理 2:已经完成 3:已经取消 4:超时任务 * @apiSuccess { Integer } data.count 任务总数 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":[{"status":1, "count":1}], "message":"", "code":1} */ /** * @api {get} /v1/temporary/task/list/receive 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 授权信息 * @apiVersion 1.0.0 * @apiQuery { Integer } status 任务状态 1:正在处理 2:已经完成 3:已经取消 4:超时任务 * @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.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":1650761833748, "finishTime":1650761833748, "images":"", "executors":[""]}]}, "message":"", "code":1} */ /** * @api {get} /v1/temporary/task/list/publish/statistical 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 授权信息 * @apiVersion 1.0.0 * @apiSuccess { Object[] } data 数据 * @apiSuccess { Integer } data.status 任务状态 1:正在处理 2:已经完成 3:已经取消 4:超时任务 * @apiSuccess { Integer } data.count 任务总数 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":[{"status":1, "count":1}], "message":"", "code":1} */ /** * @api {get} /v1/temporary/task/list/publish 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 授权信息 * @apiVersion 1.0.0 * @apiQuery { Integer } status 任务状态 1:正在处理 2:已经完成 3:已经取消 4:超时任务 * @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.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":1650761833748, "finishTime":1650761833748, "images":"", "executors":[""]}]}, "message":"", "code":1} */ /** * @api {get} /v1/temporary/task/query/newest 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 授权信息 * @apiVersion 1.0.0 * @apiQuery { Integer } [ status ] 任务状态 1:正在处理 2:已经完成 3:已经取消 4:超时任务 不传时查询所有任务 * @apiSuccess { Object } data 数据 * @apiSuccess { Long } data.id 任务id * @apiSuccess { String } data.title 任务标题 * @apiSuccess { Integer } data.type 任务类型 1:一般任务 2: 较急任务 3:紧急任务 * @apiSuccess { String } data.username 发起人姓名 * @apiSuccess { Integer } data.status 任务状态 1:正在处理 2:已经完成 3:已经取消 4:超时任务 * @apiSuccess { String } data.content 任务内容 * @apiSuccess { Integer } data.feedbackTotal 执行反馈次数 * @apiSuccess { Date } data.publishTime 发布时间 * @apiSuccess { Date } data.finishTime 完成时间 * @apiSuccess { String } data.images 任务图片 * @apiSuccess { String[] } data.executors 执行人 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":{"id":1, "title":"", "type":1, "username":"", "status":1, "content":"", "feedbackTotal":1, "publishTime":1650761833748, "finishTime":1650761833748, "images":"", "executors":[""]}, "message":"", "code":1} */ /** * @api {post} /v1/temporary/task/feedback/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 授权信息 * @apiVersion 1.0.0 * @apiBody { Long } taskId 任务id * @apiBody { String } [ content ] 反馈内容 * @apiBody { String } [ images ] 反馈图片 * @apiSuccess { Object } data 数据 * @apiSuccess { Long } data.id 反馈id * @apiSuccess { Long } data.taskId 任务id * @apiSuccess { Long } data.userId 反馈人id * @apiSuccess { String } data.content 反馈内容 * @apiSuccess { Date } data.createTime 反馈创建时间 * @apiSuccess { String } data.images 反馈图片 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":{"id":1, "taskId":1, "userId":1, "content":"", "createTime":1650761833749, "images":""}, "message":"", "code":1} */ /** * @api {get} /v1/temporary/task/feedback/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 授权信息 * @apiVersion 1.0.0 * @apiQuery { Long } [ taskId ] 任务id * @apiQuery { Long } [ userId ] 反馈人id * @apiQuery { String } [ content ] 反馈内容 * @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.taskId 任务id * @apiSuccess { Long } data.list.userId 反馈人id * @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, "taskId":1, "userId":1, "content":"", "createTime":1650761833749, "images":""}]}, "message":"", "code":1} */ /** * @api {get} /v1/patrol/task/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 授权信息 * @apiVersion 1.0.0 * @apiQuery { Integer } [ status ] 检查状态 1未开始、2进行中、3正常完成、4超时漏检、5超时完成 * @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.name 名称 * @apiSuccess { Date } data.list.beginTime 任务执行开始时间 * @apiSuccess { Integer } data.list.status 状态 1未开始、2进行中、3正常完成、4超时漏检、5超时完成 * @apiSuccess { Integer } data.list.total 计划巡检房间数 * @apiSuccess { Integer } data.list.completed 已经完成房间数 * @apiSuccess { Float } data.list.completionRate 完成率 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":{"total":1, "list":[{"id":1, "name":"", "beginTime":1650761833749, "status":1, "total":1, "completed":1, "completionRate":1.0}]}, "message":"", "code":1} */ /** * @api {get} /v1/patrol/task/list/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 授权信息 * @apiVersion 1.0.0 * @apiQuery { Long } roomId 房间id * @apiSuccess { Object[] } data 数据 * @apiSuccess { Long } data.id id 主键 * @apiSuccess { String } data.name 名称 * @apiSuccess { Date } data.beginTime 任务执行开始时间 * @apiSuccess { Integer } data.status 状态 1未开始、2进行中、3正常完成、4超时漏检、5超时完成 * @apiSuccess { Integer } data.total 计划巡检房间数 * @apiSuccess { Integer } data.completed 已经完成房间数 * @apiSuccess { Float } data.completionRate 完成率 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":[{"id":1, "name":"", "beginTime":1650761833749, "status":1, "total":1, "completed":1, "completionRate":1.0}], "message":"", "code":1} */ /** * @api {get} /v1/patrol/task/query/rate/: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 授权信息 * @apiVersion 1.0.0 * @apiParam { Long } id 巡检任务id * @apiSuccess { Object } data 数据 * @apiSuccess { Long } data.id id 主键 * @apiSuccess { String } data.name 名称 * @apiSuccess { Date } data.beginTime 任务执行开始时间 * @apiSuccess { Integer } data.total 计划巡检房间数 * @apiSuccess { Integer } data.completed 已经完成房间数 * @apiSuccess { Float } data.completionRate 完成率 * @apiSuccess { Object[] } data.rooms 房间列表 * @apiSuccess { Long } data.rooms.id 房间id * @apiSuccess { String } data.rooms.name 房间名称 * @apiSuccess { String } data.rooms.number 房间编号 * @apiSuccess { Boolean } data.rooms.qualified 是否合格 * @apiSuccess { Boolean } data.rooms.completed 是否已巡检 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":{"id":1, "name":"", "beginTime":1650761833749, "total":1, "completed":1, "completionRate":1.0, "rooms":[{"id":1, "name":"", "number":"", "qualified":true, "completed":true}]}, "message":"", "code":1} */ /** * @api {get} /v1/patrol/task/query 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 授权信息 * @apiVersion 1.0.0 * @apiQuery { Long } taskId 巡检任务id * @apiQuery { Long } roomId 房间id * @apiSuccess { Object } data 数据 * @apiSuccess { Long } data.id 房间id * @apiSuccess { String } data.name 房间名称 * @apiSuccess { String } data.roomNumber 房间编号 * @apiSuccess { String } data.floorName 楼层名称 * @apiSuccess { String } data.buildingName 楼栋名称 * @apiSuccess { String } data.taskName 巡检任务名称 * @apiSuccess { Object[] } data.checkItems 检查项列表 * @apiSuccess { Integer } data.checkItems.id 检查记录id * @apiSuccess { String } data.checkItems.checkItem 检查项 * @apiSuccess { Object[] } data.devices 设备列表 * @apiSuccess { String } data.devices.deviceName 设备名称 * @apiSuccess { Object[] } data.devices.checkItems 检查项列表 * @apiSuccess { Integer } data.devices.checkItems.id 检查记录id * @apiSuccess { String } data.devices.checkItems.checkItem 检查项 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":{"id":1, "name":"", "roomNumber":"", "floorName":"", "buildingName":"", "taskName":"", "checkItems":[{"id":1, "checkItem":""}], "devices":[{"deviceName":"", "checkItems":[{"id":1, "checkItem":""}]}]}, "message":"", "code":1} */ /** * @api {get} /v1/patrol/task/query/record 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 授权信息 * @apiVersion 1.0.0 * @apiQuery { Long } taskId 巡检任务id * @apiQuery { Long } roomId 房间id * @apiSuccess { Object } data 数据 * @apiSuccess { String } data.roomName 房间名称 * @apiSuccess { String } data.roomNumber 房间编号 * @apiSuccess { String } data.floorName 楼层名称 * @apiSuccess { String } data.buildingName 楼栋名称 * @apiSuccess { String } data.name 巡检任务名称 * @apiSuccess { Date } data.time 巡检时间 * @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 { 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 { String } data.devices.checkItems.value 用户输入值 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":{"roomName":"", "roomNumber":"", "floorName":"", "buildingName":"", "name":"", "time":1650761833750, "username":"", "status":1, "qualified":true, "score":1, "checkItems":[{"checkItemType":1, "checkItemName":"", "checkItem":"", "value":""}], "devices":[{"deviceName":"", "checkItems":[{"checkItemType":1, "checkItemName":"", "checkItem":"", "value":""}]}]}, "message":"", "code":1} */ /** * @api {get} /v1/patrol/task/room 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 授权信息 * @apiVersion 1.0.0 * @apiQuery { Long } taskId 巡检任务id * @apiQuery { Long } roomId 房间id * @apiSuccess { Object } data 数据 * @apiSuccess { Long } data.id 房间id * @apiSuccess { String } data.name 房间名称 * @apiSuccess { String } data.number 房间编号 * @apiSuccess { String } data.floorName 楼层名称 * @apiSuccess { String } data.buildingName 楼栋名称 * @apiSuccess { String } data.routeName 路线名称 * @apiSuccess { Object[] } data.checkItems 检查项列表 * @apiSuccess { Integer } data.checkItems.itemType 检查项类别 1选择、2数字、3文本、4拍照 * @apiSuccess { Long } data.checkItems.id 选项key * @apiSuccess { String } data.checkItems.name 选项值 * @apiSuccess { Object[] } data.devices 设备列表 * @apiSuccess { Long } data.devices.id 设备id * @apiSuccess { String } data.devices.name 设备名称 * @apiSuccess { Object[] } data.devices.checkItems 检查项列表 * @apiSuccess { Integer } data.devices.checkItems.itemType 检查项类别 1选择、2数字、3文本、4拍照 * @apiSuccess { Long } data.devices.checkItems.id 选项key * @apiSuccess { String } data.devices.checkItems.name 选项值 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":{"id":1, "name":"", "number":"", "floorName":"", "buildingName":"", "routeName":"", "checkItems":[{"itemType":1, "id":1, "name":""}], "devices":[{"id":1, "name":"", "checkItems":[{"itemType":1, "id":1, "name":""}]}]}, "message":"", "code":1} */ /** * @api {put} /v1/patrol/task/update 07.巡检_完成 * @apiName 巡检_完成 * @apiGroup 巡检任务 * @apiHeader {String = application/json} Content-Type = application/json * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN * @apiHeader {String} Authorization 授权信息 * @apiVersion 1.0.0 * @apiBody { Long } taskId 任务id * @apiBody { Long } roomId 房间id * @apiBody { Object[] } items 巡检任务检查项目 * * 例: [{"id": 79,"value": "480,482"}, {"id": 82,"value": 100}, {"id": 80,"value": "文本"},{"id": 81, "value": "[{\"id\": 74,\"value\": \"拍照\"}]"}] * @apiBody { Long } items.id 检查记录id * @apiBody { String } [ items.value ] 记录值 * @apiSuccess { Boolean } data 数据 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":true, "message":"", "code":1} */ /** * @api {get} /v1/patrol/task/list/record/room 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 授权信息 * @apiVersion 1.0.0 * @apiQuery { Long } taskId 巡检任务id * @apiQuery { Long } roomId 房间id * @apiQuery { Integer } [ page = 1 ] 页码 * @apiQuery { Integer } [ size = 10 ] 页大小 * @apiSuccess { Object } data 数据 * @apiSuccess { Long } data.total 数据总数 * @apiSuccess { Object[] } data.list 数据列表 * @apiSuccess { String } data.list.id 任务id * @apiSuccess { String } data.list.roomId 房间id * @apiSuccess { String } data.list.roomName 房间名称 * @apiSuccess { Date } data.list.time 巡检时间 * @apiSuccess { String } data.list.username 巡检人员 * @apiSuccess { Boolean } data.list.qualified 是否合格 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":{"total":1, "list":[{"id":"", "roomId":"", "roomName":"", "time":1650761833750, "username":"", "qualified":true}]}, "message":"", "code":1} */ /** * @api {get} /v1/patrol/task/list/record 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 授权信息 * @apiVersion 1.0.0 * @apiQuery { Boolean } [ qualified ] 是否合格 * @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 { String } data.list.id 任务id * @apiSuccess { String } data.list.name 任务名称 * @apiSuccess { String } data.list.roomId 房间id * @apiSuccess { String } data.list.roomName 房间名称 * @apiSuccess { Date } data.list.time 巡检时间 * @apiSuccess { String } data.list.username 巡检人员 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":{"total":1, "list":[{"id":"", "name":"", "roomId":"", "roomName":"", "time":1650761833751, "username":""}]}, "message":"", "code":1} */ /** * @api {get} /v1/wechat/login 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 * @apiQuery { String } code 用户code * @apiSuccess { String } data 数据 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":"", "message":"", "code":1} */ /** * @api {post} /v1/visitor/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 授权信息 * @apiVersion 1.0.0 * @apiDeprecated 接口已弃用 使用(#访客审批:进入登记) * @apiBody { String } openid 用户openid * @apiBody { String } username 访客姓名 * @apiBody { String } userPhone 访客手机号 * @apiBody { String } company 访客公司 * @apiBody { Boolean } contact 是否密接 * @apiBody { Boolean } highRisk 是否高风险 * @apiBody { Boolean } confirm 是否确诊 * @apiBody { String } reason 事由 * @apiBody { String } [ images ] 图片 * @apiSuccess { Object } data 数据 * @apiSuccess { Long } data.id id主键 * @apiSuccess { String } data.openid 用户openid * @apiSuccess { Integer } data.number 编号,年+4位编号 * @apiSuccess { String } data.username 访客姓名 * @apiSuccess { String } data.userPhone 访客手机号 * @apiSuccess { String } data.company 访客公司 * @apiSuccess { Boolean } data.contact 是否密接 * @apiSuccess { Boolean } data.highRisk 是否高风险 * @apiSuccess { Boolean } data.confirm 是否确诊 * @apiSuccess { Date } data.entryTime 进入时间 * @apiSuccess { String } data.reason 事由 * @apiSuccess { Date } data.leaveTime 离开时间 * @apiSuccess { String } data.remark 出场备注 * @apiSuccess { String } data.images 图片 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":{"id":1, "openid":"", "number":1, "username":"", "userPhone":"", "company":"", "contact":true, "highRisk":true, "confirm":true, "entryTime":1650761833751, "reason":"", "leaveTime":1650761833751, "remark":"", "images":""}, "message":"", "code":1} */ /** * @api {get} /v1/visitor/query/:openid 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 授权信息 * @apiVersion 1.0.0 * @apiDeprecated 接口已弃用 使用(#访客审批:查询进入记录) * @apiParam { String } openid 用户openid * @apiSuccess { Object } data 数据 * @apiSuccess { Long } data.id id主键 * @apiSuccess { String } data.openid 用户openid * @apiSuccess { String } data.username 访客姓名 * @apiSuccess { String } data.userPhone 访客手机号 * @apiSuccess { String } data.company 访客公司 * @apiSuccess { Date } data.entryTime 进入时间 * @apiSuccess { String } data.reason 事由 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":{"id":1, "openid":"", "username":"", "userPhone":"", "company":"", "entryTime":1650761833751, "reason":""}, "message":"", "code":1} */ /** * @api {put} /v1/visitor/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 授权信息 * @apiVersion 1.0.0 * @apiDeprecated 接口已弃用 使用(#访客审批:出场核销) * @apiBody { Long } id 入场记录id * @apiBody { String } [ remark ] 出场备注 * @apiSuccess { Object } data 数据 * @apiSuccess { Long } data.id id主键 * @apiSuccess { String } data.openid 用户openid * @apiSuccess { Integer } data.number 编号,年+4位编号 * @apiSuccess { String } data.username 访客姓名 * @apiSuccess { String } data.userPhone 访客手机号 * @apiSuccess { String } data.company 访客公司 * @apiSuccess { Boolean } data.contact 是否密接 * @apiSuccess { Boolean } data.highRisk 是否高风险 * @apiSuccess { Boolean } data.confirm 是否确诊 * @apiSuccess { Date } data.entryTime 进入时间 * @apiSuccess { String } data.reason 事由 * @apiSuccess { Date } data.leaveTime 离开时间 * @apiSuccess { String } data.remark 出场备注 * @apiSuccess { String } data.images 图片 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":{"id":1, "openid":"", "number":1, "username":"", "userPhone":"", "company":"", "contact":true, "highRisk":true, "confirm":true, "entryTime":1650761833751, "reason":"", "leaveTime":1650761833751, "remark":"", "images":""}, "message":"", "code":1} */ /** * @api {post} /v1/system/user/comment/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 授权信息 * @apiVersion 1.0.0 * @apiBody { Long } respondentUserId 被评价人id * @apiBody { String } respondentUsername 被评价人姓名 * @apiBody { String } content 评论内容 * @apiBody { Integer } score 评论分数 * @apiBody { String } [ images ] 评论图片地址数组 * @apiSuccess { Object } data 数据 * @apiSuccess { Long } data.id id主键 * @apiSuccess { Long } data.userId 评价人id * @apiSuccess { String } data.username 评价人姓名 * @apiSuccess { Long } data.respondentUserId 被评价人id * @apiSuccess { String } data.respondentUsername 被评价人姓名 * @apiSuccess { String } data.content 评论内容 * @apiSuccess { Integer } data.score 评论分数 * @apiSuccess { Date } data.createTime 评论时间 * @apiSuccess { String } data.images 评论图片地址数组 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":{"id":1, "userId":1, "username":"", "respondentUserId":1, "respondentUsername":"", "content":"", "score":1, "createTime":1650761833751, "images":""}, "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 文件存储路径 */