basePath: /v1 definitions: controller.AddHRRtn: properties: code: type: integer inClass: type: integer memo: type: string type: object controller.ResponseBase: properties: code: type: integer memo: type: string type: object controller.ResponseVerifyPic: properties: id: type: string pic: type: string type: object info: contact: email: support@swagger.io name: API Support url: http://www.swagger.io/support description: Video Course框架 API 文档 license: name: Apache 2.0 url: http://www.apache.org/licenses/LICENSE-2.0.html termsOfService: http://swagger.io/terms/ title: Video Course框架 version: "1.0" paths: /Auth/GenVerifyPic: post: consumes: - application/x-www-form-urlencoded description: 获取验证图片和验证id parameters: - description: 高 in: formData name: height required: true type: string - description: 宽 in: formData name: width required: true type: string - description: 噪点数量 in: formData name: noiseCount required: true type: string - description: 验证码字数 in: formData name: length required: true type: string - description: 验证码取值范围 比如 1234567890 或者 abcdef等 in: formData name: source required: true type: string produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/controller.ResponseVerifyPic' summary: 获取验证图片 tags: - Auth /Auth/GetPhoneVFCode: post: consumes: - application/x-www-form-urlencoded description: 手机获取验证码 parameters: - description: 图形验证码,目前不起作用 in: formData name: picCode type: string - description: 手机号 in: formData name: phone required: true type: string - description: 验证码类型 1:登录 in: formData name: codeType required: true type: integer produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/controller.ResponseBase' summary: 手机获取验证码 tags: - Auth /Auth/PhoneSignIn: post: consumes: - application/x-www-form-urlencoded description: 手机验证码登录 parameters: - description: 手机号 in: formData name: phone required: true type: string - description: 验证码 in: formData name: smsCode required: true type: integer produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/controller.ResponseBase' summary: 手机验证码登录 tags: - Auth /HrSensors/AddAppHeartRate: post: consumes: - application/x-www-form-urlencoded description: App心率数据上报 parameters: - description: Token in: formData name: token required: true type: string - description: duId in: formData name: duId required: true type: integer - description: sn in: formData name: sn required: true type: string - description: 心率带id in: formData name: hrId required: true type: integer - description: 心跳 in: formData name: heartRate required: true type: integer - description: 时间戳毫秒 in: formData name: rcvTime required: true type: integer - description: 卡路里 in: formData name: calories required: true type: integer - description: 运动卡路里 in: formData name: pureCalories required: true type: integer produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/controller.AddHRRtn' summary: App心率数据上报 tags: - HrSensors /HrSensors/HrSensorsUpdate: post: consumes: - application/x-www-form-urlencoded description: 心率带信息查询和更新 parameters: - description: Token in: formData name: token required: true type: string - description: 心率带编号 in: formData name: sn required: true type: string produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/controller.ResponseBase' summary: 心率带信息查询和更新 tags: - HrSensors /User/GetDuInfoAndUserInfoByUserMd5: post: consumes: - application/x-www-form-urlencoded description: 查询用户当前显示单元和对应身体信息 parameters: - description: Token in: formData name: token required: true type: string produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/controller.ResponseBase' summary: 查询用户是否正在上课接口 tags: - User /User/UserSelfQuery: post: consumes: - application/x-www-form-urlencoded description: 会员自身信息查询 parameters: - description: Token in: formData name: token required: true type: string produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/controller.ResponseBase' summary: 会员自身信息查询 tags: - User securityDefinitions: ApiKeyAuth: in: header name: Authorization type: apiKey BasicAuth: type: basic OAuth2AccessCode: authorizationUrl: https://example.com/oauth/authorize flow: accessCode scopes: admin: ' Grants read and write access to administrative information' tokenUrl: https://example.com/oauth/token type: oauth2 OAuth2Application: flow: application scopes: admin: ' Grants read and write access to administrative information' write: ' Grants write access' tokenUrl: https://example.com/oauth/token type: oauth2 OAuth2Implicit: authorizationUrl: https://example.com/oauth/authorize flow: implicit scopes: admin: ' Grants read and write access to administrative information' write: ' Grants write access' type: oauth2 OAuth2Password: flow: password scopes: admin: ' Grants read and write access to administrative information' read: ' Grants read access' write: ' Grants write access' tokenUrl: https://example.com/oauth/token type: oauth2 swagger: "2.0"