patrol-app_1.0.1.api 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200
  1. /**
  2. * @api {post} /v1/system/user/login 01.登录
  3. * @apiName 登录
  4. * @apiGroup 用户
  5. * @apiHeader {String = application/json} Content-Type = application/json
  6. * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
  7. * @apiVersion 1.0.1
  8. * @apiBody { String } username 用户名
  9. * @apiBody { String } password 用户密码(md5加密)
  10. * @apiSuccess { Object } data 数据
  11. * @apiSuccess { Long } data.id 用户id
  12. * @apiSuccess { String } data.username 用户名称
  13. * @apiSuccess { String } data.telephone 手机号
  14. * @apiSuccess { String } data.deptName 用户部门
  15. * @apiSuccess { String } data.token 授权信息
  16. * @apiSuccess { String } message 信息
  17. * @apiSuccess { Integer } code 状态码
  18. * @apiSuccessExample Response
  19. *
  20. * {"data":{"id":1, "username":"", "telephone":"", "deptName":"", "token":""}, "message":"", "code":1}
  21. */
  22. /**
  23. * @api {get} /v1/patrol/task/list 01.巡检计划
  24. * @apiName 巡检计划
  25. * @apiGroup 巡检任务
  26. * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded
  27. * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
  28. * @apiHeader {String} Authorization 授权信息
  29. * @apiVersion 1.0.1
  30. * @apiQuery { Integer } [ status ] 检查状态 1未开始、2进行中、3正常完成、4超时漏检、5超时完成
  31. * @apiQuery { Date } [ beginTimeStart ] 任务执行开始时间 开始时间
  32. * @apiQuery { Date } [ beginTimeEnd ] 任务执行开始时间 结束时间
  33. * @apiQuery { Integer } [ page = 1 ] 页码
  34. * @apiQuery { Integer } [ size = 10 ] 页大小
  35. * @apiQuery { String { ^[-+][\w]+ } } [ order = -id ] 排序规则(默认ID倒序),排序字段前加:+表示正序 -表示倒序
  36. * @apiSuccess { Object } data 数据
  37. * @apiSuccess { Long } data.total 数据总数
  38. * @apiSuccess { Object[] } data.list 数据列表
  39. * @apiSuccess { Long } data.list.id id 主键
  40. * @apiSuccess { String } data.list.name 名称
  41. * @apiSuccess { Date } data.list.beginTime 任务执行开始时间
  42. * @apiSuccess { Date } data.list.endTime 任务执行结束时间
  43. * @apiSuccess { Integer } data.list.status 状态 1未开始、2进行中、3正常完成、4超时漏检、5超时完成
  44. * @apiSuccess { Integer } data.list.total 计划巡检房间数
  45. * @apiSuccess { Integer } data.list.completed 已经完成房间数
  46. * @apiSuccess { Float } data.list.completionRate 完成率
  47. * @apiSuccess { String } message 信息
  48. * @apiSuccess { Integer } code 状态码
  49. * @apiSuccessExample Response
  50. *
  51. * {"data":{"total":1, "list":[{"id":1, "name":"", "beginTime":1651827836584, "endTime":1651827836584, "status":1, "total":1, "completed":1, "completionRate":1.0}]}, "message":"", "code":1}
  52. * {"data":{"total":1, "list":[{"id":1, "name":"", "beginTime":1651835636006, "endTime":1651835636006, "status":1, "total":1, "completed":1, "completionRate":1.0}]}, "message":"", "code":1}
  53. */
  54. /**
  55. * @api {get} /v1/patrol/task/list/room 02.选择计划
  56. * @apiName 选择计划
  57. * @apiGroup 巡检任务
  58. * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded
  59. * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
  60. * @apiHeader {String} Authorization 授权信息
  61. * @apiVersion 1.0.1
  62. * @apiQuery { Long } roomId 房间id
  63. * @apiSuccess { Object[] } data 数据
  64. * @apiSuccess { Long } data.id id 主键
  65. * @apiSuccess { String } data.name 名称
  66. * @apiSuccess { Date } data.beginTime 任务执行开始时间
  67. * @apiSuccess { Date } data.endTime 任务执行结束时间
  68. * @apiSuccess { Integer } data.status 状态 1未开始、2进行中、3正常完成、4超时漏检、5超时完成
  69. * @apiSuccess { Integer } data.total 计划巡检房间数
  70. * @apiSuccess { Integer } data.completed 已经完成房间数
  71. * @apiSuccess { Float } data.completionRate 完成率
  72. * @apiSuccess { String } message 信息
  73. * @apiSuccess { Integer } code 状态码
  74. * @apiSuccessExample Response
  75. *
  76. * {"data":[{"id":1, "name":"", "beginTime":1651827836584, "endTime":1651827836584, "status":1, "total":1, "completed":1, "completionRate":1.0}], "message":"", "code":1}
  77. * {"data":[{"id":1, "name":"", "beginTime":1651835636006, "endTime":1651835636006, "status":1, "total":1, "completed":1, "completionRate":1.0}], "message":"", "code":1}
  78. */
  79. /**
  80. * @api {get} /v1/patrol/task/query/rate/:id 03.巡检进度
  81. * @apiName 巡检进度
  82. * @apiGroup 巡检任务
  83. * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded
  84. * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
  85. * @apiHeader {String} Authorization 授权信息
  86. * @apiVersion 1.0.1
  87. * @apiParam { Long } id 巡检任务id
  88. * @apiSuccess { Object } data 数据
  89. * @apiSuccess { Long } data.id id 主键
  90. * @apiSuccess { String } data.name 名称
  91. * @apiSuccess { Date } data.beginTime 任务执行开始时间
  92. * @apiSuccess { Date } data.endTime 任务执行结束时间
  93. * @apiSuccess { Integer } data.total 计划巡检房间数
  94. * @apiSuccess { Integer } data.completed 已经完成房间数
  95. * @apiSuccess { Float } data.completionRate 完成率
  96. * @apiSuccess { Object[] } data.rooms 房间列表
  97. * @apiSuccess { Long } data.rooms.id 房间id
  98. * @apiSuccess { String } data.rooms.name 房间名称
  99. * @apiSuccess { String } data.rooms.number 房间编号
  100. * @apiSuccess { Boolean } data.rooms.qualified 是否合格
  101. * @apiSuccess { Boolean } data.rooms.completed 是否已巡检
  102. * @apiSuccess { String } message 信息
  103. * @apiSuccess { Integer } code 状态码
  104. * @apiSuccessExample Response
  105. *
  106. * {"data":{"id":1, "name":"", "beginTime":1651827836584, "endTime":1651827836584, "total":1, "completed":1, "completionRate":1.0, "rooms":[{"id":1, "name":"", "number":"", "qualified":true, "completed":true}]}, "message":"", "code":1}
  107. * {"data":{"id":1, "name":"", "beginTime":1651835636006, "endTime":1651835636006, "total":1, "completed":1, "completionRate":1.0, "rooms":[{"id":1, "name":"", "number":"", "qualified":true, "completed":true}]}, "message":"", "code":1}
  108. */
  109. /**
  110. * @api {get} /v1/visitor/regulation/query 01.查询制度
  111. * @apiName 查询制度
  112. * @apiGroup 制度管理
  113. * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded
  114. * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
  115. * @apiVersion 1.0.1
  116. * @apiSuccess { Object } data 数据
  117. * @apiSuccess { Long } data.id id主键
  118. * @apiSuccess { Long } data.userId 编辑用户id
  119. * @apiSuccess { String } data.username 编辑用户名称
  120. * @apiSuccess { Date } data.createTime 创建时间
  121. * @apiSuccess { Date } data.updateTime 更新时间
  122. * @apiSuccess { String } data.content 内容
  123. * @apiSuccess { String } message 信息
  124. * @apiSuccess { Integer } code 状态码
  125. * @apiSuccessExample Response
  126. *
  127. * {"data":{"id":1, "userId":1, "username":"", "createTime":1651827836584, "updateTime":1651827836584, "content":""}, "message":"", "code":1}
  128. * {"data":{"id":1, "userId":1, "username":"", "createTime":1651835636007, "updateTime":1651835636007, "content":""}, "message":"", "code":1}
  129. */
  130. /**
  131. * @api {post} /v1/visitor/audit/add 01.进入登记
  132. * @apiName 进入登记
  133. * @apiGroup 访客审批
  134. * @apiHeader {String = application/json} Content-Type = application/json
  135. * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
  136. * @apiVersion 1.0.1
  137. * @apiBody { String } openid 用户openid
  138. * @apiBody { String } username 访客姓名
  139. * @apiBody { String } userPhone 访客手机号
  140. * @apiBody { String } company 访客公司
  141. * @apiBody { Integer } duration 访问时长(小时)
  142. * @apiBody { String } [ itineraryCode ] 行程码
  143. * @apiBody { String } [ healthCode ] 健康码
  144. * @apiBody { Boolean } [ highRisk ] 是否高风险
  145. * @apiBody { String } reason 事由
  146. * @apiBody { String } [ information ] 审核资料
  147. * @apiSuccess { Boolean } data 数据
  148. * @apiSuccess { String } message 信息
  149. * @apiSuccess { Integer } code 状态码
  150. * @apiSuccessExample Response
  151. *
  152. * {"data":true, "message":"", "code":1}
  153. */
  154. /**
  155. * @api {get} /v1/visitor/audit/query/:openid 02.查询进入记录
  156. * @apiName 查询进入记录
  157. * @apiGroup 访客审批
  158. * @apiHeader {String = application/x-www-form-urlencoded} Content-Type = application/x-www-form-urlencoded
  159. * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
  160. * @apiVersion 1.0.1
  161. * @apiParam { String } openid 用户openid
  162. * @apiSuccess { Object } data 数据
  163. * @apiSuccess { Long } data.id id主键
  164. * @apiSuccess { String } data.openid 用户openid
  165. * @apiSuccess { String } data.username 访客姓名
  166. * @apiSuccess { String } data.userPhone 访客手机号
  167. * @apiSuccess { String } data.company 访客公司
  168. * @apiSuccess { Date } data.entryTime 进入时间
  169. * @apiSuccess { String } data.reason 事由
  170. * @apiSuccess { String } message 信息
  171. * @apiSuccess { Integer } code 状态码
  172. * @apiSuccessExample Response
  173. *
  174. * {"data":{"id":1, "openid":"", "username":"", "userPhone":"", "company":"", "entryTime":1651827836584, "reason":""}, "message":"", "code":1}
  175. * {"data":{"id":1, "openid":"", "username":"", "userPhone":"", "company":"", "entryTime":1651835636007, "reason":""}, "message":"", "code":1}
  176. */
  177. /**
  178. * @api {put} /v1/visitor/audit/update 03.出场核销
  179. * @apiName 出场核销
  180. * @apiGroup 访客审批
  181. * @apiHeader {String = application/json} Content-Type = application/json
  182. * @apiHeader {String = zh-CN,en-US } accept-language = zh-CN
  183. * @apiVersion 1.0.1
  184. * @apiBody { Long } id 入场记录id
  185. * @apiBody { String } [ remark ] 出场备注
  186. * @apiSuccess { Boolean } data 数据
  187. * @apiSuccess { String } message 信息
  188. * @apiSuccess { Integer } code 状态码
  189. * @apiSuccessExample Response
  190. *
  191. * {"data":true, "message":"", "code":1}
  192. */