|
@@ -46,7 +46,7 @@ public class DictTypeTenantController {
|
|
|
@PostMapping("/create")
|
|
|
@Operation(summary = "创建租户字典类型")
|
|
|
@ApiOperationSupport(order = 1)
|
|
|
- @PreAuthorize("@ss.hasPermission('tenant:dict-type:create')")
|
|
|
+ // @PreAuthorize("@ss.hasPermission('tenant:dict-type:create')")
|
|
|
public CommonResult<Long> createDictType(@Valid @RequestBody DictTypeTenantSaveReqVO createReqVO) {
|
|
|
return success(dictTypeTenantService.createDictType(createReqVO));
|
|
|
}
|
|
@@ -54,7 +54,7 @@ public class DictTypeTenantController {
|
|
|
@PutMapping("/update")
|
|
|
@Operation(summary = "更新租户字典类型")
|
|
|
@ApiOperationSupport(order = 2)
|
|
|
- @PreAuthorize("@ss.hasPermission('tenant:dict-type:update')")
|
|
|
+ // @PreAuthorize("@ss.hasPermission('tenant:dict-type:update')")
|
|
|
public CommonResult<Boolean> updateDictType(@Valid @RequestBody DictTypeTenantSaveReqVO updateReqVO) {
|
|
|
dictTypeTenantService.updateDictType(updateReqVO);
|
|
|
return success(true);
|
|
@@ -64,7 +64,7 @@ public class DictTypeTenantController {
|
|
|
@Operation(summary = "删除租户字典类型")
|
|
|
@ApiOperationSupport(order = 3)
|
|
|
@Parameter(name = "id", description = "编号", required = true)
|
|
|
- @PreAuthorize("@ss.hasPermission('tenant:dict-type:delete')")
|
|
|
+ // @PreAuthorize("@ss.hasPermission('tenant:dict-type:delete')")
|
|
|
public CommonResult<Boolean> deleteDictType(@RequestParam("id") Long id) {
|
|
|
dictTypeTenantService.deleteDictType(id);
|
|
|
return success(true);
|
|
@@ -74,7 +74,7 @@ public class DictTypeTenantController {
|
|
|
@Operation(summary = "获得租户字典类型")
|
|
|
@ApiOperationSupport(order = 4)
|
|
|
@Parameter(name = "id", description = "编号", required = true, example = "1024")
|
|
|
- @PreAuthorize("@ss.hasPermission('tenant:dict-type:query')")
|
|
|
+ // @PreAuthorize("@ss.hasPermission('tenant:dict-type:query')")
|
|
|
public CommonResult<DictTypeTenantRespVO> getDictType(@RequestParam("id") Long id) {
|
|
|
DictTypeTenantDO dictType = dictTypeTenantService.getDictType(id);
|
|
|
return success(BeanUtils.toBean(dictType, DictTypeTenantRespVO.class));
|
|
@@ -83,7 +83,7 @@ public class DictTypeTenantController {
|
|
|
@GetMapping("/page")
|
|
|
@Operation(summary = "获得租户字典类型分页")
|
|
|
@ApiOperationSupport(order = 5)
|
|
|
- @PreAuthorize("@ss.hasPermission('tenant:dict-type:query')")
|
|
|
+ // @PreAuthorize("@ss.hasPermission('tenant:dict-type:query')")
|
|
|
public CommonResult<PageResult<DictTypeTenantRespVO>> getDictTypePage(@Valid @ParameterObject DictTypeTenantPageReqVO pageReqVO) {
|
|
|
PageResult<DictTypeTenantDO> pageResult = dictTypeTenantService.getDictTypePage(pageReqVO);
|
|
|
return success(BeanUtils.toBean(pageResult, DictTypeTenantRespVO.class));
|
|
@@ -92,7 +92,7 @@ public class DictTypeTenantController {
|
|
|
@GetMapping("/export-excel")
|
|
|
@Operation(summary = "导出租户字典类型 Excel")
|
|
|
@ApiOperationSupport(order = 6)
|
|
|
- @PreAuthorize("@ss.hasPermission('tenant:dict-type:export')")
|
|
|
+ // @PreAuthorize("@ss.hasPermission('tenant:dict-type:export')")
|
|
|
@ApiAccessLog(operateType = EXPORT)
|
|
|
public void exportDictTypeExcel(@Valid @ParameterObject DictTypeTenantPageReqVO pageReqVO,
|
|
|
HttpServletResponse response) throws IOException {
|