| | |
| | | |
| | | 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; |
| | |
| | | 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) { |
| | | 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')") |
| | |
| | | } |
| | | |
| | | } |
| | | |