swagger.json 55 KB

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