swagger.json 49 KB

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