分配客户 接口注释

This commit is contained in:
2025-09-03 09:45:17 +08:00
parent 1d37bfb719
commit d97928b38a

View File

@ -126,26 +126,26 @@ public class DeviceController extends BaseController {
// @Log("分配客户")
@Operation(summary = "分配客户")
@PutMapping(value = "/assignCustomer")
public R<Void> assignCustomer(@Validated @RequestBody CustomerVo customerVo) {
deviceService.assignCustomer(customerVo);
return R.ok();
}
// @Operation(summary = "分配客户")
// @PutMapping(value = "/assignCustomer")
// public R<Void> assignCustomer(@Validated @RequestBody CustomerVo customerVo) {
// deviceService.assignCustomer(customerVo);
// return R.ok();
// }
// @Log("撤回设备")
@Operation(summary = "撤回分配设备")
@PostMapping(value = "/withdraw")
public R<Void> withdrawDevice(@RequestBody List<Long> ids) {
try {
deviceService.withdrawDevice(ids);
} catch (Exception e) {
log.error("updateDevice error: " + e.getMessage());
return R.fail(e.getMessage());
}
return R.ok();
}
// @Operation(summary = "撤回分配设备")
// @PostMapping(value = "/withdraw")
// public R<Void> withdrawDevice(@RequestBody List<Long> ids) {
// try {
// deviceService.withdrawDevice(ids);
// } catch (Exception e) {
// log.error("updateDevice error: " + e.getMessage());
// return R.fail(e.getMessage());
// }
// return R.ok();
// }
//
// /**