|
|
@@ -195,6 +195,481 @@ var doc = `{
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
+ "/HrSensors/BindHrSensorsToUser": {
|
|
|
+ "post": {
|
|
|
+ "description": "心率带绑定用户",
|
|
|
+ "consumes": [
|
|
|
+ "application/x-www-form-urlencoded"
|
|
|
+ ],
|
|
|
+ "produces": [
|
|
|
+ "application/json"
|
|
|
+ ],
|
|
|
+ "tags": [
|
|
|
+ "HrSensors"
|
|
|
+ ],
|
|
|
+ "summary": "心率带绑定用户",
|
|
|
+ "parameters": [
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "description": "Token",
|
|
|
+ "name": "token",
|
|
|
+ "in": "formData",
|
|
|
+ "required": true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "description": "心率带Sn",
|
|
|
+ "name": "sn",
|
|
|
+ "in": "formData",
|
|
|
+ "required": true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "integer",
|
|
|
+ "description": "课堂记录Id,必传字段",
|
|
|
+ "name": "cfId",
|
|
|
+ "in": "formData",
|
|
|
+ "required": true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "integer",
|
|
|
+ "description": "用户Id",
|
|
|
+ "name": "userId",
|
|
|
+ "in": "formData",
|
|
|
+ "required": true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "integer",
|
|
|
+ "description": "商家ID",
|
|
|
+ "name": "shopId",
|
|
|
+ "in": "formData",
|
|
|
+ "required": true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "integer",
|
|
|
+ "description": "心率带ID",
|
|
|
+ "name": "hrId",
|
|
|
+ "in": "formData",
|
|
|
+ "required": true
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "responses": {
|
|
|
+ "200": {
|
|
|
+ "description": "OK",
|
|
|
+ "schema": {
|
|
|
+ "$ref": "#/definitions/controller.ResponseBase"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "/HrSensors/EditHrSensors": {
|
|
|
+ "post": {
|
|
|
+ "description": "修改商家心率设备信息",
|
|
|
+ "consumes": [
|
|
|
+ "application/x-www-form-urlencoded"
|
|
|
+ ],
|
|
|
+ "produces": [
|
|
|
+ "application/json"
|
|
|
+ ],
|
|
|
+ "tags": [
|
|
|
+ "HrSensors"
|
|
|
+ ],
|
|
|
+ "summary": "修改商家心率设备信息",
|
|
|
+ "parameters": [
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "description": "Token",
|
|
|
+ "name": "token",
|
|
|
+ "in": "formData",
|
|
|
+ "required": true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "integer",
|
|
|
+ "description": "心率带ID",
|
|
|
+ "name": "hrId",
|
|
|
+ "in": "formData",
|
|
|
+ "required": true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "description": "心率带Sn",
|
|
|
+ "name": "sn",
|
|
|
+ "in": "formData",
|
|
|
+ "required": true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "description": "商家ID",
|
|
|
+ "name": "shopId",
|
|
|
+ "in": "formData",
|
|
|
+ "required": true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "description": "场馆内编号 01 02",
|
|
|
+ "name": "venueNo",
|
|
|
+ "in": "formData"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "responses": {
|
|
|
+ "200": {
|
|
|
+ "description": "OK",
|
|
|
+ "schema": {
|
|
|
+ "$ref": "#/definitions/controller.ResponseBase"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "/HrSensors/GetHrSensorsPowerPercent": {
|
|
|
+ "post": {
|
|
|
+ "description": "获取心率带电量",
|
|
|
+ "consumes": [
|
|
|
+ "application/x-www-form-urlencoded"
|
|
|
+ ],
|
|
|
+ "produces": [
|
|
|
+ "application/json"
|
|
|
+ ],
|
|
|
+ "tags": [
|
|
|
+ "HrSensors"
|
|
|
+ ],
|
|
|
+ "summary": "获取心率带电量",
|
|
|
+ "parameters": [
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "description": "Token",
|
|
|
+ "name": "token",
|
|
|
+ "in": "formData",
|
|
|
+ "required": true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "integer",
|
|
|
+ "description": "商家ID",
|
|
|
+ "name": "shopId",
|
|
|
+ "in": "formData",
|
|
|
+ "required": true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "integer",
|
|
|
+ "description": "心率带Id",
|
|
|
+ "name": "hrId",
|
|
|
+ "in": "formData"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "responses": {
|
|
|
+ "200": {
|
|
|
+ "description": "OK",
|
|
|
+ "schema": {
|
|
|
+ "$ref": "#/definitions/controller.ResponseBase"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "/HrSensors/HrSensorsBindHistory": {
|
|
|
+ "post": {
|
|
|
+ "description": "查询心率带绑定历史记录",
|
|
|
+ "consumes": [
|
|
|
+ "application/x-www-form-urlencoded"
|
|
|
+ ],
|
|
|
+ "produces": [
|
|
|
+ "application/json"
|
|
|
+ ],
|
|
|
+ "tags": [
|
|
|
+ "HrSensors"
|
|
|
+ ],
|
|
|
+ "summary": "查询心率带绑定历史记录",
|
|
|
+ "parameters": [
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "description": "Token",
|
|
|
+ "name": "token",
|
|
|
+ "in": "formData",
|
|
|
+ "required": true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "integer",
|
|
|
+ "description": "心率带ID",
|
|
|
+ "name": "hrId",
|
|
|
+ "in": "formData"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "description": "开始时间 2020-10-10 00:00:01",
|
|
|
+ "name": "bt",
|
|
|
+ "in": "formData",
|
|
|
+ "required": true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "description": "结束时间 2020-10-10 23:59:59",
|
|
|
+ "name": "et",
|
|
|
+ "in": "formData",
|
|
|
+ "required": true
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "responses": {
|
|
|
+ "200": {
|
|
|
+ "description": "OK",
|
|
|
+ "schema": {
|
|
|
+ "$ref": "#/definitions/controller.ResponseBase"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "/HrSensors/HrSensorsStatusEdit": {
|
|
|
+ "post": {
|
|
|
+ "description": "修改商家心率设备状态",
|
|
|
+ "consumes": [
|
|
|
+ "application/x-www-form-urlencoded"
|
|
|
+ ],
|
|
|
+ "produces": [
|
|
|
+ "application/json"
|
|
|
+ ],
|
|
|
+ "tags": [
|
|
|
+ "HrSensors"
|
|
|
+ ],
|
|
|
+ "summary": "修改商家心率设备状态",
|
|
|
+ "parameters": [
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "description": "Token",
|
|
|
+ "name": "token",
|
|
|
+ "in": "formData",
|
|
|
+ "required": true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "integer",
|
|
|
+ "description": "心率带ID",
|
|
|
+ "name": "hrId",
|
|
|
+ "in": "formData",
|
|
|
+ "required": true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "integer",
|
|
|
+ "description": "状态, 1:启用,8:暂停,9:删除",
|
|
|
+ "name": "status",
|
|
|
+ "in": "formData",
|
|
|
+ "required": true
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "responses": {
|
|
|
+ "200": {
|
|
|
+ "description": "OK",
|
|
|
+ "schema": {
|
|
|
+ "$ref": "#/definitions/controller.ResponseBase"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "/HrSensors/QueryHrSensors": {
|
|
|
+ "post": {
|
|
|
+ "description": "查询商家公共心率设备",
|
|
|
+ "consumes": [
|
|
|
+ "application/x-www-form-urlencoded"
|
|
|
+ ],
|
|
|
+ "produces": [
|
|
|
+ "application/json"
|
|
|
+ ],
|
|
|
+ "tags": [
|
|
|
+ "HrSensors"
|
|
|
+ ],
|
|
|
+ "summary": "查询商家公共心率设备",
|
|
|
+ "parameters": [
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "description": "Token",
|
|
|
+ "name": "token",
|
|
|
+ "in": "formData",
|
|
|
+ "required": true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "integer",
|
|
|
+ "description": "商家ID",
|
|
|
+ "name": "shopId",
|
|
|
+ "in": "formData",
|
|
|
+ "required": true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "integer",
|
|
|
+ "description": "设备状态",
|
|
|
+ "name": "status",
|
|
|
+ "in": "formData"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "description": "模糊查询sn与场内编号",
|
|
|
+ "name": "str",
|
|
|
+ "in": "formData"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "responses": {
|
|
|
+ "200": {
|
|
|
+ "description": "OK",
|
|
|
+ "schema": {
|
|
|
+ "$ref": "#/definitions/controller.ResponseBase"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "/HrSensors/QueryPvtHrSensors": {
|
|
|
+ "post": {
|
|
|
+ "description": "查询商家会员私有心率设备",
|
|
|
+ "consumes": [
|
|
|
+ "application/x-www-form-urlencoded"
|
|
|
+ ],
|
|
|
+ "produces": [
|
|
|
+ "application/json"
|
|
|
+ ],
|
|
|
+ "tags": [
|
|
|
+ "HrSensors"
|
|
|
+ ],
|
|
|
+ "summary": "查询商家会员私有心率设备",
|
|
|
+ "parameters": [
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "description": "Token",
|
|
|
+ "name": "token",
|
|
|
+ "in": "formData",
|
|
|
+ "required": true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "integer",
|
|
|
+ "description": "商家ID",
|
|
|
+ "name": "shopId",
|
|
|
+ "in": "formData",
|
|
|
+ "required": true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "integer",
|
|
|
+ "description": "设备状态",
|
|
|
+ "name": "status",
|
|
|
+ "in": "formData"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "description": "用户姓名",
|
|
|
+ "name": "userName",
|
|
|
+ "in": "formData"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "description": "模糊查询sn与场内编号",
|
|
|
+ "name": "str",
|
|
|
+ "in": "formData"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "responses": {
|
|
|
+ "200": {
|
|
|
+ "description": "OK",
|
|
|
+ "schema": {
|
|
|
+ "$ref": "#/definitions/controller.ResponseBase"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "/HrSensors/SelectHrSensors": {
|
|
|
+ "post": {
|
|
|
+ "description": "查询未绑定的心率带--下拉框用",
|
|
|
+ "consumes": [
|
|
|
+ "application/x-www-form-urlencoded"
|
|
|
+ ],
|
|
|
+ "produces": [
|
|
|
+ "application/json"
|
|
|
+ ],
|
|
|
+ "tags": [
|
|
|
+ "HrSensors"
|
|
|
+ ],
|
|
|
+ "summary": "查询未绑定的心率带--下拉框用",
|
|
|
+ "parameters": [
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "description": "Token",
|
|
|
+ "name": "token",
|
|
|
+ "in": "formData",
|
|
|
+ "required": true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "integer",
|
|
|
+ "description": "用户ID",
|
|
|
+ "name": "userId",
|
|
|
+ "in": "formData"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "responses": {
|
|
|
+ "200": {
|
|
|
+ "description": "OK",
|
|
|
+ "schema": {
|
|
|
+ "$ref": "#/definitions/controller.ResponseBase"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "/HrSensors/UnBindHrSensorsToUser": {
|
|
|
+ "post": {
|
|
|
+ "description": "心率带解绑用户",
|
|
|
+ "consumes": [
|
|
|
+ "application/x-www-form-urlencoded"
|
|
|
+ ],
|
|
|
+ "produces": [
|
|
|
+ "application/json"
|
|
|
+ ],
|
|
|
+ "tags": [
|
|
|
+ "HrSensors"
|
|
|
+ ],
|
|
|
+ "summary": "心率带解绑用户",
|
|
|
+ "parameters": [
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "description": "Token",
|
|
|
+ "name": "token",
|
|
|
+ "in": "formData",
|
|
|
+ "required": true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "integer",
|
|
|
+ "description": "课堂记录Id,必传字段",
|
|
|
+ "name": "cfId",
|
|
|
+ "in": "formData",
|
|
|
+ "required": true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "integer",
|
|
|
+ "description": "绑定ID",
|
|
|
+ "name": "bindId",
|
|
|
+ "in": "formData",
|
|
|
+ "required": true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "integer",
|
|
|
+ "description": "用户ID",
|
|
|
+ "name": "userId",
|
|
|
+ "in": "formData",
|
|
|
+ "required": true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "description": "心率带Sn",
|
|
|
+ "name": "sn",
|
|
|
+ "in": "formData",
|
|
|
+ "required": true
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "responses": {
|
|
|
+ "200": {
|
|
|
+ "description": "OK",
|
|
|
+ "schema": {
|
|
|
+ "$ref": "#/definitions/controller.ResponseBase"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
"/Test/UserAdd": {
|
|
|
"post": {
|
|
|
"description": "会员用户添加",
|
|
|
@@ -1013,8 +1488,8 @@ var SwaggerInfo = swaggerInfo{
|
|
|
Host: "",
|
|
|
BasePath: "/v1",
|
|
|
Schemes: []string{},
|
|
|
- Title: "web框架",
|
|
|
- Description: "web框架 API 文档",
|
|
|
+ Title: "Video Course框架",
|
|
|
+ Description: "Video Course框架 API 文档",
|
|
|
}
|
|
|
|
|
|
type s struct{}
|