swagger.yaml 7.2 KB

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