docs.go 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297
  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/create": {
  21. "post": {
  22. "security": [
  23. {
  24. "ApiKeyAuth": []
  25. }
  26. ],
  27. "description": "新增测试",
  28. "consumes": [
  29. "application/json"
  30. ],
  31. "produces": [
  32. "application/json"
  33. ],
  34. "tags": [
  35. "测试记录"
  36. ],
  37. "summary": "新增测试",
  38. "parameters": [
  39. {
  40. "type": "file",
  41. "description": "文件",
  42. "name": "recordFile",
  43. "in": "formData",
  44. "required": true
  45. },
  46. {
  47. "type": "string",
  48. "description": "用户名",
  49. "name": "userName",
  50. "in": "formData",
  51. "required": true
  52. },
  53. {
  54. "type": "string",
  55. "description": "文件类型",
  56. "name": "fileType",
  57. "in": "formData",
  58. "required": true
  59. }
  60. ],
  61. "responses": {
  62. "200": {
  63. "description": "ok",
  64. "schema": {
  65. "type": "string"
  66. }
  67. }
  68. }
  69. }
  70. },
  71. "/v1/record/find": {
  72. "get": {
  73. "description": "记录列表查询",
  74. "consumes": [
  75. "application/json"
  76. ],
  77. "produces": [
  78. "application/json"
  79. ],
  80. "tags": [
  81. "测试记录"
  82. ],
  83. "summary": "记录列表查询",
  84. "parameters": [
  85. {
  86. "description": "role:角色;userName:用户名;pageNum:页数;pageSize:每页记录数",
  87. "name": "r",
  88. "in": "body",
  89. "required": true,
  90. "schema": {
  91. "type": "string"
  92. }
  93. }
  94. ],
  95. "responses": {
  96. "200": {
  97. "description": "ok",
  98. "schema": {
  99. "type": "string"
  100. }
  101. }
  102. }
  103. }
  104. },
  105. "/v1/user/change/password": {
  106. "post": {
  107. "description": "用户修改密码",
  108. "consumes": [
  109. "application/json"
  110. ],
  111. "produces": [
  112. "application/json"
  113. ],
  114. "tags": [
  115. "用户管理"
  116. ],
  117. "summary": "用户修改密码",
  118. "parameters": [
  119. {
  120. "description": "userName:用户名 password:密码 newPassword:新密码",
  121. "name": "user",
  122. "in": "body",
  123. "required": true,
  124. "schema": {
  125. "type": "string"
  126. }
  127. }
  128. ],
  129. "responses": {
  130. "200": {
  131. "description": "ok",
  132. "schema": {
  133. "type": "string"
  134. }
  135. }
  136. }
  137. }
  138. },
  139. "/v1/user/find": {
  140. "post": {
  141. "description": "用户列表查询",
  142. "consumes": [
  143. "application/json"
  144. ],
  145. "produces": [
  146. "application/json"
  147. ],
  148. "tags": [
  149. "用户管理"
  150. ],
  151. "summary": "用户列表查询",
  152. "parameters": [
  153. {
  154. "description": "role:角色;userName:用户名;pageNum:页数;pageSize:每页记录数",
  155. "name": "user",
  156. "in": "body",
  157. "required": true,
  158. "schema": {
  159. "type": "string"
  160. }
  161. }
  162. ],
  163. "responses": {
  164. "200": {
  165. "description": "ok",
  166. "schema": {
  167. "type": "string"
  168. }
  169. }
  170. }
  171. }
  172. },
  173. "/v1/user/login": {
  174. "post": {
  175. "description": "用户登录",
  176. "consumes": [
  177. "application/json"
  178. ],
  179. "produces": [
  180. "application/json"
  181. ],
  182. "tags": [
  183. "用户管理"
  184. ],
  185. "summary": "用户登录",
  186. "parameters": [
  187. {
  188. "description": "username:编号;password:密码;role:角色;",
  189. "name": "user",
  190. "in": "body",
  191. "required": true,
  192. "schema": {
  193. "type": "string"
  194. }
  195. }
  196. ],
  197. "responses": {
  198. "200": {
  199. "description": "ok",
  200. "schema": {
  201. "type": "string"
  202. }
  203. }
  204. }
  205. }
  206. },
  207. "/v1/user/register": {
  208. "post": {
  209. "description": "用户注册",
  210. "consumes": [
  211. "application/json"
  212. ],
  213. "produces": [
  214. "application/json"
  215. ],
  216. "tags": [
  217. "用户管理"
  218. ],
  219. "summary": "用户注册",
  220. "parameters": [
  221. {
  222. "description": "userName:用户名;password:密码;role:角色",
  223. "name": "user",
  224. "in": "body",
  225. "required": true,
  226. "schema": {
  227. "type": "string"
  228. }
  229. }
  230. ],
  231. "responses": {
  232. "200": {
  233. "description": "ok",
  234. "schema": {
  235. "type": "string"
  236. }
  237. }
  238. }
  239. }
  240. },
  241. "/v1/user/reset": {
  242. "post": {
  243. "description": "管理员重置普通用户密码",
  244. "consumes": [
  245. "application/json"
  246. ],
  247. "produces": [
  248. "application/json"
  249. ],
  250. "tags": [
  251. "用户管理"
  252. ],
  253. "summary": "管理员重置普通用户密码",
  254. "parameters": [
  255. {
  256. "description": "username:管理员编号;usernameInit:被重置用户编号",
  257. "name": "user",
  258. "in": "body",
  259. "required": true,
  260. "schema": {
  261. "type": "string"
  262. }
  263. }
  264. ],
  265. "responses": {
  266. "200": {
  267. "description": "ok",
  268. "schema": {
  269. "type": "string"
  270. }
  271. }
  272. }
  273. }
  274. }
  275. }
  276. }`
  277. // SwaggerInfo holds exported Swagger Info so clients can modify it
  278. var SwaggerInfo = &swag.Spec{
  279. Version: "1.0",
  280. Host: "",
  281. BasePath: "",
  282. Schemes: []string{},
  283. Title: "AIT-go AI测试",
  284. Description: "AI测试",
  285. InfoInstanceName: "swagger",
  286. SwaggerTemplate: docTemplate,
  287. LeftDelim: "{{",
  288. RightDelim: "}}",
  289. }
  290. func init() {
  291. swag.Register(SwaggerInfo.InstanceName(), SwaggerInfo)
  292. }