分配客户 接口注释
This commit is contained in:
@ -126,26 +126,26 @@ public class DeviceController extends BaseController {
|
|||||||
|
|
||||||
|
|
||||||
// @Log("分配客户")
|
// @Log("分配客户")
|
||||||
@Operation(summary = "分配客户")
|
// @Operation(summary = "分配客户")
|
||||||
@PutMapping(value = "/assignCustomer")
|
// @PutMapping(value = "/assignCustomer")
|
||||||
public R<Void> assignCustomer(@Validated @RequestBody CustomerVo customerVo) {
|
// public R<Void> assignCustomer(@Validated @RequestBody CustomerVo customerVo) {
|
||||||
deviceService.assignCustomer(customerVo);
|
// deviceService.assignCustomer(customerVo);
|
||||||
return R.ok();
|
// return R.ok();
|
||||||
}
|
// }
|
||||||
|
|
||||||
|
|
||||||
// @Log("撤回设备")
|
// @Log("撤回设备")
|
||||||
@Operation(summary = "撤回分配设备")
|
// @Operation(summary = "撤回分配设备")
|
||||||
@PostMapping(value = "/withdraw")
|
// @PostMapping(value = "/withdraw")
|
||||||
public R<Void> withdrawDevice(@RequestBody List<Long> ids) {
|
// public R<Void> withdrawDevice(@RequestBody List<Long> ids) {
|
||||||
try {
|
// try {
|
||||||
deviceService.withdrawDevice(ids);
|
// deviceService.withdrawDevice(ids);
|
||||||
} catch (Exception e) {
|
// } catch (Exception e) {
|
||||||
log.error("updateDevice error: " + e.getMessage());
|
// log.error("updateDevice error: " + e.getMessage());
|
||||||
return R.fail(e.getMessage());
|
// return R.fail(e.getMessage());
|
||||||
}
|
// }
|
||||||
return R.ok();
|
// return R.ok();
|
||||||
}
|
// }
|
||||||
|
|
||||||
//
|
//
|
||||||
// /**
|
// /**
|
||||||
|
Reference in New Issue
Block a user