Commit a235d4f8 by 111-PC\111

[+]代码规范

1 parent 7b216df2
...@@ -27,27 +27,28 @@ public class AqaraDeviceController { ...@@ -27,27 +27,28 @@ public class AqaraDeviceController {
@RequestMapping(value = "/bindKeyGet", method = RequestMethod.GET) @RequestMapping(value = "/bindKeyGet", method = RequestMethod.GET)
@ResponseBody @ResponseBody
@ApiOperation(value = "获取bindKey") @ApiOperation(value = "获取bindKey")
public R bindKeyGet(@RequestParam(required = false) String token){ public R bindKeyGet(@RequestParam(required = false) String token) {
return aqaraDeviceService.bindKeyGet(token); return aqaraDeviceService.bindKeyGet(token);
} }
@RequestMapping(value = "/subscriber", method = RequestMethod.POST) @RequestMapping(value = "/subscriber", method = RequestMethod.POST)
@ResponseBody @ResponseBody
@ApiOperation(value = "订阅资源") @ApiOperation(value = "订阅资源")
public R subscriber(@RequestBody String data,String token){ public R subscriber(@RequestBody String data, String token) {
return aqaraDeviceService.subscriber(data,token); return aqaraDeviceService.subscriber(data, token);
} }
@RequestMapping(value = "/unbind", method = RequestMethod.GET) @RequestMapping(value = "/unbind", method = RequestMethod.GET)
@ResponseBody @ResponseBody
@ApiOperation(value = "解绑设备") @ApiOperation(value = "解绑设备")
public R unbind(String deviceId,String token){ public R unbind(String deviceId, String token) {
return aqaraDeviceService.unbind(deviceId,token); return aqaraDeviceService.unbind(deviceId, token);
} }
@RequestMapping(value = "/subdeviceBindModel", method = RequestMethod.GET) @RequestMapping(value = "/subdeviceBindModel", method = RequestMethod.GET)
@ResponseBody @ResponseBody
@ApiOperation(value = "开启子设备配网模式") @ApiOperation(value = "开启子设备配网模式")
public R subdeviceBindModel(String deviceId,String token){ public R subdeviceBindModel(String deviceId, String token) {
return aqaraDeviceService.subdeviceBindModel(deviceId,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!