docs.go 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412
  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. },
  13. "version": "{{.Version}}"
  14. },
  15. "host": "{{.Host}}",
  16. "basePath": "{{.BasePath}}",
  17. "paths": {
  18. "/v1/chat/getQuestion": {
  19. "get": {
  20. "description": "查询问题",
  21. "consumes": [
  22. "application/json"
  23. ],
  24. "produces": [
  25. "application/json"
  26. ],
  27. "tags": [
  28. "问答管理"
  29. ],
  30. "summary": "查询问题",
  31. "parameters": [
  32. {
  33. "type": "integer",
  34. "description": "id:问题主键",
  35. "name": "id",
  36. "in": "query"
  37. }
  38. ],
  39. "responses": {
  40. "200": {
  41. "description": "ok",
  42. "schema": {
  43. "type": "string"
  44. }
  45. }
  46. }
  47. }
  48. },
  49. "/v1/device/:mac/stop/collect": {
  50. "get": {
  51. "description": "停止采集",
  52. "consumes": [
  53. "application/json"
  54. ],
  55. "produces": [
  56. "application/json"
  57. ],
  58. "tags": [
  59. "设备管理"
  60. ],
  61. "summary": "停止采集",
  62. "responses": {
  63. "200": {
  64. "description": "ok",
  65. "schema": {
  66. "type": "string"
  67. }
  68. }
  69. }
  70. }
  71. },
  72. "/v1/device/:mac/stop/trans": {
  73. "get": {
  74. "description": "停止传输",
  75. "consumes": [
  76. "application/json"
  77. ],
  78. "produces": [
  79. "application/json"
  80. ],
  81. "tags": [
  82. "设备管理"
  83. ],
  84. "summary": "停止传输",
  85. "responses": {
  86. "200": {
  87. "description": "ok",
  88. "schema": {
  89. "type": "string"
  90. }
  91. }
  92. }
  93. }
  94. },
  95. "/v1/device/connection": {
  96. "get": {
  97. "description": "连接设备",
  98. "consumes": [
  99. "application/json"
  100. ],
  101. "produces": [
  102. "application/json"
  103. ],
  104. "tags": [
  105. "设备管理"
  106. ],
  107. "summary": "连接设备",
  108. "parameters": [
  109. {
  110. "description": "chip:芯片编号,0或1;mac:Mac地址;addrType:地址类型 public/random ",
  111. "name": "device",
  112. "in": "body",
  113. "required": true,
  114. "schema": {
  115. "type": "string"
  116. }
  117. }
  118. ],
  119. "responses": {
  120. "200": {
  121. "description": "ok",
  122. "schema": {
  123. "type": "string"
  124. }
  125. }
  126. }
  127. }
  128. },
  129. "/v1/device/open/notify/": {
  130. "get": {
  131. "description": "开启数据通知",
  132. "consumes": [
  133. "application/json"
  134. ],
  135. "produces": [
  136. "application/json"
  137. ],
  138. "tags": [
  139. "设备管理"
  140. ],
  141. "summary": "开启数据通知",
  142. "responses": {
  143. "200": {
  144. "description": "ok",
  145. "schema": {
  146. "type": "string"
  147. }
  148. }
  149. }
  150. }
  151. },
  152. "/v1/device/scan": {
  153. "get": {
  154. "description": "扫描设备",
  155. "consumes": [
  156. "application/json"
  157. ],
  158. "produces": [
  159. "application/json"
  160. ],
  161. "tags": [
  162. "设备管理"
  163. ],
  164. "summary": "扫描设备",
  165. "parameters": [
  166. {
  167. "description": "chip:芯片编号,1或1;filterName:0 脑电 1 心电;filterRssi:信号强度,小于0的整数,字符串格式传输;filterMac:过滤Mac地址,以",
  168. "name": "device",
  169. "in": "body",
  170. "required": true,
  171. "schema": {
  172. "type": "string"
  173. }
  174. }
  175. ],
  176. "responses": {
  177. "200": {
  178. "description": "ok",
  179. "schema": {
  180. "type": "string"
  181. }
  182. }
  183. }
  184. }
  185. },
  186. "/v1/device/write/data/": {
  187. "post": {
  188. "description": "写入数据——发送指令 ,ECG设备开启测试功能",
  189. "consumes": [
  190. "application/json"
  191. ],
  192. "produces": [
  193. "application/json"
  194. ],
  195. "tags": [
  196. "设备管理"
  197. ],
  198. "summary": "写入数据——发送指令",
  199. "parameters": [
  200. {
  201. "description": "mac:设备MAC地址 userName:用户姓名 gender:性别 age:年龄 height:身高 weight:体重",
  202. "name": "mac",
  203. "in": "body",
  204. "required": true,
  205. "schema": {
  206. "type": "string"
  207. }
  208. }
  209. ],
  210. "responses": {
  211. "200": {
  212. "description": "ok",
  213. "schema": {
  214. "type": "string"
  215. }
  216. }
  217. }
  218. }
  219. },
  220. "/v1/user/change/password": {
  221. "post": {
  222. "description": "用户修改密码",
  223. "consumes": [
  224. "application/json"
  225. ],
  226. "produces": [
  227. "application/json"
  228. ],
  229. "tags": [
  230. "用户管理"
  231. ],
  232. "summary": "用户修改密码",
  233. "parameters": [
  234. {
  235. "description": "userName:用户名 password:密码 newPassword:新密码",
  236. "name": "user",
  237. "in": "body",
  238. "required": true,
  239. "schema": {
  240. "type": "string"
  241. }
  242. }
  243. ],
  244. "responses": {
  245. "200": {
  246. "description": "ok",
  247. "schema": {
  248. "type": "string"
  249. }
  250. }
  251. }
  252. }
  253. },
  254. "/v1/user/find": {
  255. "post": {
  256. "description": "用户列表查询",
  257. "consumes": [
  258. "application/json"
  259. ],
  260. "produces": [
  261. "application/json"
  262. ],
  263. "tags": [
  264. "用户管理"
  265. ],
  266. "summary": "用户列表查询",
  267. "parameters": [
  268. {
  269. "description": "role:角色;userName:用户名;pageNum:页数;pageSize:每页记录数",
  270. "name": "user",
  271. "in": "body",
  272. "required": true,
  273. "schema": {
  274. "type": "string"
  275. }
  276. }
  277. ],
  278. "responses": {
  279. "200": {
  280. "description": "ok",
  281. "schema": {
  282. "type": "string"
  283. }
  284. }
  285. }
  286. }
  287. },
  288. "/v1/user/login": {
  289. "post": {
  290. "description": "用户登录",
  291. "consumes": [
  292. "application/json"
  293. ],
  294. "produces": [
  295. "application/json"
  296. ],
  297. "tags": [
  298. "用户管理"
  299. ],
  300. "summary": "用户登录",
  301. "parameters": [
  302. {
  303. "description": "username:编号;password:密码;role:角色;",
  304. "name": "user",
  305. "in": "body",
  306. "required": true,
  307. "schema": {
  308. "type": "string"
  309. }
  310. }
  311. ],
  312. "responses": {
  313. "200": {
  314. "description": "ok",
  315. "schema": {
  316. "type": "string"
  317. }
  318. }
  319. }
  320. }
  321. },
  322. "/v1/user/register": {
  323. "post": {
  324. "description": "用户注册",
  325. "consumes": [
  326. "application/json"
  327. ],
  328. "produces": [
  329. "application/json"
  330. ],
  331. "tags": [
  332. "用户管理"
  333. ],
  334. "summary": "用户注册",
  335. "parameters": [
  336. {
  337. "description": "userName:用户名;password:密码;role:角色",
  338. "name": "user",
  339. "in": "body",
  340. "required": true,
  341. "schema": {
  342. "type": "string"
  343. }
  344. }
  345. ],
  346. "responses": {
  347. "200": {
  348. "description": "ok",
  349. "schema": {
  350. "type": "string"
  351. }
  352. }
  353. }
  354. }
  355. },
  356. "/v1/user/reset": {
  357. "post": {
  358. "description": "管理员重置普通用户密码",
  359. "consumes": [
  360. "application/json"
  361. ],
  362. "produces": [
  363. "application/json"
  364. ],
  365. "tags": [
  366. "用户管理"
  367. ],
  368. "summary": "管理员重置普通用户密码",
  369. "parameters": [
  370. {
  371. "description": "username:管理员编号;usernameInit:被重置用户编号",
  372. "name": "user",
  373. "in": "body",
  374. "required": true,
  375. "schema": {
  376. "type": "string"
  377. }
  378. }
  379. ],
  380. "responses": {
  381. "200": {
  382. "description": "ok",
  383. "schema": {
  384. "type": "string"
  385. }
  386. }
  387. }
  388. }
  389. }
  390. }
  391. }`
  392. // SwaggerInfo holds exported Swagger Info so clients can modify it
  393. var SwaggerInfo = &swag.Spec{
  394. Version: "1.0",
  395. Host: "",
  396. BasePath: "",
  397. Schemes: []string{},
  398. Title: "对抗训练",
  399. Description: "对抗训练",
  400. InfoInstanceName: "swagger",
  401. SwaggerTemplate: docTemplate,
  402. LeftDelim: "{{",
  403. RightDelim: "}}",
  404. }
  405. func init() {
  406. swag.Register(SwaggerInfo.InstanceName(), SwaggerInfo)
  407. }