docs.go 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348
  1. // Code generated by swaggo/swag. DO NOT EDIT.
  2. package docs
  3. import "github.com/swaggo/swag"
  4. const docTemplate = `{
  5. "schemes": {{ marshal .Schemes }},
  6. "swagger": "2.0",
  7. "info": {
  8. "description": "{{escape .Description}}",
  9. "title": "{{.Title}}",
  10. "contact": {
  11. "name": "Develoven",
  12. "url": "https://www.cnblogs.com/wormworm/",
  13. "email": "develoven@163.com"
  14. },
  15. "version": "{{.Version}}"
  16. },
  17. "host": "{{.Host}}",
  18. "basePath": "{{.BasePath}}",
  19. "paths": {
  20. "/v1/record/:recordId/find": {
  21. "get": {
  22. "description": "记录详情查询",
  23. "consumes": [
  24. "application/json"
  25. ],
  26. "produces": [
  27. "application/json"
  28. ],
  29. "tags": [
  30. "测试记录"
  31. ],
  32. "summary": "记录详情查询",
  33. "parameters": [
  34. {
  35. "type": "string",
  36. "description": "测试记录Id",
  37. "name": "r",
  38. "in": "path",
  39. "required": true
  40. }
  41. ],
  42. "responses": {
  43. "200": {
  44. "description": "ok",
  45. "schema": {
  46. "type": "string"
  47. }
  48. }
  49. }
  50. }
  51. },
  52. "/v1/record/create": {
  53. "post": {
  54. "security": [
  55. {
  56. "ApiKeyAuth": []
  57. }
  58. ],
  59. "description": "新增测试",
  60. "consumes": [
  61. "application/json"
  62. ],
  63. "produces": [
  64. "application/json"
  65. ],
  66. "tags": [
  67. "测试记录"
  68. ],
  69. "summary": "新增测试",
  70. "parameters": [
  71. {
  72. "type": "file",
  73. "description": "文件",
  74. "name": "file",
  75. "in": "formData",
  76. "required": true
  77. },
  78. {
  79. "type": "string",
  80. "description": "用户名",
  81. "name": "userName",
  82. "in": "formData",
  83. "required": true
  84. },
  85. {
  86. "type": "string",
  87. "description": "文件类型",
  88. "name": "fileType",
  89. "in": "formData",
  90. "required": true
  91. },
  92. {
  93. "type": "string",
  94. "description": "方向",
  95. "name": "positiveDir",
  96. "in": "formData"
  97. },
  98. {
  99. "type": "string",
  100. "description": "方向",
  101. "name": "negativaDir",
  102. "in": "formData"
  103. },
  104. {
  105. "type": "string",
  106. "description": "car_classification :车辆识别 ; car_direction:方向; class_direc =car_classification+car_direction;",
  107. "name": "taskType",
  108. "in": "formData",
  109. "required": true
  110. }
  111. ],
  112. "responses": {
  113. "200": {
  114. "description": "ok",
  115. "schema": {
  116. "type": "string"
  117. }
  118. }
  119. }
  120. }
  121. },
  122. "/v1/record/find": {
  123. "post": {
  124. "description": "记录列表查询",
  125. "consumes": [
  126. "application/json"
  127. ],
  128. "produces": [
  129. "application/json"
  130. ],
  131. "tags": [
  132. "测试记录"
  133. ],
  134. "summary": "记录列表查询",
  135. "parameters": [
  136. {
  137. "description": "role:角色;userName:用户名;pageNum:页数;pageSize:每页记录数",
  138. "name": "r",
  139. "in": "body",
  140. "required": true,
  141. "schema": {
  142. "type": "string"
  143. }
  144. }
  145. ],
  146. "responses": {
  147. "200": {
  148. "description": "ok",
  149. "schema": {
  150. "type": "string"
  151. }
  152. }
  153. }
  154. }
  155. },
  156. "/v1/user/change/password": {
  157. "post": {
  158. "description": "用户修改密码",
  159. "consumes": [
  160. "application/json"
  161. ],
  162. "produces": [
  163. "application/json"
  164. ],
  165. "tags": [
  166. "用户管理"
  167. ],
  168. "summary": "用户修改密码",
  169. "parameters": [
  170. {
  171. "description": "userName:用户名 password:密码 newPassword:新密码",
  172. "name": "user",
  173. "in": "body",
  174. "required": true,
  175. "schema": {
  176. "type": "string"
  177. }
  178. }
  179. ],
  180. "responses": {
  181. "200": {
  182. "description": "ok",
  183. "schema": {
  184. "type": "string"
  185. }
  186. }
  187. }
  188. }
  189. },
  190. "/v1/user/find": {
  191. "post": {
  192. "description": "用户列表查询",
  193. "consumes": [
  194. "application/json"
  195. ],
  196. "produces": [
  197. "application/json"
  198. ],
  199. "tags": [
  200. "用户管理"
  201. ],
  202. "summary": "用户列表查询",
  203. "parameters": [
  204. {
  205. "description": "role:角色;userName:用户名;pageNum:页数;pageSize:每页记录数",
  206. "name": "user",
  207. "in": "body",
  208. "required": true,
  209. "schema": {
  210. "type": "string"
  211. }
  212. }
  213. ],
  214. "responses": {
  215. "200": {
  216. "description": "ok",
  217. "schema": {
  218. "type": "string"
  219. }
  220. }
  221. }
  222. }
  223. },
  224. "/v1/user/login": {
  225. "post": {
  226. "description": "用户登录",
  227. "consumes": [
  228. "application/json"
  229. ],
  230. "produces": [
  231. "application/json"
  232. ],
  233. "tags": [
  234. "用户管理"
  235. ],
  236. "summary": "用户登录",
  237. "parameters": [
  238. {
  239. "description": "username:编号;password:密码;role:角色;",
  240. "name": "user",
  241. "in": "body",
  242. "required": true,
  243. "schema": {
  244. "type": "string"
  245. }
  246. }
  247. ],
  248. "responses": {
  249. "200": {
  250. "description": "ok",
  251. "schema": {
  252. "type": "string"
  253. }
  254. }
  255. }
  256. }
  257. },
  258. "/v1/user/register": {
  259. "post": {
  260. "description": "用户注册",
  261. "consumes": [
  262. "application/json"
  263. ],
  264. "produces": [
  265. "application/json"
  266. ],
  267. "tags": [
  268. "用户管理"
  269. ],
  270. "summary": "用户注册",
  271. "parameters": [
  272. {
  273. "description": "userName:用户名;password:密码;role:角色",
  274. "name": "user",
  275. "in": "body",
  276. "required": true,
  277. "schema": {
  278. "type": "string"
  279. }
  280. }
  281. ],
  282. "responses": {
  283. "200": {
  284. "description": "ok",
  285. "schema": {
  286. "type": "string"
  287. }
  288. }
  289. }
  290. }
  291. },
  292. "/v1/user/reset": {
  293. "post": {
  294. "description": "管理员重置普通用户密码",
  295. "consumes": [
  296. "application/json"
  297. ],
  298. "produces": [
  299. "application/json"
  300. ],
  301. "tags": [
  302. "用户管理"
  303. ],
  304. "summary": "管理员重置普通用户密码",
  305. "parameters": [
  306. {
  307. "description": "username:管理员编号;usernameInit:被重置用户编号",
  308. "name": "user",
  309. "in": "body",
  310. "required": true,
  311. "schema": {
  312. "type": "string"
  313. }
  314. }
  315. ],
  316. "responses": {
  317. "200": {
  318. "description": "ok",
  319. "schema": {
  320. "type": "string"
  321. }
  322. }
  323. }
  324. }
  325. }
  326. }
  327. }`
  328. // SwaggerInfo holds exported Swagger Info so clients can modify it
  329. var SwaggerInfo = &swag.Spec{
  330. Version: "1.0",
  331. Host: "",
  332. BasePath: "",
  333. Schemes: []string{},
  334. Title: "AIT-go AI测试",
  335. Description: "AI测试",
  336. InfoInstanceName: "swagger",
  337. SwaggerTemplate: docTemplate,
  338. LeftDelim: "{{",
  339. RightDelim: "}}",
  340. }
  341. func init() {
  342. swag.Register(SwaggerInfo.InstanceName(), SwaggerInfo)
  343. }