swagger.yaml 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231
  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: picCode
  80. type: string
  81. - description: 手机号
  82. in: formData
  83. name: phone
  84. required: true
  85. type: string
  86. - description: 验证码类型 1:登录
  87. in: formData
  88. name: codeType
  89. required: true
  90. type: integer
  91. produces:
  92. - application/json
  93. responses:
  94. "200":
  95. description: OK
  96. schema:
  97. $ref: '#/definitions/controller.ResponseBase'
  98. summary: 手机获取验证码
  99. tags:
  100. - Auth
  101. /Auth/PhoneSignIn:
  102. post:
  103. consumes:
  104. - application/x-www-form-urlencoded
  105. description: 手机验证码登录
  106. parameters:
  107. - description: 手机号
  108. in: formData
  109. name: phone
  110. required: true
  111. type: string
  112. - description: 验证码
  113. in: formData
  114. name: smsCode
  115. required: true
  116. type: integer
  117. produces:
  118. - application/json
  119. responses:
  120. "200":
  121. description: OK
  122. schema:
  123. $ref: '#/definitions/controller.ResponseBase'
  124. summary: 手机验证码登录
  125. tags:
  126. - Auth
  127. /HrSensors/HrSensorsUpdate:
  128. post:
  129. consumes:
  130. - application/x-www-form-urlencoded
  131. description: 心率带信息查询和更新
  132. parameters:
  133. - description: Token
  134. in: formData
  135. name: token
  136. required: true
  137. type: string
  138. - description: 心率带编号
  139. in: formData
  140. name: sn
  141. required: true
  142. type: string
  143. produces:
  144. - application/json
  145. responses:
  146. "200":
  147. description: OK
  148. schema:
  149. $ref: '#/definitions/controller.ResponseBase'
  150. summary: 心率带信息查询和更新
  151. tags:
  152. - HrSensors
  153. /User/GetDuInfoAndUserInfoByUserMd5:
  154. post:
  155. consumes:
  156. - application/x-www-form-urlencoded
  157. description: 查询用户当前显示单元和对应身体信息
  158. parameters:
  159. - description: Token
  160. in: formData
  161. name: token
  162. required: true
  163. type: string
  164. produces:
  165. - application/json
  166. responses:
  167. "200":
  168. description: OK
  169. schema:
  170. $ref: '#/definitions/controller.ResponseBase'
  171. summary: 查询用户是否正在上课接口
  172. tags:
  173. - User
  174. /User/UserSelfQuery:
  175. post:
  176. consumes:
  177. - application/x-www-form-urlencoded
  178. description: 会员自身信息查询
  179. parameters:
  180. - description: Token
  181. in: formData
  182. name: token
  183. required: true
  184. type: string
  185. produces:
  186. - application/json
  187. responses:
  188. "200":
  189. description: OK
  190. schema:
  191. $ref: '#/definitions/controller.ResponseBase'
  192. summary: 会员自身信息查询
  193. tags:
  194. - User
  195. securityDefinitions:
  196. ApiKeyAuth:
  197. in: header
  198. name: Authorization
  199. type: apiKey
  200. BasicAuth:
  201. type: basic
  202. OAuth2AccessCode:
  203. authorizationUrl: https://example.com/oauth/authorize
  204. flow: accessCode
  205. scopes:
  206. admin: ' Grants read and write access to administrative information'
  207. tokenUrl: https://example.com/oauth/token
  208. type: oauth2
  209. OAuth2Application:
  210. flow: application
  211. scopes:
  212. admin: ' Grants read and write access to administrative information'
  213. write: ' Grants write access'
  214. tokenUrl: https://example.com/oauth/token
  215. type: oauth2
  216. OAuth2Implicit:
  217. authorizationUrl: https://example.com/oauth/authorize
  218. flow: implicit
  219. scopes:
  220. admin: ' Grants read and write access to administrative information'
  221. write: ' Grants write access'
  222. type: oauth2
  223. OAuth2Password:
  224. flow: password
  225. scopes:
  226. admin: ' Grants read and write access to administrative information'
  227. read: ' Grants read access'
  228. write: ' Grants write access'
  229. tokenUrl: https://example.com/oauth/token
  230. type: oauth2
  231. swagger: "2.0"