docs.go 51 KB

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