swagger.json 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943
  1. {
  2. "swagger": "2.0",
  3. "info": {
  4. "description": "web框架 API 文档",
  5. "title": "web框架",
  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. "/Test/UserAdd": {
  183. "post": {
  184. "description": "会员用户添加",
  185. "consumes": [
  186. "application/x-www-form-urlencoded"
  187. ],
  188. "produces": [
  189. "application/json"
  190. ],
  191. "tags": [
  192. "Test"
  193. ],
  194. "summary": "会员用户添加",
  195. "parameters": [
  196. {
  197. "type": "string",
  198. "description": "姓名",
  199. "name": "name",
  200. "in": "formData",
  201. "required": true
  202. }
  203. ],
  204. "responses": {
  205. "200": {
  206. "description": "OK",
  207. "schema": {
  208. "$ref": "#/definitions/controller.ResponseBase"
  209. }
  210. }
  211. }
  212. }
  213. },
  214. "/User/ShopCoachAdd": {
  215. "post": {
  216. "description": "商家教练添加",
  217. "consumes": [
  218. "application/x-www-form-urlencoded"
  219. ],
  220. "produces": [
  221. "application/json"
  222. ],
  223. "tags": [
  224. "User"
  225. ],
  226. "summary": "商家教练添加",
  227. "parameters": [
  228. {
  229. "type": "string",
  230. "description": "Token",
  231. "name": "token",
  232. "in": "formData",
  233. "required": true
  234. },
  235. {
  236. "type": "integer",
  237. "description": "店铺ID",
  238. "name": "shopId",
  239. "in": "formData",
  240. "required": true
  241. },
  242. {
  243. "type": "string",
  244. "description": "登陆用户名也是手机号",
  245. "name": "phone",
  246. "in": "formData",
  247. "required": true
  248. },
  249. {
  250. "type": "string",
  251. "description": "姓名",
  252. "name": "name",
  253. "in": "formData",
  254. "required": true
  255. },
  256. {
  257. "type": "string",
  258. "description": "密码",
  259. "name": "pwd",
  260. "in": "formData",
  261. "required": true
  262. },
  263. {
  264. "type": "integer",
  265. "description": "性别 1:男, 2:女",
  266. "name": "sex",
  267. "in": "formData",
  268. "required": true
  269. },
  270. {
  271. "type": "string",
  272. "description": "备注",
  273. "name": "memo",
  274. "in": "formData"
  275. }
  276. ],
  277. "responses": {
  278. "200": {
  279. "description": "OK",
  280. "schema": {
  281. "$ref": "#/definitions/controller.ResponseBase"
  282. }
  283. }
  284. }
  285. }
  286. },
  287. "/User/ShopCoachEdit": {
  288. "post": {
  289. "description": "商家教练基本信息修改",
  290. "consumes": [
  291. "application/x-www-form-urlencoded"
  292. ],
  293. "produces": [
  294. "application/json"
  295. ],
  296. "tags": [
  297. "User"
  298. ],
  299. "summary": "商家教练基本信息修改",
  300. "parameters": [
  301. {
  302. "type": "string",
  303. "description": "Token",
  304. "name": "token",
  305. "in": "formData",
  306. "required": true
  307. },
  308. {
  309. "type": "integer",
  310. "description": "教练ID",
  311. "name": "ssId",
  312. "in": "formData",
  313. "required": true
  314. },
  315. {
  316. "type": "string",
  317. "description": "手机号",
  318. "name": "phone",
  319. "in": "formData"
  320. },
  321. {
  322. "type": "string",
  323. "description": "密码",
  324. "name": "pwd",
  325. "in": "formData"
  326. },
  327. {
  328. "type": "string",
  329. "description": "姓名",
  330. "name": "name",
  331. "in": "formData"
  332. },
  333. {
  334. "type": "string",
  335. "description": "备注",
  336. "name": "memo",
  337. "in": "formData"
  338. },
  339. {
  340. "type": "integer",
  341. "description": "性别 1:男, 2:女",
  342. "name": "sex",
  343. "in": "formData",
  344. "required": true
  345. }
  346. ],
  347. "responses": {
  348. "200": {
  349. "description": "OK",
  350. "schema": {
  351. "$ref": "#/definitions/controller.ResponseBase"
  352. }
  353. }
  354. }
  355. }
  356. },
  357. "/User/ShopCoachListQuery": {
  358. "post": {
  359. "description": "会员用户列表(带分页)",
  360. "consumes": [
  361. "application/x-www-form-urlencoded"
  362. ],
  363. "produces": [
  364. "application/json"
  365. ],
  366. "tags": [
  367. "User"
  368. ],
  369. "summary": "会员用户列表(带分页)",
  370. "parameters": [
  371. {
  372. "type": "string",
  373. "description": "Token",
  374. "name": "token",
  375. "in": "formData",
  376. "required": true
  377. },
  378. {
  379. "type": "string",
  380. "description": "手机号",
  381. "name": "phone",
  382. "in": "formData"
  383. },
  384. {
  385. "type": "string",
  386. "description": "姓名",
  387. "name": "name",
  388. "in": "formData"
  389. },
  390. {
  391. "type": "string",
  392. "description": "当前条",
  393. "name": "start",
  394. "in": "formData",
  395. "required": true
  396. },
  397. {
  398. "type": "string",
  399. "description": "每页条数",
  400. "name": "tableMax",
  401. "in": "formData",
  402. "required": true
  403. }
  404. ],
  405. "responses": {
  406. "200": {
  407. "description": "OK",
  408. "schema": {
  409. "$ref": "#/definitions/controller.ShopUserInfo"
  410. }
  411. }
  412. }
  413. }
  414. },
  415. "/User/ShopCoachSimpleQuery": {
  416. "post": {
  417. "description": "本店会员用户基本信息查询",
  418. "consumes": [
  419. "application/x-www-form-urlencoded"
  420. ],
  421. "produces": [
  422. "application/json"
  423. ],
  424. "tags": [
  425. "User"
  426. ],
  427. "summary": "本店会员用户基本信息查询",
  428. "parameters": [
  429. {
  430. "type": "string",
  431. "description": "Token",
  432. "name": "token",
  433. "in": "formData",
  434. "required": true
  435. },
  436. {
  437. "type": "integer",
  438. "description": "商家ID",
  439. "name": "shopId",
  440. "in": "formData"
  441. }
  442. ],
  443. "responses": {
  444. "200": {
  445. "description": "OK",
  446. "schema": {
  447. "$ref": "#/definitions/controller.ShopCoachSimpleInfo"
  448. }
  449. }
  450. }
  451. }
  452. },
  453. "/User/ShopCoachStatusEdit": {
  454. "post": {
  455. "description": "商家教练状态修改",
  456. "consumes": [
  457. "application/x-www-form-urlencoded"
  458. ],
  459. "produces": [
  460. "application/json"
  461. ],
  462. "tags": [
  463. "User"
  464. ],
  465. "summary": "商家教练状态修改",
  466. "parameters": [
  467. {
  468. "type": "string",
  469. "description": "Token",
  470. "name": "token",
  471. "in": "formData",
  472. "required": true
  473. },
  474. {
  475. "type": "integer",
  476. "description": "教练ID",
  477. "name": "ssId",
  478. "in": "formData",
  479. "required": true
  480. },
  481. {
  482. "type": "integer",
  483. "description": "状态 1:启用\t 8:禁用 9:删除",
  484. "name": "status",
  485. "in": "formData",
  486. "required": true
  487. }
  488. ],
  489. "responses": {
  490. "200": {
  491. "description": "OK",
  492. "schema": {
  493. "$ref": "#/definitions/controller.ResponseBase"
  494. }
  495. }
  496. }
  497. }
  498. },
  499. "/User/ShopUserAdd": {
  500. "post": {
  501. "description": "会员用户添加",
  502. "consumes": [
  503. "application/x-www-form-urlencoded"
  504. ],
  505. "produces": [
  506. "application/json"
  507. ],
  508. "tags": [
  509. "User"
  510. ],
  511. "summary": "会员用户添加",
  512. "parameters": [
  513. {
  514. "type": "string",
  515. "description": "Token",
  516. "name": "token",
  517. "in": "formData",
  518. "required": true
  519. },
  520. {
  521. "type": "integer",
  522. "description": "店铺ID",
  523. "name": "shopId",
  524. "in": "formData",
  525. "required": true
  526. },
  527. {
  528. "type": "string",
  529. "description": "登陆用户名也是手机号",
  530. "name": "phone",
  531. "in": "formData",
  532. "required": true
  533. },
  534. {
  535. "type": "string",
  536. "description": "姓名",
  537. "name": "name",
  538. "in": "formData",
  539. "required": true
  540. },
  541. {
  542. "type": "integer",
  543. "description": "性别 1:男, 2:女",
  544. "name": "sex",
  545. "in": "formData",
  546. "required": true
  547. },
  548. {
  549. "type": "string",
  550. "description": "生日",
  551. "name": "birthday",
  552. "in": "formData",
  553. "required": true
  554. },
  555. {
  556. "type": "integer",
  557. "description": "身高",
  558. "name": "height",
  559. "in": "formData",
  560. "required": true
  561. },
  562. {
  563. "type": "string",
  564. "description": "体重 ",
  565. "name": "weight",
  566. "in": "formData",
  567. "required": true
  568. },
  569. {
  570. "type": "integer",
  571. "description": "静态心率",
  572. "name": "staticHr",
  573. "in": "formData"
  574. },
  575. {
  576. "type": "string",
  577. "description": "头像",
  578. "name": "head",
  579. "in": "formData"
  580. },
  581. {
  582. "type": "string",
  583. "description": "备注",
  584. "name": "memo",
  585. "in": "formData"
  586. }
  587. ],
  588. "responses": {
  589. "200": {
  590. "description": "OK",
  591. "schema": {
  592. "$ref": "#/definitions/controller.ResponseBase"
  593. }
  594. }
  595. }
  596. }
  597. },
  598. "/User/ShopUserEdit": {
  599. "post": {
  600. "description": "会员用户基本信息修改",
  601. "consumes": [
  602. "application/x-www-form-urlencoded"
  603. ],
  604. "produces": [
  605. "application/json"
  606. ],
  607. "tags": [
  608. "User"
  609. ],
  610. "summary": "会员用户基本信息修改",
  611. "parameters": [
  612. {
  613. "type": "string",
  614. "description": "Token",
  615. "name": "token",
  616. "in": "formData",
  617. "required": true
  618. },
  619. {
  620. "type": "integer",
  621. "description": "用户Id",
  622. "name": "userId",
  623. "in": "formData",
  624. "required": true
  625. },
  626. {
  627. "type": "string",
  628. "description": "手机号",
  629. "name": "phone",
  630. "in": "formData"
  631. },
  632. {
  633. "type": "string",
  634. "description": "姓名",
  635. "name": "name",
  636. "in": "formData"
  637. },
  638. {
  639. "type": "string",
  640. "description": "备注",
  641. "name": "memo",
  642. "in": "formData"
  643. },
  644. {
  645. "type": "string",
  646. "description": "生日",
  647. "name": "birthday",
  648. "in": "formData",
  649. "required": true
  650. },
  651. {
  652. "type": "integer",
  653. "description": "身高",
  654. "name": "height",
  655. "in": "formData",
  656. "required": true
  657. },
  658. {
  659. "type": "string",
  660. "description": "体重",
  661. "name": "weight",
  662. "in": "formData",
  663. "required": true
  664. },
  665. {
  666. "type": "integer",
  667. "description": "性别 1:男, 2:女",
  668. "name": "sex",
  669. "in": "formData",
  670. "required": true
  671. },
  672. {
  673. "type": "integer",
  674. "description": "静态心率",
  675. "name": "staticHr",
  676. "in": "formData"
  677. },
  678. {
  679. "type": "string",
  680. "description": "头像URL",
  681. "name": "head",
  682. "in": "formData"
  683. }
  684. ],
  685. "responses": {
  686. "200": {
  687. "description": "OK",
  688. "schema": {
  689. "$ref": "#/definitions/controller.ResponseBase"
  690. }
  691. }
  692. }
  693. }
  694. },
  695. "/User/ShopUserListQuery": {
  696. "post": {
  697. "description": "会员用户列表(带分页)",
  698. "consumes": [
  699. "application/x-www-form-urlencoded"
  700. ],
  701. "produces": [
  702. "application/json"
  703. ],
  704. "tags": [
  705. "User"
  706. ],
  707. "summary": "会员用户列表(带分页)",
  708. "parameters": [
  709. {
  710. "type": "string",
  711. "description": "Token",
  712. "name": "token",
  713. "in": "formData",
  714. "required": true
  715. },
  716. {
  717. "type": "string",
  718. "description": "手机号",
  719. "name": "phone",
  720. "in": "formData"
  721. },
  722. {
  723. "type": "string",
  724. "description": "姓名",
  725. "name": "name",
  726. "in": "formData"
  727. },
  728. {
  729. "type": "string",
  730. "description": "当前条",
  731. "name": "start",
  732. "in": "formData",
  733. "required": true
  734. },
  735. {
  736. "type": "string",
  737. "description": "每页条数",
  738. "name": "tableMax",
  739. "in": "formData",
  740. "required": true
  741. }
  742. ],
  743. "responses": {
  744. "200": {
  745. "description": "OK",
  746. "schema": {
  747. "$ref": "#/definitions/controller.ShopUserInfo"
  748. }
  749. }
  750. }
  751. }
  752. },
  753. "/User/ShopUserSimpleQuery": {
  754. "post": {
  755. "description": "本店会员用户基本信息查询",
  756. "consumes": [
  757. "application/x-www-form-urlencoded"
  758. ],
  759. "produces": [
  760. "application/json"
  761. ],
  762. "tags": [
  763. "User"
  764. ],
  765. "summary": "本店会员用户基本信息查询",
  766. "parameters": [
  767. {
  768. "type": "string",
  769. "description": "Token",
  770. "name": "token",
  771. "in": "formData",
  772. "required": true
  773. },
  774. {
  775. "type": "integer",
  776. "description": "商家ID",
  777. "name": "shopId",
  778. "in": "formData"
  779. }
  780. ],
  781. "responses": {
  782. "200": {
  783. "description": "OK",
  784. "schema": {
  785. "$ref": "#/definitions/controller.ShopUserSimpleInfo"
  786. }
  787. }
  788. }
  789. }
  790. },
  791. "/User/ShopUserStatusEdit": {
  792. "post": {
  793. "description": "会员用户状态修改",
  794. "consumes": [
  795. "application/x-www-form-urlencoded"
  796. ],
  797. "produces": [
  798. "application/json"
  799. ],
  800. "tags": [
  801. "User"
  802. ],
  803. "summary": "会员用户状态修改",
  804. "parameters": [
  805. {
  806. "type": "string",
  807. "description": "Token",
  808. "name": "token",
  809. "in": "formData",
  810. "required": true
  811. },
  812. {
  813. "type": "integer",
  814. "description": "用户ID",
  815. "name": "userId",
  816. "in": "formData",
  817. "required": true
  818. },
  819. {
  820. "type": "integer",
  821. "description": "状态 1:启用\t 8:禁用 9:删除",
  822. "name": "status",
  823. "in": "formData",
  824. "required": true
  825. }
  826. ],
  827. "responses": {
  828. "200": {
  829. "description": "OK",
  830. "schema": {
  831. "$ref": "#/definitions/controller.ResponseBase"
  832. }
  833. }
  834. }
  835. }
  836. }
  837. },
  838. "definitions": {
  839. "controller.ResponseBase": {
  840. "type": "object",
  841. "properties": {
  842. "code": {
  843. "type": "integer"
  844. },
  845. "memo": {
  846. "type": "string"
  847. }
  848. }
  849. },
  850. "controller.ShopCoachSimpleInfo": {
  851. "type": "object",
  852. "properties": {
  853. "code": {
  854. "type": "integer"
  855. },
  856. "memo": {
  857. "type": "string"
  858. },
  859. "rs": {
  860. "type": "string"
  861. }
  862. }
  863. },
  864. "controller.ShopUserInfo": {
  865. "type": "object",
  866. "properties": {
  867. "code": {
  868. "type": "integer"
  869. },
  870. "memo": {
  871. "type": "string"
  872. },
  873. "pageCount": {
  874. "type": "integer"
  875. },
  876. "rs": {
  877. "type": "string"
  878. }
  879. }
  880. },
  881. "controller.ShopUserSimpleInfo": {
  882. "type": "object",
  883. "properties": {
  884. "code": {
  885. "type": "integer"
  886. },
  887. "memo": {
  888. "type": "string"
  889. },
  890. "rs": {
  891. "type": "string"
  892. }
  893. }
  894. }
  895. },
  896. "securityDefinitions": {
  897. "ApiKeyAuth": {
  898. "type": "apiKey",
  899. "name": "Authorization",
  900. "in": "header"
  901. },
  902. "BasicAuth": {
  903. "type": "basic"
  904. },
  905. "OAuth2AccessCode": {
  906. "type": "oauth2",
  907. "flow": "accessCode",
  908. "authorizationUrl": "https://example.com/oauth/authorize",
  909. "tokenUrl": "https://example.com/oauth/token",
  910. "scopes": {
  911. "admin": " Grants read and write access to administrative information"
  912. }
  913. },
  914. "OAuth2Application": {
  915. "type": "oauth2",
  916. "flow": "application",
  917. "tokenUrl": "https://example.com/oauth/token",
  918. "scopes": {
  919. "admin": " Grants read and write access to administrative information",
  920. "write": " Grants write access"
  921. }
  922. },
  923. "OAuth2Implicit": {
  924. "type": "oauth2",
  925. "flow": "implicit",
  926. "authorizationUrl": "https://example.com/oauth/authorize",
  927. "scopes": {
  928. "admin": " Grants read and write access to administrative information",
  929. "write": " Grants write access"
  930. }
  931. },
  932. "OAuth2Password": {
  933. "type": "oauth2",
  934. "flow": "password",
  935. "tokenUrl": "https://example.com/oauth/token",
  936. "scopes": {
  937. "admin": " Grants read and write access to administrative information",
  938. "read": " Grants read access",
  939. "write": " Grants write access"
  940. }
  941. }
  942. }
  943. }