|
@@ -5,15 +5,17 @@ import io.swagger.v3.oas.annotations.media.Schema;
|
|
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.jeecg.common.api.vo.Result;
|
|
|
-import org.jeecg.common.util.RedisUtil;
|
|
|
import org.jeecg.modules.app.service.IUserService;
|
|
|
import org.jeecg.modules.app.vo.LoginUserVO;
|
|
|
+import org.jeecg.modules.system.app.entity.AppKongfuZone;
|
|
|
+import org.jeecg.modules.system.app.service.IAppKongfuZoneService;
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
+import java.util.List;
|
|
|
|
|
|
@Slf4j
|
|
|
@Tag(name = "App用户相关接口")
|
|
@@ -22,9 +24,9 @@ import javax.annotation.Resource;
|
|
|
public class AppUserController {
|
|
|
@Resource
|
|
|
private IUserService userService;
|
|
|
- @Resource
|
|
|
- private RedisUtil redisUtil;
|
|
|
|
|
|
+ @Resource
|
|
|
+ private IAppKongfuZoneService appKongfuZoneService;
|
|
|
|
|
|
/**
|
|
|
* 登录
|
|
@@ -66,4 +68,15 @@ public class AppUserController {
|
|
|
return Result.ok(userService.getUserInfo());
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @Author SheepHy
|
|
|
+ * @Description 根据用户权限获取对应金刚区
|
|
|
+ * @Date 13:56 2025/8/13
|
|
|
+ **/
|
|
|
+ @GetMapping("/queryKongfuZone")
|
|
|
+ @Operation(summary = "根据用户权限获取对应金刚区")
|
|
|
+ public Result<List<AppKongfuZone>> queryKongfuZone(){
|
|
|
+ return Result.ok(appKongfuZoneService.queryKongfuZone());
|
|
|
+ }
|
|
|
}
|