swagger.json 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337
  1. {
  2. "swagger": "2.0",
  3. "info": {
  4. "contact": {},
  5. "license": {}
  6. },
  7. "paths": {
  8. "/Regist.Asfx": {
  9. "post": {
  10. "description": "门禁人员注册",
  11. "consumes": [
  12. "multipart/form-data"
  13. ],
  14. "produces": [
  15. "application/json"
  16. ],
  17. "tags": [
  18. "门禁"
  19. ],
  20. "summary": "门禁人员注册",
  21. "parameters": [
  22. {
  23. "type": "string",
  24. "description": " ",
  25. "name": "Idno",
  26. "in": "formData"
  27. },
  28. {
  29. "type": "string",
  30. "description": " ",
  31. "name": "Name",
  32. "in": "formData"
  33. },
  34. {
  35. "type": "integer",
  36. "description": " ",
  37. "name": "gender",
  38. "in": "formData"
  39. },
  40. {
  41. "type": "string",
  42. "description": " ",
  43. "name": "nation",
  44. "in": "formData"
  45. },
  46. {
  47. "type": "string",
  48. "description": " ",
  49. "name": "birthday",
  50. "in": "formData"
  51. },
  52. {
  53. "type": "string",
  54. "description": " ",
  55. "name": "address",
  56. "in": "formData"
  57. },
  58. {
  59. "type": "string",
  60. "description": " ",
  61. "name": "idissue",
  62. "in": "formData"
  63. },
  64. {
  65. "type": "string",
  66. "description": " ",
  67. "name": "idperiod",
  68. "in": "formData"
  69. },
  70. {
  71. "type": "string",
  72. "description": " ",
  73. "name": "idphoto",
  74. "in": "formData"
  75. },
  76. {
  77. "type": "string",
  78. "description": " ",
  79. "name": "photo",
  80. "in": "formData"
  81. },
  82. {
  83. "type": "string",
  84. "description": " ",
  85. "name": "inf_photo",
  86. "in": "formData"
  87. },
  88. {
  89. "type": "integer",
  90. "description": " ",
  91. "name": "userType",
  92. "in": "formData"
  93. },
  94. {
  95. "type": "string",
  96. "description": " ",
  97. "name": "dev_mac",
  98. "in": "formData"
  99. },
  100. {
  101. "type": "integer",
  102. "description": " ",
  103. "name": "RegType",
  104. "in": "formData"
  105. }
  106. ],
  107. "responses": {
  108. "500": {
  109. "description": "Internal Server Error",
  110. "schema": {
  111. "$ref": "#/definitions/base.HTTPError"
  112. }
  113. }
  114. }
  115. }
  116. },
  117. "/Service/DistinguishWebSvr.assx/UploadCarData": {
  118. "post": {
  119. "description": "运渣车实时数据上传",
  120. "consumes": [
  121. "multipart/form-data"
  122. ],
  123. "produces": [
  124. "application/json"
  125. ],
  126. "tags": [
  127. "运渣车"
  128. ],
  129. "summary": "运渣车实时数据上传",
  130. "parameters": [
  131. {
  132. "type": "string",
  133. "description": " ",
  134. "name": "carInfo",
  135. "in": "formData"
  136. },
  137. {
  138. "type": "file",
  139. "description": " ",
  140. "name": "image",
  141. "in": "formData"
  142. },
  143. {
  144. "type": "file",
  145. "description": " ",
  146. "name": "image1",
  147. "in": "formData"
  148. },
  149. {
  150. "type": "file",
  151. "description": " ",
  152. "name": "image2",
  153. "in": "formData"
  154. },
  155. {
  156. "type": "file",
  157. "description": " ",
  158. "name": "image3",
  159. "in": "formData"
  160. },
  161. {
  162. "type": "file",
  163. "description": " ",
  164. "name": "cleanImage",
  165. "in": "formData"
  166. }
  167. ],
  168. "responses": {
  169. "500": {
  170. "description": "Internal Server Error",
  171. "schema": {
  172. "$ref": "#/definitions/base.HTTPError"
  173. }
  174. }
  175. }
  176. }
  177. },
  178. "/httpserver/Service/DevivePacketWebSvr.assx/FeedBack": {
  179. "post": {
  180. "description": "确认信息",
  181. "consumes": [
  182. "multipart/form-data"
  183. ],
  184. "produces": [
  185. "application/json"
  186. ],
  187. "tags": [
  188. "门禁"
  189. ],
  190. "summary": "确认信息",
  191. "parameters": [
  192. {
  193. "type": "integer",
  194. "description": " ",
  195. "name": "type",
  196. "in": "query"
  197. },
  198. {
  199. "type": "string",
  200. "description": " ",
  201. "name": "sn",
  202. "in": "query"
  203. },
  204. {
  205. "type": "string",
  206. "description": " ",
  207. "name": "msg",
  208. "in": "query"
  209. }
  210. ],
  211. "responses": {
  212. "500": {
  213. "description": "Internal Server Error",
  214. "schema": {
  215. "$ref": "#/definitions/base.HTTPError"
  216. }
  217. }
  218. }
  219. }
  220. },
  221. "/httpserver/Service/DevivePacketWebSvr.assx/GetAddPerson": {
  222. "get": {
  223. "description": "门禁人员批量下发",
  224. "consumes": [
  225. "multipart/form-data"
  226. ],
  227. "produces": [
  228. "application/json"
  229. ],
  230. "tags": [
  231. "门禁"
  232. ],
  233. "summary": "门禁",
  234. "parameters": [
  235. {
  236. "type": "string",
  237. "description": " ",
  238. "name": "sn",
  239. "in": "query"
  240. }
  241. ],
  242. "responses": {
  243. "500": {
  244. "description": "Internal Server Error",
  245. "schema": {
  246. "$ref": "#/definitions/base.HTTPError"
  247. }
  248. }
  249. }
  250. }
  251. },
  252. "/httpserver/Service/DevivePacketWebSvr.assx/GetDelPerson": {
  253. "get": {
  254. "description": "删除员工",
  255. "consumes": [
  256. "multipart/form-data"
  257. ],
  258. "produces": [
  259. "application/json"
  260. ],
  261. "tags": [
  262. "门禁"
  263. ],
  264. "summary": "删除员工",
  265. "parameters": [
  266. {
  267. "type": "string",
  268. "description": " ",
  269. "name": "sn",
  270. "in": "query"
  271. }
  272. ],
  273. "responses": {
  274. "500": {
  275. "description": "Internal Server Error",
  276. "schema": {
  277. "$ref": "#/definitions/base.HTTPError"
  278. }
  279. }
  280. }
  281. }
  282. },
  283. "/httpserver/Service/DevivePacketWebSvr.assx/UploadAttendance": {
  284. "post": {
  285. "description": "上传实时数据",
  286. "consumes": [
  287. "multipart/form-data"
  288. ],
  289. "produces": [
  290. "application/json"
  291. ],
  292. "tags": [
  293. "门禁"
  294. ],
  295. "summary": "上传实时数据",
  296. "parameters": [
  297. {
  298. "type": "string",
  299. "description": " ",
  300. "name": "sn",
  301. "in": "query"
  302. },
  303. {
  304. "type": "string",
  305. "description": " ",
  306. "name": "content",
  307. "in": "query"
  308. }
  309. ],
  310. "responses": {
  311. "500": {
  312. "description": "Internal Server Error",
  313. "schema": {
  314. "$ref": "#/definitions/base.HTTPError"
  315. }
  316. }
  317. }
  318. }
  319. }
  320. },
  321. "definitions": {
  322. "base.HTTPError": {
  323. "type": "object",
  324. "properties": {
  325. "code": {
  326. "type": "integer",
  327. "format": "int",
  328. "example": 500
  329. },
  330. "msg": {
  331. "type": "string",
  332. "example": "status bad request"
  333. }
  334. }
  335. }
  336. }
  337. }