添加套餐清空
This commit is contained in:
parent
b969fa2a52
commit
608ff95255
|
@ -100,4 +100,13 @@ public class AppSuitController extends BaseController {
|
||||||
return success(suitService.logicDel(ids) >= 1);
|
return success(suitService.logicDel(ids) >= 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ApiOperation("将指定设备的套餐清空")
|
||||||
|
@DeleteMapping("/delByDevice/{deviceId}")
|
||||||
|
public AjaxResult delByDevice(@PathVariable Long deviceId) {
|
||||||
|
if (!deviceValidator.isBelong(deviceId, getUserId())) {
|
||||||
|
return error("这不是您的设备,无法清空套餐");
|
||||||
|
}
|
||||||
|
return toAjax(suitService.logicDelByDeviceId(deviceId));
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user