| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "获得租户") |
| | | @Parameter(name = "id", description = "编号", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('system:tenant:query')") |
| | | public CommonResult<TenantRespVO> getTenant(@RequestParam("id") Long id) { |
| | | TenantDO tenant = tenantService.getTenant(id); |
| | | return success(BeanUtils.toBean(tenant, TenantRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "获得租户分页") |
| | | @PreAuthorize("@ss.hasPermission('system:tenant:query')") |
| | | public CommonResult<PageResult<TenantRespVO>> getTenantPage(@Valid TenantPageReqVO pageVO) { |
| | | PageResult<TenantDO> pageResult = tenantService.getTenantPage(pageVO); |
| | | return success(BeanUtils.toBean(pageResult, TenantRespVO.class)); |