---数据服务操作增加操作对象生命周期
This commit is contained in:
@ -102,7 +102,7 @@ public class CategoryController {
|
||||
@ApiOperation(value = "启用LngBCategory")
|
||||
@SaCheckPermission("category:enable")
|
||||
public R enable(@Valid @RequestBody List<Long> ids){
|
||||
return R.ok(categoryService.enable(ids));
|
||||
return R.ok(dataService.enable(UpdateLngBCategoryDto.class,ids));
|
||||
}
|
||||
|
||||
@PostMapping("/disable")
|
||||
|
||||
@ -121,7 +121,6 @@ public class CountryRegionController {
|
||||
@SaCheckPermission("countryRegion:delete")
|
||||
public R delete(@Valid @RequestBody List<Long> ids){
|
||||
return R.ok(dataService.deleteByIds(UpdateLngBRegionDto.class, ids));
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user