|  |  | 
 |  |  |  | 
 |  |  | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; | 
 |  |  | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; | 
 |  |  | import com.vincent.rsf.framework.common.BaseRes; | 
 |  |  | import com.vincent.rsf.framework.common.Cools; | 
 |  |  | import com.vincent.rsf.framework.common.R; | 
 |  |  | import com.vincent.rsf.server.common.annotation.OperationLog; | 
 |  |  | 
 |  |  |     @OperationLog("Init Tenant") | 
 |  |  |     @PostMapping("/tenant/init") | 
 |  |  |     public R init(@RequestBody TenantInitParam param) { | 
 |  |  |         tenantService.initTenant(param); | 
 |  |  |         return R.ok("Initialize Success"); | 
 |  |  |         return null != tenantService.initTenant(param) ? R.ok("Initialize Success") : R.parse(BaseRes.PARAM); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     @PreAuthorize("hasAuthority('system:tenant:update')") |