docs.go 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329
  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": "recordFile",
  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. "responses": {
  94. "200": {
  95. "description": "ok",
  96. "schema": {
  97. "type": "string"
  98. }
  99. }
  100. }
  101. }
  102. },
  103. "/v1/record/find": {
  104. "post": {
  105. "description": "记录列表查询",
  106. "consumes": [
  107. "application/json"
  108. ],
  109. "produces": [
  110. "application/json"
  111. ],
  112. "tags": [
  113. "测试记录"
  114. ],
  115. "summary": "记录列表查询",
  116. "parameters": [
  117. {
  118. "description": "role:角色;userName:用户名;pageNum:页数;pageSize:每页记录数",
  119. "name": "r",
  120. "in": "body",
  121. "required": true,
  122. "schema": {
  123. "type": "string"
  124. }
  125. }
  126. ],
  127. "responses": {
  128. "200": {
  129. "description": "ok",
  130. "schema": {
  131. "type": "string"
  132. }
  133. }
  134. }
  135. }
  136. },
  137. "/v1/user/change/password": {
  138. "post": {
  139. "description": "用户修改密码",
  140. "consumes": [
  141. "application/json"
  142. ],
  143. "produces": [
  144. "application/json"
  145. ],
  146. "tags": [
  147. "用户管理"
  148. ],
  149. "summary": "用户修改密码",
  150. "parameters": [
  151. {
  152. "description": "userName:用户名 password:密码 newPassword:新密码",
  153. "name": "user",
  154. "in": "body",
  155. "required": true,
  156. "schema": {
  157. "type": "string"
  158. }
  159. }
  160. ],
  161. "responses": {
  162. "200": {
  163. "description": "ok",
  164. "schema": {
  165. "type": "string"
  166. }
  167. }
  168. }
  169. }
  170. },
  171. "/v1/user/find": {
  172. "post": {
  173. "description": "用户列表查询",
  174. "consumes": [
  175. "application/json"
  176. ],
  177. "produces": [
  178. "application/json"
  179. ],
  180. "tags": [
  181. "用户管理"
  182. ],
  183. "summary": "用户列表查询",
  184. "parameters": [
  185. {
  186. "description": "role:角色;userName:用户名;pageNum:页数;pageSize:每页记录数",
  187. "name": "user",
  188. "in": "body",
  189. "required": true,
  190. "schema": {
  191. "type": "string"
  192. }
  193. }
  194. ],
  195. "responses": {
  196. "200": {
  197. "description": "ok",
  198. "schema": {
  199. "type": "string"
  200. }
  201. }
  202. }
  203. }
  204. },
  205. "/v1/user/login": {
  206. "post": {
  207. "description": "用户登录",
  208. "consumes": [
  209. "application/json"
  210. ],
  211. "produces": [
  212. "application/json"
  213. ],
  214. "tags": [
  215. "用户管理"
  216. ],
  217. "summary": "用户登录",
  218. "parameters": [
  219. {
  220. "description": "username:编号;password:密码;role:角色;",
  221. "name": "user",
  222. "in": "body",
  223. "required": true,
  224. "schema": {
  225. "type": "string"
  226. }
  227. }
  228. ],
  229. "responses": {
  230. "200": {
  231. "description": "ok",
  232. "schema": {
  233. "type": "string"
  234. }
  235. }
  236. }
  237. }
  238. },
  239. "/v1/user/register": {
  240. "post": {
  241. "description": "用户注册",
  242. "consumes": [
  243. "application/json"
  244. ],
  245. "produces": [
  246. "application/json"
  247. ],
  248. "tags": [
  249. "用户管理"
  250. ],
  251. "summary": "用户注册",
  252. "parameters": [
  253. {
  254. "description": "userName:用户名;password:密码;role:角色",
  255. "name": "user",
  256. "in": "body",
  257. "required": true,
  258. "schema": {
  259. "type": "string"
  260. }
  261. }
  262. ],
  263. "responses": {
  264. "200": {
  265. "description": "ok",
  266. "schema": {
  267. "type": "string"
  268. }
  269. }
  270. }
  271. }
  272. },
  273. "/v1/user/reset": {
  274. "post": {
  275. "description": "管理员重置普通用户密码",
  276. "consumes": [
  277. "application/json"
  278. ],
  279. "produces": [
  280. "application/json"
  281. ],
  282. "tags": [
  283. "用户管理"
  284. ],
  285. "summary": "管理员重置普通用户密码",
  286. "parameters": [
  287. {
  288. "description": "username:管理员编号;usernameInit:被重置用户编号",
  289. "name": "user",
  290. "in": "body",
  291. "required": true,
  292. "schema": {
  293. "type": "string"
  294. }
  295. }
  296. ],
  297. "responses": {
  298. "200": {
  299. "description": "ok",
  300. "schema": {
  301. "type": "string"
  302. }
  303. }
  304. }
  305. }
  306. }
  307. }
  308. }`
  309. // SwaggerInfo holds exported Swagger Info so clients can modify it
  310. var SwaggerInfo = &swag.Spec{
  311. Version: "1.0",
  312. Host: "",
  313. BasePath: "",
  314. Schemes: []string{},
  315. Title: "AIT-go AI测试",
  316. Description: "AI测试",
  317. InfoInstanceName: "swagger",
  318. SwaggerTemplate: docTemplate,
  319. LeftDelim: "{{",
  320. RightDelim: "}}",
  321. }
  322. func init() {
  323. swag.Register(SwaggerInfo.InstanceName(), SwaggerInfo)
  324. }