| | |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import jakarta.servlet.http.HttpServletResponse; |
| | | import java.util.*; |
| | | |
| | | @RestController |
| | |
| | | @OperationLog("Init Tenant") |
| | | @PostMapping("/tenant/init") |
| | | public R init(@RequestBody TenantInitParam param) { |
| | | return tenantService.initTenant(param) ? R.ok("Initialize Success") : R.parse(BaseRes.PARAM); |
| | | return null != tenantService.initTenant(param) ? R.ok("Initialize Success") : R.parse(BaseRes.PARAM); |
| | | } |
| | | |
| | | @PreAuthorize("hasAuthority('system:tenant:update')") |
| | |
| | | } |
| | | |
| | | } |
| | | |