swagger.yaml 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227
  1. basePath: /v1
  2. definitions:
  3. controller.ResponseBase:
  4. properties:
  5. code:
  6. type: integer
  7. memo:
  8. type: string
  9. type: object
  10. controller.ResponseVerifyPic:
  11. properties:
  12. id:
  13. type: string
  14. pic:
  15. type: string
  16. type: object
  17. info:
  18. contact:
  19. email: support@swagger.io
  20. name: API Support
  21. url: http://www.swagger.io/support
  22. description: Video Course框架 API 文档
  23. license:
  24. name: Apache 2.0
  25. url: http://www.apache.org/licenses/LICENSE-2.0.html
  26. termsOfService: http://swagger.io/terms/
  27. title: Video Course框架
  28. version: "1.0"
  29. paths:
  30. /Auth/GenVerifyPic:
  31. post:
  32. consumes:
  33. - application/x-www-form-urlencoded
  34. description: 获取验证图片和验证id
  35. parameters:
  36. - description: 高
  37. in: formData
  38. name: height
  39. required: true
  40. type: string
  41. - description: 宽
  42. in: formData
  43. name: width
  44. required: true
  45. type: string
  46. - description: 噪点数量
  47. in: formData
  48. name: noiseCount
  49. required: true
  50. type: string
  51. - description: 验证码字数
  52. in: formData
  53. name: length
  54. required: true
  55. type: string
  56. - description: 验证码取值范围 比如 1234567890 或者 abcdef等
  57. in: formData
  58. name: source
  59. required: true
  60. type: string
  61. produces:
  62. - application/json
  63. responses:
  64. "200":
  65. description: OK
  66. schema:
  67. $ref: '#/definitions/controller.ResponseVerifyPic'
  68. summary: 获取验证图片
  69. tags:
  70. - Auth
  71. /Auth/GetPhoneVFCode:
  72. post:
  73. consumes:
  74. - application/x-www-form-urlencoded
  75. description: 手机获取验证码
  76. parameters:
  77. - description: 手机号
  78. in: formData
  79. name: phone
  80. required: true
  81. type: string
  82. - description: 验证码类型 1:登录
  83. in: formData
  84. name: codeType
  85. required: true
  86. type: integer
  87. produces:
  88. - application/json
  89. responses:
  90. "200":
  91. description: OK
  92. schema:
  93. $ref: '#/definitions/controller.ResponseBase'
  94. summary: 手机获取验证码
  95. tags:
  96. - Auth
  97. /Auth/PhoneSignIn:
  98. post:
  99. consumes:
  100. - application/x-www-form-urlencoded
  101. description: 手机验证码登录
  102. parameters:
  103. - description: 手机号
  104. in: formData
  105. name: phone
  106. required: true
  107. type: string
  108. - description: 验证码
  109. in: formData
  110. name: smsCode
  111. required: true
  112. type: integer
  113. produces:
  114. - application/json
  115. responses:
  116. "200":
  117. description: OK
  118. schema:
  119. $ref: '#/definitions/controller.ResponseBase'
  120. summary: 手机验证码登录
  121. tags:
  122. - Auth
  123. /HrSensors/HrSensorsUpdate:
  124. post:
  125. consumes:
  126. - application/x-www-form-urlencoded
  127. description: 心率带信息查询和更新
  128. parameters:
  129. - description: Token
  130. in: formData
  131. name: token
  132. required: true
  133. type: string
  134. - description: 心率带编号
  135. in: formData
  136. name: sn
  137. required: true
  138. type: string
  139. produces:
  140. - application/json
  141. responses:
  142. "200":
  143. description: OK
  144. schema:
  145. $ref: '#/definitions/controller.ResponseBase'
  146. summary: 心率带信息查询和更新
  147. tags:
  148. - HrSensors
  149. /User/GetDuInfoAndUserInfoByUserMd5:
  150. post:
  151. consumes:
  152. - application/x-www-form-urlencoded
  153. description: 查询用户当前显示单元和对应身体信息
  154. parameters:
  155. - description: Token
  156. in: formData
  157. name: token
  158. required: true
  159. type: string
  160. produces:
  161. - application/json
  162. responses:
  163. "200":
  164. description: OK
  165. schema:
  166. $ref: '#/definitions/controller.ResponseBase'
  167. summary: 查询用户是否正在上课接口
  168. tags:
  169. - User
  170. /User/UserSelfQuery:
  171. post:
  172. consumes:
  173. - application/x-www-form-urlencoded
  174. description: 会员自身信息查询
  175. parameters:
  176. - description: Token
  177. in: formData
  178. name: token
  179. required: true
  180. type: string
  181. produces:
  182. - application/json
  183. responses:
  184. "200":
  185. description: OK
  186. schema:
  187. $ref: '#/definitions/controller.ResponseBase'
  188. summary: 会员自身信息查询
  189. tags:
  190. - User
  191. securityDefinitions:
  192. ApiKeyAuth:
  193. in: header
  194. name: Authorization
  195. type: apiKey
  196. BasicAuth:
  197. type: basic
  198. OAuth2AccessCode:
  199. authorizationUrl: https://example.com/oauth/authorize
  200. flow: accessCode
  201. scopes:
  202. admin: ' Grants read and write access to administrative information'
  203. tokenUrl: https://example.com/oauth/token
  204. type: oauth2
  205. OAuth2Application:
  206. flow: application
  207. scopes:
  208. admin: ' Grants read and write access to administrative information'
  209. write: ' Grants write access'
  210. tokenUrl: https://example.com/oauth/token
  211. type: oauth2
  212. OAuth2Implicit:
  213. authorizationUrl: https://example.com/oauth/authorize
  214. flow: implicit
  215. scopes:
  216. admin: ' Grants read and write access to administrative information'
  217. write: ' Grants write access'
  218. type: oauth2
  219. OAuth2Password:
  220. flow: password
  221. scopes:
  222. admin: ' Grants read and write access to administrative information'
  223. read: ' Grants read access'
  224. write: ' Grants write access'
  225. tokenUrl: https://example.com/oauth/token
  226. type: oauth2
  227. swagger: "2.0"