|
@@ -4,7 +4,6 @@ import cn.dev33.satoken.annotation.SaCheckPermission;
|
|
|
import cn.dev33.satoken.annotation.SaCheckRole;
|
|
|
import com.baomidou.lock.annotation.Lock4j;
|
|
|
import jakarta.servlet.http.HttpServletResponse;
|
|
|
-import jakarta.validation.constraints.Min;
|
|
|
import jakarta.validation.constraints.NotBlank;
|
|
|
import jakarta.validation.constraints.NotEmpty;
|
|
|
import jakarta.validation.constraints.NotNull;
|
|
@@ -13,6 +12,7 @@ import org.dromara.common.core.constant.TenantConstants;
|
|
|
import org.dromara.common.core.domain.R;
|
|
|
import org.dromara.common.core.validate.AddGroup;
|
|
|
import org.dromara.common.core.validate.EditGroup;
|
|
|
+import org.dromara.common.encrypt.annotation.ApiEncrypt;
|
|
|
import org.dromara.common.excel.utils.ExcelUtil;
|
|
|
import org.dromara.common.idempotent.annotation.RepeatSubmit;
|
|
|
import org.dromara.common.log.annotation.Log;
|
|
@@ -25,14 +25,7 @@ import org.dromara.system.domain.bo.SysTenantBo;
|
|
|
import org.dromara.system.domain.vo.SysTenantVo;
|
|
|
import org.dromara.system.service.ISysTenantService;
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
|
-import org.springframework.web.bind.annotation.DeleteMapping;
|
|
|
-import org.springframework.web.bind.annotation.GetMapping;
|
|
|
-import org.springframework.web.bind.annotation.PathVariable;
|
|
|
-import org.springframework.web.bind.annotation.PostMapping;
|
|
|
-import org.springframework.web.bind.annotation.PutMapping;
|
|
|
-import org.springframework.web.bind.annotation.RequestBody;
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
@@ -87,6 +80,7 @@ public class SysTenantController extends BaseController {
|
|
|
/**
|
|
|
* 新增租户
|
|
|
*/
|
|
|
+ @ApiEncrypt
|
|
|
@SaCheckRole(TenantConstants.SUPER_ADMIN_ROLE_KEY)
|
|
|
@SaCheckPermission("system:tenant:add")
|
|
|
@Log(title = "租户", businessType = BusinessType.INSERT)
|