Commit a235d4f8 by 111-PC\111

[+]代码规范

1 parent 7b216df2
......@@ -27,27 +27,28 @@ public class AqaraDeviceController {
@RequestMapping(value = "/bindKeyGet", method = RequestMethod.GET)
@ResponseBody
@ApiOperation(value = "获取bindKey")
public R bindKeyGet(@RequestParam(required = false) String token){
public R bindKeyGet(@RequestParam(required = false) String token) {
return aqaraDeviceService.bindKeyGet(token);
}
@RequestMapping(value = "/subscriber", method = RequestMethod.POST)
@ResponseBody
@ApiOperation(value = "订阅资源")
public R subscriber(@RequestBody String data,String token){
return aqaraDeviceService.subscriber(data,token);
public R subscriber(@RequestBody String data, String token) {
return aqaraDeviceService.subscriber(data, token);
}
@RequestMapping(value = "/unbind", method = RequestMethod.GET)
@ResponseBody
@ApiOperation(value = "解绑设备")
public R unbind(String deviceId,String token){
return aqaraDeviceService.unbind(deviceId,token);
public R unbind(String deviceId, String token) {
return aqaraDeviceService.unbind(deviceId, token);
}
@RequestMapping(value = "/subdeviceBindModel", method = RequestMethod.GET)
@ResponseBody
@ApiOperation(value = "开启子设备配网模式")
public R subdeviceBindModel(String deviceId,String token){
return aqaraDeviceService.subdeviceBindModel(deviceId,token);
public R subdeviceBindModel(String deviceId, String token) {
return aqaraDeviceService.subdeviceBindModel(deviceId, token);
}
}
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!