docs.go 55 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645
  1. // GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
  2. // This file was generated by swaggo/swag
  3. package docs
  4. import (
  5. "bytes"
  6. "encoding/json"
  7. "strings"
  8. "github.com/alecthomas/template"
  9. "github.com/swaggo/swag"
  10. )
  11. var doc = `{
  12. "schemes": {{ marshal .Schemes }},
  13. "swagger": "2.0",
  14. "info": {
  15. "description": "{{.Description}}",
  16. "title": "{{.Title}}",
  17. "termsOfService": "http://swagger.io/terms/",
  18. "contact": {
  19. "name": "API Support",
  20. "url": "http://www.swagger.io/support",
  21. "email": "support@swagger.io"
  22. },
  23. "license": {
  24. "name": "Apache 2.0",
  25. "url": "http://www.apache.org/licenses/LICENSE-2.0.html"
  26. },
  27. "version": "{{.Version}}"
  28. },
  29. "host": "{{.Host}}",
  30. "basePath": "{{.BasePath}}",
  31. "paths": {
  32. "/Auth/GenVerifyPic": {
  33. "post": {
  34. "description": "获取验证图片和验证id",
  35. "consumes": [
  36. "application/x-www-form-urlencoded"
  37. ],
  38. "produces": [
  39. "application/json"
  40. ],
  41. "tags": [
  42. "Auth"
  43. ],
  44. "summary": "获取验证图片",
  45. "parameters": [
  46. {
  47. "type": "string",
  48. "description": "高",
  49. "name": "height",
  50. "in": "formData",
  51. "required": true
  52. },
  53. {
  54. "type": "string",
  55. "description": "宽",
  56. "name": "width",
  57. "in": "formData",
  58. "required": true
  59. },
  60. {
  61. "type": "string",
  62. "description": "噪点数量",
  63. "name": "noiseCount",
  64. "in": "formData",
  65. "required": true
  66. },
  67. {
  68. "type": "string",
  69. "description": "验证码字数",
  70. "name": "length",
  71. "in": "formData",
  72. "required": true
  73. },
  74. {
  75. "type": "string",
  76. "description": "验证码取值范围 比如 1234567890 或者 abcdef等",
  77. "name": "source",
  78. "in": "formData",
  79. "required": true
  80. }
  81. ],
  82. "responses": {
  83. "200": {
  84. "description": "OK",
  85. "schema": {
  86. "$ref": "#/definitions/controller.ResponseVerifyPic"
  87. }
  88. }
  89. }
  90. }
  91. },
  92. "/Auth/GetPhoneVFCode": {
  93. "post": {
  94. "description": "手机获取验证码",
  95. "consumes": [
  96. "application/x-www-form-urlencoded"
  97. ],
  98. "produces": [
  99. "application/json"
  100. ],
  101. "tags": [
  102. "Auth"
  103. ],
  104. "summary": "手机获取验证码",
  105. "parameters": [
  106. {
  107. "type": "string",
  108. "description": "手机号",
  109. "name": "phone",
  110. "in": "formData",
  111. "required": true
  112. },
  113. {
  114. "type": "integer",
  115. "description": "验证码类型 1:登录",
  116. "name": "codeType",
  117. "in": "formData",
  118. "required": true
  119. },
  120. {
  121. "type": "string",
  122. "description": "图形验证码id",
  123. "name": "picId",
  124. "in": "formData",
  125. "required": true
  126. },
  127. {
  128. "type": "string",
  129. "description": "图形验证码",
  130. "name": "picCode",
  131. "in": "formData",
  132. "required": true
  133. }
  134. ],
  135. "responses": {
  136. "200": {
  137. "description": "OK",
  138. "schema": {
  139. "$ref": "#/definitions/controller.ResponseBase"
  140. }
  141. }
  142. }
  143. }
  144. },
  145. "/Auth/SignUp": {
  146. "post": {
  147. "description": "用户添加",
  148. "consumes": [
  149. "application/x-www-form-urlencoded"
  150. ],
  151. "produces": [
  152. "application/json"
  153. ],
  154. "tags": [
  155. "Auth"
  156. ],
  157. "summary": "用户添加",
  158. "parameters": [
  159. {
  160. "type": "string",
  161. "description": "用户名",
  162. "name": "userCode",
  163. "in": "formData",
  164. "required": true
  165. },
  166. {
  167. "type": "string",
  168. "description": "密码",
  169. "name": "password",
  170. "in": "formData",
  171. "required": true
  172. },
  173. {
  174. "type": "string",
  175. "description": "邮箱",
  176. "name": "email",
  177. "in": "formData"
  178. },
  179. {
  180. "type": "string",
  181. "description": "手机号",
  182. "name": "phone",
  183. "in": "formData"
  184. },
  185. {
  186. "type": "string",
  187. "description": "姓名",
  188. "name": "name",
  189. "in": "formData"
  190. }
  191. ],
  192. "responses": {
  193. "200": {
  194. "description": "OK",
  195. "schema": {
  196. "$ref": "#/definitions/controller.ResponseBase"
  197. }
  198. }
  199. }
  200. }
  201. },
  202. "/HrSensors/AddHrSensors": {
  203. "post": {
  204. "description": "添加商家公共心率设备",
  205. "consumes": [
  206. "application/x-www-form-urlencoded"
  207. ],
  208. "produces": [
  209. "application/json"
  210. ],
  211. "tags": [
  212. "HrSensors"
  213. ],
  214. "summary": "添加商家公共心率设备",
  215. "parameters": [
  216. {
  217. "type": "string",
  218. "description": "Token",
  219. "name": "token",
  220. "in": "formData",
  221. "required": true
  222. },
  223. {
  224. "type": "integer",
  225. "description": "商家ID",
  226. "name": "shopId",
  227. "in": "formData",
  228. "required": true
  229. },
  230. {
  231. "type": "integer",
  232. "description": "心率带Sn",
  233. "name": "sn",
  234. "in": "formData",
  235. "required": true
  236. },
  237. {
  238. "type": "string",
  239. "description": "场馆内编号 01 02",
  240. "name": "venueNo",
  241. "in": "formData"
  242. }
  243. ],
  244. "responses": {
  245. "200": {
  246. "description": "OK",
  247. "schema": {
  248. "$ref": "#/definitions/controller.ResponseBase"
  249. }
  250. }
  251. }
  252. }
  253. },
  254. "/HrSensors/AddPvtHrSensors": {
  255. "post": {
  256. "description": "添加会员私有心率设备",
  257. "consumes": [
  258. "application/x-www-form-urlencoded"
  259. ],
  260. "produces": [
  261. "application/json"
  262. ],
  263. "tags": [
  264. "HrSensors"
  265. ],
  266. "summary": "添加会员私有心率设备",
  267. "parameters": [
  268. {
  269. "type": "string",
  270. "description": "Token",
  271. "name": "token",
  272. "in": "formData",
  273. "required": true
  274. },
  275. {
  276. "type": "integer",
  277. "description": "商家ID",
  278. "name": "shopId",
  279. "in": "formData",
  280. "required": true
  281. },
  282. {
  283. "type": "integer",
  284. "description": "心率带Sn",
  285. "name": "sn",
  286. "in": "formData",
  287. "required": true
  288. },
  289. {
  290. "type": "integer",
  291. "description": "用户ID",
  292. "name": "userId",
  293. "in": "formData",
  294. "required": true
  295. }
  296. ],
  297. "responses": {
  298. "200": {
  299. "description": "OK",
  300. "schema": {
  301. "$ref": "#/definitions/controller.ResponseBase"
  302. }
  303. }
  304. }
  305. }
  306. },
  307. "/HrSensors/BindHrSensorsToUser": {
  308. "post": {
  309. "description": "心率带绑定用户",
  310. "consumes": [
  311. "application/x-www-form-urlencoded"
  312. ],
  313. "produces": [
  314. "application/json"
  315. ],
  316. "tags": [
  317. "HrSensors"
  318. ],
  319. "summary": "心率带绑定用户",
  320. "parameters": [
  321. {
  322. "type": "string",
  323. "description": "Token",
  324. "name": "token",
  325. "in": "formData",
  326. "required": true
  327. },
  328. {
  329. "type": "string",
  330. "description": "心率带Sn",
  331. "name": "sn",
  332. "in": "formData",
  333. "required": true
  334. },
  335. {
  336. "type": "integer",
  337. "description": "课堂记录Id,必传字段",
  338. "name": "cfId",
  339. "in": "formData",
  340. "required": true
  341. },
  342. {
  343. "type": "integer",
  344. "description": "用户Id",
  345. "name": "userId",
  346. "in": "formData",
  347. "required": true
  348. },
  349. {
  350. "type": "integer",
  351. "description": "商家ID",
  352. "name": "shopId",
  353. "in": "formData",
  354. "required": true
  355. },
  356. {
  357. "type": "integer",
  358. "description": "心率带ID",
  359. "name": "hrId",
  360. "in": "formData",
  361. "required": true
  362. }
  363. ],
  364. "responses": {
  365. "200": {
  366. "description": "OK",
  367. "schema": {
  368. "$ref": "#/definitions/controller.ResponseBase"
  369. }
  370. }
  371. }
  372. }
  373. },
  374. "/HrSensors/EditHrSensors": {
  375. "post": {
  376. "description": "修改商家心率设备信息",
  377. "consumes": [
  378. "application/x-www-form-urlencoded"
  379. ],
  380. "produces": [
  381. "application/json"
  382. ],
  383. "tags": [
  384. "HrSensors"
  385. ],
  386. "summary": "修改商家心率设备信息",
  387. "parameters": [
  388. {
  389. "type": "string",
  390. "description": "Token",
  391. "name": "token",
  392. "in": "formData",
  393. "required": true
  394. },
  395. {
  396. "type": "integer",
  397. "description": "心率带ID",
  398. "name": "hrId",
  399. "in": "formData",
  400. "required": true
  401. },
  402. {
  403. "type": "string",
  404. "description": "心率带Sn",
  405. "name": "sn",
  406. "in": "formData",
  407. "required": true
  408. },
  409. {
  410. "type": "string",
  411. "description": "商家ID",
  412. "name": "shopId",
  413. "in": "formData",
  414. "required": true
  415. },
  416. {
  417. "type": "string",
  418. "description": "场馆内编号 01 02",
  419. "name": "venueNo",
  420. "in": "formData"
  421. }
  422. ],
  423. "responses": {
  424. "200": {
  425. "description": "OK",
  426. "schema": {
  427. "$ref": "#/definitions/controller.ResponseBase"
  428. }
  429. }
  430. }
  431. }
  432. },
  433. "/HrSensors/GetHrSensorsPowerPercent": {
  434. "post": {
  435. "description": "获取心率带电量",
  436. "consumes": [
  437. "application/x-www-form-urlencoded"
  438. ],
  439. "produces": [
  440. "application/json"
  441. ],
  442. "tags": [
  443. "HrSensors"
  444. ],
  445. "summary": "获取心率带电量",
  446. "parameters": [
  447. {
  448. "type": "string",
  449. "description": "Token",
  450. "name": "token",
  451. "in": "formData",
  452. "required": true
  453. },
  454. {
  455. "type": "integer",
  456. "description": "商家ID",
  457. "name": "shopId",
  458. "in": "formData",
  459. "required": true
  460. },
  461. {
  462. "type": "integer",
  463. "description": "心率带Id",
  464. "name": "hrId",
  465. "in": "formData"
  466. }
  467. ],
  468. "responses": {
  469. "200": {
  470. "description": "OK",
  471. "schema": {
  472. "$ref": "#/definitions/controller.ResponseBase"
  473. }
  474. }
  475. }
  476. }
  477. },
  478. "/HrSensors/HrSensorsBindHistory": {
  479. "post": {
  480. "description": "查询心率带绑定历史记录",
  481. "consumes": [
  482. "application/x-www-form-urlencoded"
  483. ],
  484. "produces": [
  485. "application/json"
  486. ],
  487. "tags": [
  488. "HrSensors"
  489. ],
  490. "summary": "查询心率带绑定历史记录",
  491. "parameters": [
  492. {
  493. "type": "string",
  494. "description": "Token",
  495. "name": "token",
  496. "in": "formData",
  497. "required": true
  498. },
  499. {
  500. "type": "integer",
  501. "description": "心率带ID",
  502. "name": "hrId",
  503. "in": "formData"
  504. },
  505. {
  506. "type": "string",
  507. "description": "开始时间 2020-10-10 00:00:01",
  508. "name": "bt",
  509. "in": "formData",
  510. "required": true
  511. },
  512. {
  513. "type": "string",
  514. "description": "结束时间 2020-10-10 23:59:59",
  515. "name": "et",
  516. "in": "formData",
  517. "required": true
  518. }
  519. ],
  520. "responses": {
  521. "200": {
  522. "description": "OK",
  523. "schema": {
  524. "$ref": "#/definitions/controller.ResponseBase"
  525. }
  526. }
  527. }
  528. }
  529. },
  530. "/HrSensors/HrSensorsStatusEdit": {
  531. "post": {
  532. "description": "修改商家心率设备状态",
  533. "consumes": [
  534. "application/x-www-form-urlencoded"
  535. ],
  536. "produces": [
  537. "application/json"
  538. ],
  539. "tags": [
  540. "HrSensors"
  541. ],
  542. "summary": "修改商家心率设备状态",
  543. "parameters": [
  544. {
  545. "type": "string",
  546. "description": "Token",
  547. "name": "token",
  548. "in": "formData",
  549. "required": true
  550. },
  551. {
  552. "type": "integer",
  553. "description": "心率带ID",
  554. "name": "hrId",
  555. "in": "formData",
  556. "required": true
  557. },
  558. {
  559. "type": "integer",
  560. "description": "状态, 1:启用,8:暂停,9:删除",
  561. "name": "status",
  562. "in": "formData",
  563. "required": true
  564. }
  565. ],
  566. "responses": {
  567. "200": {
  568. "description": "OK",
  569. "schema": {
  570. "$ref": "#/definitions/controller.ResponseBase"
  571. }
  572. }
  573. }
  574. }
  575. },
  576. "/HrSensors/QueryHrSensors": {
  577. "post": {
  578. "description": "查询商家公共心率设备",
  579. "consumes": [
  580. "application/x-www-form-urlencoded"
  581. ],
  582. "produces": [
  583. "application/json"
  584. ],
  585. "tags": [
  586. "HrSensors"
  587. ],
  588. "summary": "查询商家公共心率设备",
  589. "parameters": [
  590. {
  591. "type": "string",
  592. "description": "Token",
  593. "name": "token",
  594. "in": "formData",
  595. "required": true
  596. },
  597. {
  598. "type": "integer",
  599. "description": "商家ID",
  600. "name": "shopId",
  601. "in": "formData",
  602. "required": true
  603. },
  604. {
  605. "type": "integer",
  606. "description": "设备状态",
  607. "name": "status",
  608. "in": "formData"
  609. },
  610. {
  611. "type": "string",
  612. "description": "模糊查询sn与场内编号",
  613. "name": "str",
  614. "in": "formData"
  615. }
  616. ],
  617. "responses": {
  618. "200": {
  619. "description": "OK",
  620. "schema": {
  621. "$ref": "#/definitions/controller.ResponseBase"
  622. }
  623. }
  624. }
  625. }
  626. },
  627. "/HrSensors/QueryPvtHrSensors": {
  628. "post": {
  629. "description": "查询商家会员私有心率设备",
  630. "consumes": [
  631. "application/x-www-form-urlencoded"
  632. ],
  633. "produces": [
  634. "application/json"
  635. ],
  636. "tags": [
  637. "HrSensors"
  638. ],
  639. "summary": "查询商家会员私有心率设备",
  640. "parameters": [
  641. {
  642. "type": "string",
  643. "description": "Token",
  644. "name": "token",
  645. "in": "formData",
  646. "required": true
  647. },
  648. {
  649. "type": "integer",
  650. "description": "商家ID",
  651. "name": "shopId",
  652. "in": "formData",
  653. "required": true
  654. },
  655. {
  656. "type": "integer",
  657. "description": "设备状态",
  658. "name": "status",
  659. "in": "formData"
  660. },
  661. {
  662. "type": "string",
  663. "description": "用户姓名",
  664. "name": "userName",
  665. "in": "formData"
  666. },
  667. {
  668. "type": "string",
  669. "description": "模糊查询sn与场内编号",
  670. "name": "str",
  671. "in": "formData"
  672. }
  673. ],
  674. "responses": {
  675. "200": {
  676. "description": "OK",
  677. "schema": {
  678. "$ref": "#/definitions/controller.ResponseBase"
  679. }
  680. }
  681. }
  682. }
  683. },
  684. "/HrSensors/SelectHrSensors": {
  685. "post": {
  686. "description": "查询未绑定的心率带--下拉框用",
  687. "consumes": [
  688. "application/x-www-form-urlencoded"
  689. ],
  690. "produces": [
  691. "application/json"
  692. ],
  693. "tags": [
  694. "HrSensors"
  695. ],
  696. "summary": "查询未绑定的心率带--下拉框用",
  697. "parameters": [
  698. {
  699. "type": "string",
  700. "description": "Token",
  701. "name": "token",
  702. "in": "formData",
  703. "required": true
  704. },
  705. {
  706. "type": "integer",
  707. "description": "用户ID",
  708. "name": "userId",
  709. "in": "formData"
  710. }
  711. ],
  712. "responses": {
  713. "200": {
  714. "description": "OK",
  715. "schema": {
  716. "$ref": "#/definitions/controller.ResponseBase"
  717. }
  718. }
  719. }
  720. }
  721. },
  722. "/HrSensors/UnBindHrSensorsToUser": {
  723. "post": {
  724. "description": "心率带解绑用户",
  725. "consumes": [
  726. "application/x-www-form-urlencoded"
  727. ],
  728. "produces": [
  729. "application/json"
  730. ],
  731. "tags": [
  732. "HrSensors"
  733. ],
  734. "summary": "心率带解绑用户",
  735. "parameters": [
  736. {
  737. "type": "string",
  738. "description": "Token",
  739. "name": "token",
  740. "in": "formData",
  741. "required": true
  742. },
  743. {
  744. "type": "integer",
  745. "description": "课堂记录Id,必传字段",
  746. "name": "cfId",
  747. "in": "formData",
  748. "required": true
  749. },
  750. {
  751. "type": "integer",
  752. "description": "绑定ID",
  753. "name": "bindId",
  754. "in": "formData",
  755. "required": true
  756. },
  757. {
  758. "type": "integer",
  759. "description": "用户ID",
  760. "name": "userId",
  761. "in": "formData",
  762. "required": true
  763. },
  764. {
  765. "type": "string",
  766. "description": "心率带Sn",
  767. "name": "sn",
  768. "in": "formData",
  769. "required": true
  770. }
  771. ],
  772. "responses": {
  773. "200": {
  774. "description": "OK",
  775. "schema": {
  776. "$ref": "#/definitions/controller.ResponseBase"
  777. }
  778. }
  779. }
  780. }
  781. },
  782. "/Test/UserAdd": {
  783. "post": {
  784. "description": "会员用户添加",
  785. "consumes": [
  786. "application/x-www-form-urlencoded"
  787. ],
  788. "produces": [
  789. "application/json"
  790. ],
  791. "tags": [
  792. "Test"
  793. ],
  794. "summary": "会员用户添加",
  795. "parameters": [
  796. {
  797. "type": "string",
  798. "description": "姓名",
  799. "name": "name",
  800. "in": "formData",
  801. "required": true
  802. }
  803. ],
  804. "responses": {
  805. "200": {
  806. "description": "OK",
  807. "schema": {
  808. "$ref": "#/definitions/controller.ResponseBase"
  809. }
  810. }
  811. }
  812. }
  813. },
  814. "/Test/UserListQuery": {
  815. "post": {
  816. "description": "会员用户查询",
  817. "consumes": [
  818. "application/x-www-form-urlencoded"
  819. ],
  820. "produces": [
  821. "application/json"
  822. ],
  823. "tags": [
  824. "Test"
  825. ],
  826. "summary": "会员用户查询",
  827. "responses": {
  828. "200": {
  829. "description": "OK",
  830. "schema": {
  831. "$ref": "#/definitions/controller.UserList"
  832. }
  833. }
  834. }
  835. }
  836. },
  837. "/User/ShopCoachAdd": {
  838. "post": {
  839. "description": "商家教练添加",
  840. "consumes": [
  841. "application/x-www-form-urlencoded"
  842. ],
  843. "produces": [
  844. "application/json"
  845. ],
  846. "tags": [
  847. "User"
  848. ],
  849. "summary": "商家教练添加",
  850. "parameters": [
  851. {
  852. "type": "string",
  853. "description": "Token",
  854. "name": "token",
  855. "in": "formData",
  856. "required": true
  857. },
  858. {
  859. "type": "integer",
  860. "description": "店铺ID",
  861. "name": "shopId",
  862. "in": "formData",
  863. "required": true
  864. },
  865. {
  866. "type": "string",
  867. "description": "登陆用户名也是手机号",
  868. "name": "phone",
  869. "in": "formData",
  870. "required": true
  871. },
  872. {
  873. "type": "string",
  874. "description": "姓名",
  875. "name": "name",
  876. "in": "formData",
  877. "required": true
  878. },
  879. {
  880. "type": "string",
  881. "description": "密码",
  882. "name": "pwd",
  883. "in": "formData",
  884. "required": true
  885. },
  886. {
  887. "type": "integer",
  888. "description": "性别 1:男, 2:女",
  889. "name": "sex",
  890. "in": "formData",
  891. "required": true
  892. },
  893. {
  894. "type": "string",
  895. "description": "备注",
  896. "name": "memo",
  897. "in": "formData"
  898. }
  899. ],
  900. "responses": {
  901. "200": {
  902. "description": "OK",
  903. "schema": {
  904. "$ref": "#/definitions/controller.ResponseBase"
  905. }
  906. }
  907. }
  908. }
  909. },
  910. "/User/ShopCoachEdit": {
  911. "post": {
  912. "description": "商家教练基本信息修改",
  913. "consumes": [
  914. "application/x-www-form-urlencoded"
  915. ],
  916. "produces": [
  917. "application/json"
  918. ],
  919. "tags": [
  920. "User"
  921. ],
  922. "summary": "商家教练基本信息修改",
  923. "parameters": [
  924. {
  925. "type": "string",
  926. "description": "Token",
  927. "name": "token",
  928. "in": "formData",
  929. "required": true
  930. },
  931. {
  932. "type": "integer",
  933. "description": "教练ID",
  934. "name": "ssId",
  935. "in": "formData",
  936. "required": true
  937. },
  938. {
  939. "type": "string",
  940. "description": "手机号",
  941. "name": "phone",
  942. "in": "formData"
  943. },
  944. {
  945. "type": "string",
  946. "description": "密码",
  947. "name": "pwd",
  948. "in": "formData"
  949. },
  950. {
  951. "type": "string",
  952. "description": "姓名",
  953. "name": "name",
  954. "in": "formData"
  955. },
  956. {
  957. "type": "string",
  958. "description": "备注",
  959. "name": "memo",
  960. "in": "formData"
  961. },
  962. {
  963. "type": "integer",
  964. "description": "性别 1:男, 2:女",
  965. "name": "sex",
  966. "in": "formData",
  967. "required": true
  968. }
  969. ],
  970. "responses": {
  971. "200": {
  972. "description": "OK",
  973. "schema": {
  974. "$ref": "#/definitions/controller.ResponseBase"
  975. }
  976. }
  977. }
  978. }
  979. },
  980. "/User/ShopCoachListQuery": {
  981. "post": {
  982. "description": "会员用户列表(带分页)",
  983. "consumes": [
  984. "application/x-www-form-urlencoded"
  985. ],
  986. "produces": [
  987. "application/json"
  988. ],
  989. "tags": [
  990. "User"
  991. ],
  992. "summary": "会员用户列表(带分页)",
  993. "parameters": [
  994. {
  995. "type": "string",
  996. "description": "Token",
  997. "name": "token",
  998. "in": "formData",
  999. "required": true
  1000. },
  1001. {
  1002. "type": "string",
  1003. "description": "手机号",
  1004. "name": "phone",
  1005. "in": "formData"
  1006. },
  1007. {
  1008. "type": "string",
  1009. "description": "姓名",
  1010. "name": "name",
  1011. "in": "formData"
  1012. },
  1013. {
  1014. "type": "string",
  1015. "description": "当前条",
  1016. "name": "start",
  1017. "in": "formData",
  1018. "required": true
  1019. },
  1020. {
  1021. "type": "string",
  1022. "description": "每页条数",
  1023. "name": "tableMax",
  1024. "in": "formData",
  1025. "required": true
  1026. }
  1027. ],
  1028. "responses": {
  1029. "200": {
  1030. "description": "OK",
  1031. "schema": {
  1032. "$ref": "#/definitions/controller.ShopUserInfo"
  1033. }
  1034. }
  1035. }
  1036. }
  1037. },
  1038. "/User/ShopCoachSimpleQuery": {
  1039. "post": {
  1040. "description": "本店会员用户基本信息查询",
  1041. "consumes": [
  1042. "application/x-www-form-urlencoded"
  1043. ],
  1044. "produces": [
  1045. "application/json"
  1046. ],
  1047. "tags": [
  1048. "User"
  1049. ],
  1050. "summary": "本店会员用户基本信息查询",
  1051. "parameters": [
  1052. {
  1053. "type": "string",
  1054. "description": "Token",
  1055. "name": "token",
  1056. "in": "formData",
  1057. "required": true
  1058. },
  1059. {
  1060. "type": "integer",
  1061. "description": "商家ID",
  1062. "name": "shopId",
  1063. "in": "formData"
  1064. }
  1065. ],
  1066. "responses": {
  1067. "200": {
  1068. "description": "OK",
  1069. "schema": {
  1070. "$ref": "#/definitions/controller.ShopCoachSimpleInfo"
  1071. }
  1072. }
  1073. }
  1074. }
  1075. },
  1076. "/User/ShopCoachStatusEdit": {
  1077. "post": {
  1078. "description": "商家教练状态修改",
  1079. "consumes": [
  1080. "application/x-www-form-urlencoded"
  1081. ],
  1082. "produces": [
  1083. "application/json"
  1084. ],
  1085. "tags": [
  1086. "User"
  1087. ],
  1088. "summary": "商家教练状态修改",
  1089. "parameters": [
  1090. {
  1091. "type": "string",
  1092. "description": "Token",
  1093. "name": "token",
  1094. "in": "formData",
  1095. "required": true
  1096. },
  1097. {
  1098. "type": "integer",
  1099. "description": "教练ID",
  1100. "name": "ssId",
  1101. "in": "formData",
  1102. "required": true
  1103. },
  1104. {
  1105. "type": "integer",
  1106. "description": "状态 1:启用\t 8:禁用 9:删除",
  1107. "name": "status",
  1108. "in": "formData",
  1109. "required": true
  1110. }
  1111. ],
  1112. "responses": {
  1113. "200": {
  1114. "description": "OK",
  1115. "schema": {
  1116. "$ref": "#/definitions/controller.ResponseBase"
  1117. }
  1118. }
  1119. }
  1120. }
  1121. },
  1122. "/User/ShopUserAdd": {
  1123. "post": {
  1124. "description": "会员用户添加",
  1125. "consumes": [
  1126. "application/x-www-form-urlencoded"
  1127. ],
  1128. "produces": [
  1129. "application/json"
  1130. ],
  1131. "tags": [
  1132. "User"
  1133. ],
  1134. "summary": "会员用户添加",
  1135. "parameters": [
  1136. {
  1137. "type": "string",
  1138. "description": "Token",
  1139. "name": "token",
  1140. "in": "formData",
  1141. "required": true
  1142. },
  1143. {
  1144. "type": "integer",
  1145. "description": "店铺ID",
  1146. "name": "shopId",
  1147. "in": "formData",
  1148. "required": true
  1149. },
  1150. {
  1151. "type": "string",
  1152. "description": "登陆用户名也是手机号",
  1153. "name": "phone",
  1154. "in": "formData",
  1155. "required": true
  1156. },
  1157. {
  1158. "type": "string",
  1159. "description": "姓名",
  1160. "name": "name",
  1161. "in": "formData",
  1162. "required": true
  1163. },
  1164. {
  1165. "type": "integer",
  1166. "description": "性别 1:男, 2:女",
  1167. "name": "sex",
  1168. "in": "formData",
  1169. "required": true
  1170. },
  1171. {
  1172. "type": "string",
  1173. "description": "生日",
  1174. "name": "birthday",
  1175. "in": "formData",
  1176. "required": true
  1177. },
  1178. {
  1179. "type": "integer",
  1180. "description": "身高",
  1181. "name": "height",
  1182. "in": "formData",
  1183. "required": true
  1184. },
  1185. {
  1186. "type": "string",
  1187. "description": "体重 ",
  1188. "name": "weight",
  1189. "in": "formData",
  1190. "required": true
  1191. },
  1192. {
  1193. "type": "integer",
  1194. "description": "静态心率",
  1195. "name": "staticHr",
  1196. "in": "formData"
  1197. },
  1198. {
  1199. "type": "string",
  1200. "description": "头像",
  1201. "name": "head",
  1202. "in": "formData"
  1203. },
  1204. {
  1205. "type": "string",
  1206. "description": "备注",
  1207. "name": "memo",
  1208. "in": "formData"
  1209. }
  1210. ],
  1211. "responses": {
  1212. "200": {
  1213. "description": "OK",
  1214. "schema": {
  1215. "$ref": "#/definitions/controller.ResponseBase"
  1216. }
  1217. }
  1218. }
  1219. }
  1220. },
  1221. "/User/ShopUserEdit": {
  1222. "post": {
  1223. "description": "会员用户基本信息修改",
  1224. "consumes": [
  1225. "application/x-www-form-urlencoded"
  1226. ],
  1227. "produces": [
  1228. "application/json"
  1229. ],
  1230. "tags": [
  1231. "User"
  1232. ],
  1233. "summary": "会员用户基本信息修改",
  1234. "parameters": [
  1235. {
  1236. "type": "string",
  1237. "description": "Token",
  1238. "name": "token",
  1239. "in": "formData",
  1240. "required": true
  1241. },
  1242. {
  1243. "type": "integer",
  1244. "description": "用户Id",
  1245. "name": "userId",
  1246. "in": "formData",
  1247. "required": true
  1248. },
  1249. {
  1250. "type": "string",
  1251. "description": "手机号",
  1252. "name": "phone",
  1253. "in": "formData"
  1254. },
  1255. {
  1256. "type": "string",
  1257. "description": "姓名",
  1258. "name": "name",
  1259. "in": "formData"
  1260. },
  1261. {
  1262. "type": "string",
  1263. "description": "备注",
  1264. "name": "memo",
  1265. "in": "formData"
  1266. },
  1267. {
  1268. "type": "string",
  1269. "description": "生日",
  1270. "name": "birthday",
  1271. "in": "formData",
  1272. "required": true
  1273. },
  1274. {
  1275. "type": "integer",
  1276. "description": "身高",
  1277. "name": "height",
  1278. "in": "formData",
  1279. "required": true
  1280. },
  1281. {
  1282. "type": "string",
  1283. "description": "体重",
  1284. "name": "weight",
  1285. "in": "formData",
  1286. "required": true
  1287. },
  1288. {
  1289. "type": "integer",
  1290. "description": "性别 1:男, 2:女",
  1291. "name": "sex",
  1292. "in": "formData",
  1293. "required": true
  1294. },
  1295. {
  1296. "type": "integer",
  1297. "description": "静态心率",
  1298. "name": "staticHr",
  1299. "in": "formData"
  1300. },
  1301. {
  1302. "type": "string",
  1303. "description": "头像URL",
  1304. "name": "head",
  1305. "in": "formData"
  1306. }
  1307. ],
  1308. "responses": {
  1309. "200": {
  1310. "description": "OK",
  1311. "schema": {
  1312. "$ref": "#/definitions/controller.ResponseBase"
  1313. }
  1314. }
  1315. }
  1316. }
  1317. },
  1318. "/User/ShopUserListQuery": {
  1319. "post": {
  1320. "description": "会员用户列表(带分页)",
  1321. "consumes": [
  1322. "application/x-www-form-urlencoded"
  1323. ],
  1324. "produces": [
  1325. "application/json"
  1326. ],
  1327. "tags": [
  1328. "User"
  1329. ],
  1330. "summary": "会员用户列表(带分页)",
  1331. "parameters": [
  1332. {
  1333. "type": "string",
  1334. "description": "Token",
  1335. "name": "token",
  1336. "in": "formData",
  1337. "required": true
  1338. },
  1339. {
  1340. "type": "string",
  1341. "description": "手机号",
  1342. "name": "phone",
  1343. "in": "formData"
  1344. },
  1345. {
  1346. "type": "string",
  1347. "description": "姓名",
  1348. "name": "name",
  1349. "in": "formData"
  1350. },
  1351. {
  1352. "type": "string",
  1353. "description": "当前条",
  1354. "name": "start",
  1355. "in": "formData",
  1356. "required": true
  1357. },
  1358. {
  1359. "type": "string",
  1360. "description": "每页条数",
  1361. "name": "tableMax",
  1362. "in": "formData",
  1363. "required": true
  1364. }
  1365. ],
  1366. "responses": {
  1367. "200": {
  1368. "description": "OK",
  1369. "schema": {
  1370. "$ref": "#/definitions/controller.ShopUserInfo"
  1371. }
  1372. }
  1373. }
  1374. }
  1375. },
  1376. "/User/ShopUserSimpleQuery": {
  1377. "post": {
  1378. "description": "本店会员用户基本信息查询",
  1379. "consumes": [
  1380. "application/x-www-form-urlencoded"
  1381. ],
  1382. "produces": [
  1383. "application/json"
  1384. ],
  1385. "tags": [
  1386. "User"
  1387. ],
  1388. "summary": "本店会员用户基本信息查询",
  1389. "parameters": [
  1390. {
  1391. "type": "string",
  1392. "description": "Token",
  1393. "name": "token",
  1394. "in": "formData",
  1395. "required": true
  1396. },
  1397. {
  1398. "type": "integer",
  1399. "description": "商家ID",
  1400. "name": "shopId",
  1401. "in": "formData"
  1402. }
  1403. ],
  1404. "responses": {
  1405. "200": {
  1406. "description": "OK",
  1407. "schema": {
  1408. "$ref": "#/definitions/controller.ShopUserSimpleInfo"
  1409. }
  1410. }
  1411. }
  1412. }
  1413. },
  1414. "/User/ShopUserStatusEdit": {
  1415. "post": {
  1416. "description": "会员用户状态修改",
  1417. "consumes": [
  1418. "application/x-www-form-urlencoded"
  1419. ],
  1420. "produces": [
  1421. "application/json"
  1422. ],
  1423. "tags": [
  1424. "User"
  1425. ],
  1426. "summary": "会员用户状态修改",
  1427. "parameters": [
  1428. {
  1429. "type": "string",
  1430. "description": "Token",
  1431. "name": "token",
  1432. "in": "formData",
  1433. "required": true
  1434. },
  1435. {
  1436. "type": "integer",
  1437. "description": "用户ID",
  1438. "name": "userId",
  1439. "in": "formData",
  1440. "required": true
  1441. },
  1442. {
  1443. "type": "integer",
  1444. "description": "状态 1:启用\t 8:禁用 9:删除",
  1445. "name": "status",
  1446. "in": "formData",
  1447. "required": true
  1448. }
  1449. ],
  1450. "responses": {
  1451. "200": {
  1452. "description": "OK",
  1453. "schema": {
  1454. "$ref": "#/definitions/controller.ResponseBase"
  1455. }
  1456. }
  1457. }
  1458. }
  1459. }
  1460. },
  1461. "definitions": {
  1462. "controller.ResponseBase": {
  1463. "type": "object",
  1464. "properties": {
  1465. "code": {
  1466. "type": "integer"
  1467. },
  1468. "memo": {
  1469. "type": "string"
  1470. }
  1471. }
  1472. },
  1473. "controller.ResponseVerifyPic": {
  1474. "type": "object",
  1475. "properties": {
  1476. "id": {
  1477. "type": "string"
  1478. },
  1479. "pic": {
  1480. "type": "string"
  1481. }
  1482. }
  1483. },
  1484. "controller.ShopCoachSimpleInfo": {
  1485. "type": "object",
  1486. "properties": {
  1487. "code": {
  1488. "type": "integer"
  1489. },
  1490. "memo": {
  1491. "type": "string"
  1492. },
  1493. "rs": {
  1494. "type": "string"
  1495. }
  1496. }
  1497. },
  1498. "controller.ShopUserInfo": {
  1499. "type": "object",
  1500. "properties": {
  1501. "code": {
  1502. "type": "integer"
  1503. },
  1504. "memo": {
  1505. "type": "string"
  1506. },
  1507. "pageCount": {
  1508. "type": "integer"
  1509. },
  1510. "rs": {
  1511. "type": "string"
  1512. }
  1513. }
  1514. },
  1515. "controller.ShopUserSimpleInfo": {
  1516. "type": "object",
  1517. "properties": {
  1518. "code": {
  1519. "type": "integer"
  1520. },
  1521. "memo": {
  1522. "type": "string"
  1523. },
  1524. "rs": {
  1525. "type": "string"
  1526. }
  1527. }
  1528. },
  1529. "controller.UserList": {
  1530. "type": "object",
  1531. "properties": {
  1532. "code": {
  1533. "type": "integer"
  1534. },
  1535. "memo": {
  1536. "type": "string"
  1537. },
  1538. "rs": {
  1539. "type": "array",
  1540. "items": {
  1541. "type": "object"
  1542. }
  1543. }
  1544. }
  1545. }
  1546. },
  1547. "securityDefinitions": {
  1548. "ApiKeyAuth": {
  1549. "type": "apiKey",
  1550. "name": "Authorization",
  1551. "in": "header"
  1552. },
  1553. "BasicAuth": {
  1554. "type": "basic"
  1555. },
  1556. "OAuth2AccessCode": {
  1557. "type": "oauth2",
  1558. "flow": "accessCode",
  1559. "authorizationUrl": "https://example.com/oauth/authorize",
  1560. "tokenUrl": "https://example.com/oauth/token",
  1561. "scopes": {
  1562. "admin": " Grants read and write access to administrative information"
  1563. }
  1564. },
  1565. "OAuth2Application": {
  1566. "type": "oauth2",
  1567. "flow": "application",
  1568. "tokenUrl": "https://example.com/oauth/token",
  1569. "scopes": {
  1570. "admin": " Grants read and write access to administrative information",
  1571. "write": " Grants write access"
  1572. }
  1573. },
  1574. "OAuth2Implicit": {
  1575. "type": "oauth2",
  1576. "flow": "implicit",
  1577. "authorizationUrl": "https://example.com/oauth/authorize",
  1578. "scopes": {
  1579. "admin": " Grants read and write access to administrative information",
  1580. "write": " Grants write access"
  1581. }
  1582. },
  1583. "OAuth2Password": {
  1584. "type": "oauth2",
  1585. "flow": "password",
  1586. "tokenUrl": "https://example.com/oauth/token",
  1587. "scopes": {
  1588. "admin": " Grants read and write access to administrative information",
  1589. "read": " Grants read access",
  1590. "write": " Grants write access"
  1591. }
  1592. }
  1593. }
  1594. }`
  1595. type swaggerInfo struct {
  1596. Version string
  1597. Host string
  1598. BasePath string
  1599. Schemes []string
  1600. Title string
  1601. Description string
  1602. }
  1603. // SwaggerInfo holds exported Swagger Info so clients can modify it
  1604. var SwaggerInfo = swaggerInfo{
  1605. Version: "1.0",
  1606. Host: "",
  1607. BasePath: "/v1",
  1608. Schemes: []string{},
  1609. Title: "Video Course框架",
  1610. Description: "Video Course框架 API 文档",
  1611. }
  1612. type s struct{}
  1613. func (s *s) ReadDoc() string {
  1614. sInfo := SwaggerInfo
  1615. sInfo.Description = strings.Replace(sInfo.Description, "\n", "\\n", -1)
  1616. t, err := template.New("swagger_info").Funcs(template.FuncMap{
  1617. "marshal": func(v interface{}) string {
  1618. a, _ := json.Marshal(v)
  1619. return string(a)
  1620. },
  1621. }).Parse(doc)
  1622. if err != nil {
  1623. return doc
  1624. }
  1625. var tpl bytes.Buffer
  1626. if err := t.Execute(&tpl, sInfo); err != nil {
  1627. return doc
  1628. }
  1629. return tpl.String()
  1630. }
  1631. func init() {
  1632. swag.Register(swag.Name, &s{})
  1633. }