|
@ -38,7 +38,7 @@ public class DeviceController {
|
|
|
}
|
|
|
|
|
|
@ApiOperation("爱牵挂设备sos数据接收")
|
|
|
@RequestMapping(value = "aqgsos", produces = "application/x-www-form-urlencoded;charset=UTF-8", method = RequestMethod.POST)
|
|
|
@RequestMapping(value = "aqgsos", produces = "application/x-www-form-urlencoded;charset=UTF-8", method = {RequestMethod.POST,RequestMethod.GET})
|
|
|
public String aqgsos(
|
|
|
@ApiParam(name="imei",required = false,value="15位设备唯一序号",defaultValue = "")
|
|
|
@RequestParam(value = "imei",required = false) String imei,
|
|
@ -60,7 +60,7 @@ public class DeviceController {
|
|
|
}
|
|
|
|
|
|
@ApiOperation("爱牵挂设备开关机数据接收")
|
|
|
@RequestMapping(value = "aqgSwitch", produces = "application/x-www-form-urlencoded;charset=UTF-8", method = RequestMethod.POST)
|
|
|
@RequestMapping(value = "aqgSwitch", produces = "application/x-www-form-urlencoded;charset=UTF-8", method = {RequestMethod.POST,RequestMethod.GET})
|
|
|
public String aqgSwitch(
|
|
|
@ApiParam(name="imei",required = false,value="15位设备唯一序号",defaultValue = "")
|
|
|
@RequestParam(value = "imei",required = false) String imei,
|
|
@ -84,7 +84,7 @@ public class DeviceController {
|
|
|
}
|
|
|
|
|
|
@ApiOperation("爱牵挂设备消息通知数据接收")
|
|
|
@RequestMapping(value = "pushdata", produces = "application/x-www-form-urlencoded;charset=UTF-8", method = RequestMethod.GET)
|
|
|
@RequestMapping(value = "pushdata", produces = "application/x-www-form-urlencoded;charset=UTF-8", method = {RequestMethod.POST,RequestMethod.GET})
|
|
|
public String pushdata(
|
|
|
@ApiParam(name="type",required = false,value="根据type来定义给用户推送提示 type=1 SOS,type=5 设备低电, 其他类型非本机型所有",defaultValue = "")
|
|
|
@RequestParam(value = "type",required = false) int type,
|
|
@ -108,7 +108,7 @@ public class DeviceController {
|
|
|
|
|
|
//
|
|
|
@ApiOperation("柏颐设备位置接收")
|
|
|
@RequestMapping(value = "byLocation", produces = "application/x-www-form-urlencoded;charset=UTF-8", method = RequestMethod.POST)
|
|
|
@RequestMapping(value = "byLocation", produces = "application/x-www-form-urlencoded;charset=UTF-8", method = {RequestMethod.POST,RequestMethod.GET})
|
|
|
public String byLocation(
|
|
|
@ApiParam(name="imei",required = false,value="15位设备唯一序号",defaultValue = "")
|
|
|
@RequestParam(value = "imei",required = true) String imei,
|
|
@ -143,7 +143,7 @@ public class DeviceController {
|
|
|
|
|
|
|
|
|
@ApiOperation("柏颐心率数据接收")
|
|
|
@RequestMapping(value = "byHeartRate", produces = "application/x-www-form-urlencoded;charset=UTF-8", method = RequestMethod.POST)
|
|
|
@RequestMapping(value = "byHeartRate", produces = "application/x-www-form-urlencoded;charset=UTF-8", method = {RequestMethod.POST,RequestMethod.GET})
|
|
|
public String byHeartRate(
|
|
|
@ApiParam(name = "imei", value = "15位设备唯一序号")
|
|
|
@RequestParam(value = "imei",required = true)String imei,
|
|
@ -169,7 +169,7 @@ public class DeviceController {
|
|
|
}
|
|
|
|
|
|
@ApiOperation("柏颐血压数据接收")
|
|
|
@RequestMapping(value = "byBloodPressure", produces = "application/x-www-form-urlencoded;charset=UTF-8", method = RequestMethod.POST)
|
|
|
@RequestMapping(value = "byBloodPressure", produces = "application/x-www-form-urlencoded;charset=UTF-8", method = {RequestMethod.POST,RequestMethod.GET})
|
|
|
public String byBloodPressure(
|
|
|
@ApiParam(name = "imei", value = "15位设备唯一序号", required = true)
|
|
|
@RequestParam(value = "imei",required = true)String imei,
|
|
@ -197,7 +197,7 @@ public class DeviceController {
|
|
|
}
|
|
|
|
|
|
@ApiOperation("柏颐跌倒数据接收")
|
|
|
@RequestMapping(value = "byFall", produces = "application/x-www-form-urlencoded;charset=UTF-8", method = RequestMethod.POST)
|
|
|
@RequestMapping(value = "byFall", produces = "application/x-www-form-urlencoded;charset=UTF-8", method = {RequestMethod.POST,RequestMethod.GET})
|
|
|
public String byFall(
|
|
|
@ApiParam(name = "imei", value = "15位设备唯一序号", required = true)
|
|
|
@RequestParam(value = "imei",required = true)String imei,
|
|
@ -227,7 +227,7 @@ public class DeviceController {
|
|
|
}
|
|
|
|
|
|
@ApiOperation("柏颐设备sos数据接收")
|
|
|
@RequestMapping(value = "bySos", produces = "application/x-www-form-urlencoded;charset=UTF-8", method = RequestMethod.POST)
|
|
|
@RequestMapping(value = "bySos", produces = "application/x-www-form-urlencoded;charset=UTF-8", method = {RequestMethod.POST,RequestMethod.GET})
|
|
|
public String bySos(
|
|
|
@ApiParam(name="imei",required = false,value="15位设备唯一序号",defaultValue = "")
|
|
|
@RequestParam(value = "imei",required = true) String imei,
|
|
@ -259,7 +259,7 @@ public class DeviceController {
|
|
|
}
|
|
|
|
|
|
@ApiOperation("柏颐设备步数接收")
|
|
|
@RequestMapping(value = "bySteps", produces = "application/x-www-form-urlencoded;charset=UTF-8", method = RequestMethod.POST)
|
|
|
@RequestMapping(value = "bySteps", produces = "application/x-www-form-urlencoded;charset=UTF-8", method = {RequestMethod.POST,RequestMethod.GET})
|
|
|
public String bySteps(
|
|
|
@ApiParam(name="imei",required = false,value="15位设备唯一序号",defaultValue = "")
|
|
|
@RequestParam(value = "imei",required = true) String imei,
|
|
@ -281,7 +281,7 @@ public class DeviceController {
|
|
|
}
|
|
|
|
|
|
@ApiOperation("柏颐设备睡眠接收")
|
|
|
@RequestMapping(value = "bySleep", produces = "application/x-www-form-urlencoded;charset=UTF-8", method = RequestMethod.POST)
|
|
|
@RequestMapping(value = "bySleep", produces = "application/x-www-form-urlencoded;charset=UTF-8", method = {RequestMethod.POST,RequestMethod.GET})
|
|
|
public String bySleep(
|
|
|
@ApiParam(name="imei",required = false,value="15位设备唯一序号",defaultValue = "")
|
|
|
@RequestParam(value = "imei",required = true) String imei,
|
|
@ -311,7 +311,7 @@ public class DeviceController {
|
|
|
}
|
|
|
|
|
|
@ApiOperation("柏颐设备开关机数据接收")
|
|
|
@RequestMapping(value = "bySwitch", produces = "application/x-www-form-urlencoded;charset=UTF-8", method = RequestMethod.POST)
|
|
|
@RequestMapping(value = "bySwitch", produces = "application/x-www-form-urlencoded;charset=UTF-8", method = {RequestMethod.POST,RequestMethod.GET})
|
|
|
public String bySwitch(
|
|
|
@ApiParam(name="imei",required = false,value="15位设备唯一序号",defaultValue = "")
|
|
|
@RequestParam(value = "imei",required = true) String imei,
|
|
@ -336,7 +336,7 @@ public class DeviceController {
|
|
|
}
|
|
|
|
|
|
@ApiOperation("柏颐设备消息通知数据接收")
|
|
|
@RequestMapping(value = "byPushData", produces = "application/x-www-form-urlencoded;charset=UTF-8", method = RequestMethod.POST)
|
|
|
@RequestMapping(value = "byPushData", produces = "application/x-www-form-urlencoded;charset=UTF-8", method = {RequestMethod.POST,RequestMethod.GET})
|
|
|
public String byPushData(
|
|
|
@ApiParam(name="type",required = false,value="type=1 SOS,type=2 fall,type=3 new 新成员加入 ,type=4 电子围栏触发, type=5 设备低电,type=6 环境音 ",defaultValue = "")
|
|
|
@RequestParam(value = "type",required = false) int type,
|