|
@@ -2,13 +2,14 @@ package com.bizmatics.controller.web;
|
|
|
|
|
|
|
|
|
import com.bizmatics.common.core.bean.ApiResult;
|
|
|
+import com.bizmatics.common.core.bean.CommonPage;
|
|
|
+import com.bizmatics.model.SysTenant;
|
|
|
+import com.bizmatics.model.vo.SysTenantOneVo;
|
|
|
import com.bizmatics.model.vo.SysTenantVo;
|
|
|
import com.bizmatics.service.SysTenantService;
|
|
|
import com.bizmatics.service.system.ISysUserService;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
-import org.springframework.web.bind.annotation.GetMapping;
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
@@ -19,17 +20,22 @@ import java.util.List;
|
|
|
* @since 2022-05-05
|
|
|
*/
|
|
|
@RestController
|
|
|
-@RequestMapping("/sysTenant")
|
|
|
+@RequestMapping("/tenantConfig")
|
|
|
public class TenantConfigController {
|
|
|
|
|
|
@Autowired
|
|
|
private SysTenantService sysTenantService;
|
|
|
|
|
|
- @Autowired
|
|
|
- private ISysUserService userService;
|
|
|
-
|
|
|
-
|
|
|
|
|
|
+ /**
|
|
|
+ * 租户管理-租户单位配置-列表查询
|
|
|
+ * @param sysTenantOneVo
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @PostMapping("getTenantData")
|
|
|
+ public ApiResult<CommonPage<SysTenant>> getTenantData(@RequestBody SysTenantOneVo sysTenantOneVo) {
|
|
|
+ return ApiResult.success(sysTenantService.getTenantData(sysTenantOneVo));
|
|
|
+ }
|
|
|
|
|
|
|
|
|
}
|