swagger.json 54 KB

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