docs.go 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405
  1. // GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
  2. // This file was generated by swaggo/swag at
  3. // 2020-05-30 12:37:45.987 +0800 CST m=+0.178000001
  4. package docs
  5. import (
  6. "bytes"
  7. "encoding/json"
  8. "strings"
  9. "github.com/alecthomas/template"
  10. "github.com/swaggo/swag"
  11. )
  12. var doc = `{
  13. "schemes": {{ marshal .Schemes }},
  14. "swagger": "2.0",
  15. "info": {
  16. "description": "{{.Description}}",
  17. "title": "{{.Title}}",
  18. "contact": {},
  19. "license": {},
  20. "version": "{{.Version}}"
  21. },
  22. "host": "{{.Host}}",
  23. "basePath": "{{.BasePath}}",
  24. "paths": {
  25. "/Regist.Asfx": {
  26. "post": {
  27. "description": "门禁人员注册",
  28. "consumes": [
  29. "multipart/form-data"
  30. ],
  31. "produces": [
  32. "application/json"
  33. ],
  34. "tags": [
  35. "门禁"
  36. ],
  37. "summary": "门禁人员注册",
  38. "parameters": [
  39. {
  40. "type": "string",
  41. "description": " ",
  42. "name": "Idno",
  43. "in": "formData"
  44. },
  45. {
  46. "type": "string",
  47. "description": " ",
  48. "name": "Name",
  49. "in": "formData"
  50. },
  51. {
  52. "type": "integer",
  53. "description": " ",
  54. "name": "gender",
  55. "in": "formData"
  56. },
  57. {
  58. "type": "string",
  59. "description": " ",
  60. "name": "nation",
  61. "in": "formData"
  62. },
  63. {
  64. "type": "string",
  65. "description": " ",
  66. "name": "birthday",
  67. "in": "formData"
  68. },
  69. {
  70. "type": "string",
  71. "description": " ",
  72. "name": "address",
  73. "in": "formData"
  74. },
  75. {
  76. "type": "string",
  77. "description": " ",
  78. "name": "idissue",
  79. "in": "formData"
  80. },
  81. {
  82. "type": "string",
  83. "description": " ",
  84. "name": "idperiod",
  85. "in": "formData"
  86. },
  87. {
  88. "type": "string",
  89. "description": " ",
  90. "name": "idphoto",
  91. "in": "formData"
  92. },
  93. {
  94. "type": "string",
  95. "description": " ",
  96. "name": "photo",
  97. "in": "formData"
  98. },
  99. {
  100. "type": "string",
  101. "description": " ",
  102. "name": "inf_photo",
  103. "in": "formData"
  104. },
  105. {
  106. "type": "integer",
  107. "description": " ",
  108. "name": "userType",
  109. "in": "formData"
  110. },
  111. {
  112. "type": "string",
  113. "description": " ",
  114. "name": "dev_mac",
  115. "in": "formData"
  116. },
  117. {
  118. "type": "integer",
  119. "description": " ",
  120. "name": "RegType",
  121. "in": "formData"
  122. }
  123. ],
  124. "responses": {
  125. "500": {
  126. "description": "Internal Server Error",
  127. "schema": {
  128. "$ref": "#/definitions/base.HTTPError"
  129. }
  130. }
  131. }
  132. }
  133. },
  134. "/Service/DistinguishWebSvr.assx/UploadCarData": {
  135. "post": {
  136. "description": "运渣车实时数据上传",
  137. "consumes": [
  138. "multipart/form-data"
  139. ],
  140. "produces": [
  141. "application/json"
  142. ],
  143. "tags": [
  144. "运渣车"
  145. ],
  146. "summary": "运渣车实时数据上传",
  147. "parameters": [
  148. {
  149. "type": "string",
  150. "description": " ",
  151. "name": "carInfo",
  152. "in": "formData"
  153. },
  154. {
  155. "type": "file",
  156. "description": " ",
  157. "name": "image",
  158. "in": "formData"
  159. },
  160. {
  161. "type": "file",
  162. "description": " ",
  163. "name": "image1",
  164. "in": "formData"
  165. },
  166. {
  167. "type": "file",
  168. "description": " ",
  169. "name": "image2",
  170. "in": "formData"
  171. },
  172. {
  173. "type": "file",
  174. "description": " ",
  175. "name": "image3",
  176. "in": "formData"
  177. },
  178. {
  179. "type": "file",
  180. "description": " ",
  181. "name": "cleanImage",
  182. "in": "formData"
  183. }
  184. ],
  185. "responses": {
  186. "500": {
  187. "description": "Internal Server Error",
  188. "schema": {
  189. "$ref": "#/definitions/base.HTTPError"
  190. }
  191. }
  192. }
  193. }
  194. },
  195. "/httpserver/Service/DevivePacketWebSvr.assx/FeedBack": {
  196. "post": {
  197. "description": "确认信息",
  198. "consumes": [
  199. "multipart/form-data"
  200. ],
  201. "produces": [
  202. "application/json"
  203. ],
  204. "tags": [
  205. "门禁"
  206. ],
  207. "summary": "确认信息",
  208. "parameters": [
  209. {
  210. "type": "integer",
  211. "description": " ",
  212. "name": "type",
  213. "in": "query"
  214. },
  215. {
  216. "type": "string",
  217. "description": " ",
  218. "name": "sn",
  219. "in": "query"
  220. },
  221. {
  222. "type": "string",
  223. "description": " ",
  224. "name": "msg",
  225. "in": "query"
  226. }
  227. ],
  228. "responses": {
  229. "500": {
  230. "description": "Internal Server Error",
  231. "schema": {
  232. "$ref": "#/definitions/base.HTTPError"
  233. }
  234. }
  235. }
  236. }
  237. },
  238. "/httpserver/Service/DevivePacketWebSvr.assx/GetAddPerson": {
  239. "get": {
  240. "description": "门禁人员批量下发",
  241. "consumes": [
  242. "multipart/form-data"
  243. ],
  244. "produces": [
  245. "application/json"
  246. ],
  247. "tags": [
  248. "门禁"
  249. ],
  250. "summary": "门禁",
  251. "parameters": [
  252. {
  253. "type": "string",
  254. "description": " ",
  255. "name": "sn",
  256. "in": "query"
  257. }
  258. ],
  259. "responses": {
  260. "500": {
  261. "description": "Internal Server Error",
  262. "schema": {
  263. "$ref": "#/definitions/base.HTTPError"
  264. }
  265. }
  266. }
  267. }
  268. },
  269. "/httpserver/Service/DevivePacketWebSvr.assx/GetDelPerson": {
  270. "get": {
  271. "description": "删除员工",
  272. "consumes": [
  273. "multipart/form-data"
  274. ],
  275. "produces": [
  276. "application/json"
  277. ],
  278. "tags": [
  279. "门禁"
  280. ],
  281. "summary": "删除员工",
  282. "parameters": [
  283. {
  284. "type": "string",
  285. "description": " ",
  286. "name": "sn",
  287. "in": "query"
  288. }
  289. ],
  290. "responses": {
  291. "500": {
  292. "description": "Internal Server Error",
  293. "schema": {
  294. "$ref": "#/definitions/base.HTTPError"
  295. }
  296. }
  297. }
  298. }
  299. },
  300. "/httpserver/Service/DevivePacketWebSvr.assx/UploadAttendance": {
  301. "post": {
  302. "description": "上传实时数据",
  303. "consumes": [
  304. "multipart/form-data"
  305. ],
  306. "produces": [
  307. "application/json"
  308. ],
  309. "tags": [
  310. "门禁"
  311. ],
  312. "summary": "上传实时数据",
  313. "parameters": [
  314. {
  315. "type": "string",
  316. "description": " ",
  317. "name": "sn",
  318. "in": "query"
  319. },
  320. {
  321. "type": "string",
  322. "description": " ",
  323. "name": "content",
  324. "in": "query"
  325. }
  326. ],
  327. "responses": {
  328. "500": {
  329. "description": "Internal Server Error",
  330. "schema": {
  331. "$ref": "#/definitions/base.HTTPError"
  332. }
  333. }
  334. }
  335. }
  336. }
  337. },
  338. "definitions": {
  339. "base.HTTPError": {
  340. "type": "object",
  341. "properties": {
  342. "code": {
  343. "type": "integer",
  344. "format": "int",
  345. "example": 500
  346. },
  347. "msg": {
  348. "type": "string",
  349. "example": "status bad request"
  350. }
  351. }
  352. }
  353. }
  354. }`
  355. type swaggerInfo struct {
  356. Version string
  357. Host string
  358. BasePath string
  359. Schemes []string
  360. Title string
  361. Description string
  362. }
  363. // SwaggerInfo holds exported Swagger Info so clients can modify it
  364. var SwaggerInfo = swaggerInfo{
  365. Version: "",
  366. Host: "",
  367. BasePath: "",
  368. Schemes: []string{},
  369. Title: "",
  370. Description: "",
  371. }
  372. type s struct{}
  373. func (s *s) ReadDoc() string {
  374. sInfo := SwaggerInfo
  375. sInfo.Description = strings.Replace(sInfo.Description, "\n", "\\n", -1)
  376. t, err := template.New("swagger_info").Funcs(template.FuncMap{
  377. "marshal": func(v interface{}) string {
  378. a, _ := json.Marshal(v)
  379. return string(a)
  380. },
  381. }).Parse(doc)
  382. if err != nil {
  383. return doc
  384. }
  385. var tpl bytes.Buffer
  386. if err := t.Execute(&tpl, sInfo); err != nil {
  387. return doc
  388. }
  389. return tpl.String()
  390. }
  391. func init() {
  392. swag.Register(swag.Name, &s{})
  393. }