/** * @api {post} /v1/temporary/task/add 01.添加临时任务 * @apiName 添加临时任务 * @apiGroup 临时任务 * @apiVersion 1.0.2 * @apiHeader {String = application/json} Content-Type = application/json * @apiHeader {String} Authorization = eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjQzMTI2MzMxODcxMjE5NzEyLCJuYmYiOjE2NDkzMDQ1ODZ9.FvG8hY0R6D9lO1t4GR1bDhQVayGU5gHVCcy0SIX1r0c 授权信息 * @apiHeader {String = zh-CN,en-US} accept-language = zh-CN * @apiBody { String { 0..255 } } title 任务标题 * @apiBody { Long } roomId 房间id * @apiBody { String } belongSystem 所属系统 * @apiBody { Integer } type 任务类型 1:一般任务 2: 较急任务 3:紧急任务 * @apiBody { String { 0..255 } } content 任务内容 * @apiBody { Long[] } executors 执行人列表 * @apiBody { Date } finishTime 完成时间 * @apiBody { String } [ images ] 任务图片 * @apiSuccess { Object } data 数据 * @apiSuccess { Long } data.id 任务id * @apiSuccess { Long } data.roomId 房间id * @apiSuccess { String } data.belongSystem 所属系统 * @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.auditStatus 审核状态 1:未提交 2:待审核 3:不通过 * @apiSuccess { String } data.remark 审核备注 * @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, "roomId":1, "belongSystem":"", "title":"", "type":1, "content":"", "userId":1, "status":1, "auditStatus":1, "remark":"", "feedbackTotal":1, "publishTime":1653458692071, "finishTime":1653458692071, "images":""}, "message":"", "code":1} */ /** * @api {put} /v1/temporary/task/update 02.更新临时任务 * @apiName 更新临时任务 * @apiGroup 临时任务 * @apiVersion 1.0.2 * @apiHeader {String = application/json} Content-Type = application/json * @apiHeader {String} Authorization = eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjQzMTI2MzMxODcxMjE5NzEyLCJuYmYiOjE2NDkzMDQ1ODZ9.FvG8hY0R6D9lO1t4GR1bDhQVayGU5gHVCcy0SIX1r0c 授权信息 * @apiHeader {String = zh-CN,en-US} accept-language = zh-CN * @apiBody { Long } id id 主键 * @apiBody { Integer } status 任务状态 1:完成 2:取消 3:不通过 * @apiBody { String } [ remake ] 审核备注 * @apiSuccess { Object } data 数据 * @apiSuccess { Long } data.id 任务id * @apiSuccess { Long } data.roomId 房间id * @apiSuccess { String } data.belongSystem 所属系统 * @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.auditStatus 审核状态 1:未提交 2:待审核 3:不通过 * @apiSuccess { String } data.remark 审核备注 * @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, "roomId":1, "belongSystem":"", "title":"", "type":1, "content":"", "userId":1, "status":1, "auditStatus":1, "remark":"", "feedbackTotal":1, "publishTime":1653458692071, "finishTime":1653458692071, "images":""}, "message":"", "code":1} */ /** * @api {get} /v1/temporary/task/list 03.分页查询临时任务 * @apiName 分页查询临时任务 * @apiGroup 临时任务 * @apiVersion 1.0.2 * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded * @apiHeader {String} Authorization = eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjQzMTI2MzMxODcxMjE5NzEyLCJuYmYiOjE2NDkzMDQ1ODZ9.FvG8hY0R6D9lO1t4GR1bDhQVayGU5gHVCcy0SIX1r0c 授权信息 * @apiHeader {String = zh-CN,en-US} accept-language = zh-CN * @apiQuery { String } [ title ] 任务标题 * @apiQuery { Integer } [ type ] 任务类型 1:一般任务 2: 较急任务 3:紧急任务 * @apiQuery { Integer } [ status ] 任务状态 1:正在处理 2:已经完成 3:已经取消 4:超时任务 * @apiQuery { Integer } [ auditStatus ] 审核状态 1:未提交 2:待审核 3:不通过 * @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 { Long } data.list.roomId 房间id * @apiSuccess { String } data.list.roomName 房间名称 * @apiSuccess { String } data.list.belongSystem 所属系统 * @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 { Integer } data.list.auditStatus 审核状态 1:未提交 2:待审核 3:不通过 * @apiSuccess { String } data.list.remark 审核备注 * @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, "roomId":1, "roomName":"", "belongSystem":"", "title":"", "type":1, "username":"", "status":1, "auditStatus":1, "remark":"", "content":"", "feedbackTotal":1, "publishTime":1653458692071, "finishTime":1653458692071, "images":"", "executors":[""]}]}, "message":"", "code":1} */ /** * @api {get} /v1/temporary/task/list/receive 05.我收到的临时任务列表 * @apiName 我收到的临时任务列表 * @apiGroup 临时任务 * @apiVersion 1.0.2 * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded * @apiHeader {String} Authorization = eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjQzMTI2MzMxODcxMjE5NzEyLCJuYmYiOjE2NDkzMDQ1ODZ9.FvG8hY0R6D9lO1t4GR1bDhQVayGU5gHVCcy0SIX1r0c 授权信息 * @apiHeader {String = zh-CN,en-US} accept-language = zh-CN * @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 { Long } data.list.roomId 房间id * @apiSuccess { String } data.list.roomName 房间名称 * @apiSuccess { String } data.list.belongSystem 所属系统 * @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 { Integer } data.list.auditStatus 审核状态 1:未提交 2:待审核 3:不通过 * @apiSuccess { String } data.list.remark 审核备注 * @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, "roomId":1, "roomName":"", "belongSystem":"", "title":"", "type":1, "username":"", "status":1, "auditStatus":1, "remark":"", "content":"", "feedbackTotal":1, "publishTime":1653458692071, "finishTime":1653458692071, "images":"", "executors":[""]}]}, "message":"", "code":1} */ /** * @api {get} /v1/temporary/task/list/publish 07.我发出的任务列表 * @apiName 我发出的任务列表 * @apiGroup 临时任务 * @apiVersion 1.0.2 * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded * @apiHeader {String} Authorization = eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjQzMTI2MzMxODcxMjE5NzEyLCJuYmYiOjE2NDkzMDQ1ODZ9.FvG8hY0R6D9lO1t4GR1bDhQVayGU5gHVCcy0SIX1r0c 授权信息 * @apiHeader {String = zh-CN,en-US} accept-language = zh-CN * @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 { Long } data.list.roomId 房间id * @apiSuccess { String } data.list.roomName 房间名称 * @apiSuccess { String } data.list.belongSystem 所属系统 * @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 { Integer } data.list.auditStatus 审核状态 1:未提交 2:待审核 3:不通过 * @apiSuccess { String } data.list.remark 审核备注 * @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, "roomId":1, "roomName":"", "belongSystem":"", "title":"", "type":1, "username":"", "status":1, "auditStatus":1, "remark":"", "content":"", "feedbackTotal":1, "publishTime":1653458692071, "finishTime":1653458692072, "images":"", "executors":[""]}]}, "message":"", "code":1} */ /** * @api {get} /v1/temporary/task/query/newest 08.我收到的最新的一条任务 * @apiName 我收到的最新的一条任务 * @apiGroup 临时任务 * @apiVersion 1.0.2 * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded * @apiHeader {String} Authorization = eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjQzMTI2MzMxODcxMjE5NzEyLCJuYmYiOjE2NDkzMDQ1ODZ9.FvG8hY0R6D9lO1t4GR1bDhQVayGU5gHVCcy0SIX1r0c 授权信息 * @apiHeader {String = zh-CN,en-US} accept-language = zh-CN * @apiQuery { Integer } [ status ] 任务状态 1:正在处理 2:已经完成 3:已经取消 4:超时任务 不传时查询所有任务 * @apiSuccess { Object } data 数据 * @apiSuccess { Long } data.id 任务id * @apiSuccess { Long } data.roomId 房间id * @apiSuccess { String } data.roomName 房间名称 * @apiSuccess { String } data.belongSystem 所属系统 * @apiSuccess { String } data.title 任务标题 * @apiSuccess { Integer } data.type 任务类型 1:一般任务 2: 较急任务 3:紧急任务 * @apiSuccess { String } data.username 发起人姓名 * @apiSuccess { Integer } data.status 任务状态 1:正在处理 2:已经完成 3:已经取消 4:超时任务 * @apiSuccess { Integer } data.auditStatus 审核状态 1:未提交 2:待审核 3:不通过 * @apiSuccess { String } data.remark 审核备注 * @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, "roomId":1, "roomName":"", "belongSystem":"", "title":"", "type":1, "username":"", "status":1, "auditStatus":1, "remark":"", "content":"", "feedbackTotal":1, "publishTime":1653458692072, "finishTime":1653458692072, "images":"", "executors":[""]}, "message":"", "code":1} */ /** * @api {get} /v1/patrol/task/list/record 09.巡检记录 * @apiName 巡检记录 * @apiGroup 巡检任务 * @apiVersion 1.0.2 * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded * @apiHeader {String} Authorization = eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3V1aWQiOjQzMTI2MzMxODcxMjE5NzEyLCJuYmYiOjE2NDkzMDQ1ODZ9.FvG8hY0R6D9lO1t4GR1bDhQVayGU5gHVCcy0SIX1r0c 授权信息 * @apiHeader {String = zh-CN,en-US} accept-language = zh-CN * @apiQuery { Boolean } [ qualified ] 是否合格 * @apiQuery { String } [ keyword ] 执行用户名、任务名称、房间名称 * @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 { Long } 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":1, "name":"", "roomId":1, "roomName":"", "time":1653458692072, "username":""}]}, "message":"", "code":1} */ /** * @api {post} /v1/visitor/audit/add 01.进入登记 * @apiName 进入登记 * @apiGroup 访客审批 * @apiVersion 1.0.2 * @apiHeader {String = application/json} Content-Type = application/json * @apiHeader {String = zh-CN,en-US} accept-language = zh-CN * @apiBody { String } openid 用户openid * @apiBody { String } username 访客姓名 * @apiBody { String { ^1[345789][0-9]\d{8}$ } } userPhone 访客手机号 * @apiBody { String } company 访客公司 * @apiBody { Integer } duration 访问时长(小时) * @apiBody { String } [ itineraryCode ] 行程码 * @apiBody { String } [ healthCode ] 健康码 * @apiBody { Boolean } [ highRisk ] 是否高风险 * @apiBody { String } reason 事由 * @apiBody { String } [ information ] 审核资料 * @apiSuccess { String } data 数据 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":"", "message":"", "code":1} */ /** * @api {put} /v1/visitor/audit/update 03.出场核销 * @apiName 出场核销 * @apiGroup 访客审批 * @apiVersion 1.0.2 * @apiHeader {String = application/json} Content-Type = application/json * @apiHeader {String = zh-CN,en-US} accept-language = zh-CN * @apiBody { Long } id 入场记录id * @apiBody { String } [ remark ] 出场备注 * @apiSuccess { String } data 数据 * @apiSuccess { String } message 信息 * @apiSuccess { Integer } code 状态码 * @apiSuccessExample Response * * {"data":"", "message":"", "code":1} */