|
@@ -49,7 +49,7 @@ public class DictDataTenantController {
|
|
|
@PostMapping("/create")
|
|
|
@Operation(summary = "新增租户字典数据")
|
|
|
@ApiOperationSupport(order = 1)
|
|
|
- @PreAuthorize("@ss.hasPermission('tenant:dict-data:create')")
|
|
|
+ // @PreAuthorize("@ss.hasPermission('tenant:dict-data:create')")
|
|
|
public CommonResult<Long> createDictData(@Valid @RequestBody DictDataTenantSaveReqVO createReqVO) {
|
|
|
return success(dictDataTenantService.createDictData(createReqVO));
|
|
|
}
|
|
@@ -57,7 +57,7 @@ public class DictDataTenantController {
|
|
|
@PutMapping("/update")
|
|
|
@Operation(summary = "修改租户字典数据")
|
|
|
@ApiOperationSupport(order = 2)
|
|
|
- @PreAuthorize("@ss.hasPermission('tenant:dict-data:update')")
|
|
|
+ // @PreAuthorize("@ss.hasPermission('tenant:dict-data:update')")
|
|
|
public CommonResult<Boolean> updateDictData(@Valid @RequestBody DictDataTenantUpdateReqVO updateReqVO) {
|
|
|
dictDataTenantService.updateDictData(updateReqVO);
|
|
|
return success(true);
|
|
@@ -67,7 +67,7 @@ public class DictDataTenantController {
|
|
|
@Operation(summary = "删除租户字典数据")
|
|
|
@ApiOperationSupport(order = 3)
|
|
|
@Parameter(name = "id", description = "编号", required = true)
|
|
|
- @PreAuthorize("@ss.hasPermission('tenant:dict-data:delete')")
|
|
|
+ // @PreAuthorize("@ss.hasPermission('tenant:dict-data:delete')")
|
|
|
public CommonResult<Boolean> deleteDictData(@RequestParam("id") Long id) {
|
|
|
dictDataTenantService.deleteDictData(id);
|
|
|
return success(true);
|
|
@@ -77,7 +77,7 @@ public class DictDataTenantController {
|
|
|
@Operation(summary = "获得租户字典数据")
|
|
|
@ApiOperationSupport(order = 4)
|
|
|
@Parameter(name = "id", description = "编号", required = true, example = "1024")
|
|
|
- @PreAuthorize("@ss.hasPermission('tenant:dict-data:query')")
|
|
|
+ // @PreAuthorize("@ss.hasPermission('tenant:dict-data:query')")
|
|
|
public CommonResult<DictDataTenantRespVO> getDictData(@RequestParam("id") Long id) {
|
|
|
DictDataTenantDO dictData = dictDataTenantService.getDictData(id);
|
|
|
return success(BeanUtils.toBean(dictData, DictDataTenantRespVO.class));
|
|
@@ -86,7 +86,7 @@ public class DictDataTenantController {
|
|
|
@GetMapping("/page")
|
|
|
@Operation(summary = "获得租户字典数据分页")
|
|
|
@ApiOperationSupport(order = 5)
|
|
|
- @PreAuthorize("@ss.hasPermission('tenant:dict-data:query')")
|
|
|
+ // @PreAuthorize("@ss.hasPermission('tenant:dict-data:query')")
|
|
|
public CommonResult<PageResult<DictDataTenantRespVO>> getDictDataPage(@Valid @ParameterObject DictDataTenantPageReqVO pageReqVO) {
|
|
|
PageResult<DictDataTenantDO> pageResult = dictDataTenantService.getDictDataPage(pageReqVO);
|
|
|
return success(BeanUtils.toBean(pageResult, DictDataTenantRespVO.class));
|
|
@@ -95,7 +95,7 @@ public class DictDataTenantController {
|
|
|
@GetMapping("/export-excel")
|
|
|
@Operation(summary = "导出租户字典数据 Excel")
|
|
|
@ApiOperationSupport(order = 6)
|
|
|
- @PreAuthorize("@ss.hasPermission('tenant:dict-data:export')")
|
|
|
+ // @PreAuthorize("@ss.hasPermission('tenant:dict-data:export')")
|
|
|
@ApiAccessLog(operateType = EXPORT)
|
|
|
public void exportDictDataExcel(@Valid @ParameterObject DictDataTenantPageReqVO pageReqVO,
|
|
|
HttpServletResponse response) throws IOException {
|