mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-29 05:09:46 +01:00
解绑修改为post
This commit is contained in:
parent
57f64f367b
commit
f7ab083e05
1 changed files with 2 additions and 2 deletions
|
|
@ -24,7 +24,7 @@ import xiaozhi.common.validator.AssertUtils;
|
|||
public class DeviceController {
|
||||
private final DeviceService deviceService;
|
||||
|
||||
@PostMapping("/bind")
|
||||
@PostMapping("/bind/{deviceCode}")
|
||||
@Operation(summary = "绑定设备")
|
||||
@RequiresPermissions("sys:device:bind")
|
||||
public Result<DeviceDTO> register(@RequestBody String deviceCode) {
|
||||
|
|
@ -44,7 +44,7 @@ public class DeviceController {
|
|||
return new Result<List<DeviceDTO>>().ok(devices);
|
||||
}
|
||||
|
||||
@PutMapping("/unbind")
|
||||
@PostMapping("/unbind")
|
||||
@Operation(summary = "解绑设备")
|
||||
@RequiresPermissions("sys:device:unbind")
|
||||
public Result unbindDevice(@RequestBody Long deviceId) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue