From 3f481005be717250a2ea87ff9367aa84d6a3eb13 Mon Sep 17 00:00:00 2001
From: 无关风月 <443237572@qq.com>
Date: 星期六, 14 九月 2024 10:55:52 +0800
Subject: [PATCH] 课程代码

---
 xinquan-modules/xinquan-system/src/main/java/com/xinquan/system/controller/UserLevelSettingController.java |   23 ++++++++++++++++++++---
 1 files changed, 20 insertions(+), 3 deletions(-)

diff --git a/xinquan-modules/xinquan-system/src/main/java/com/xinquan/system/controller/UserLevelSettingController.java b/xinquan-modules/xinquan-system/src/main/java/com/xinquan/system/controller/UserLevelSettingController.java
index 39be3ac..96a90a9 100644
--- a/xinquan-modules/xinquan-system/src/main/java/com/xinquan/system/controller/UserLevelSettingController.java
+++ b/xinquan-modules/xinquan-system/src/main/java/com/xinquan/system/controller/UserLevelSettingController.java
@@ -1,9 +1,13 @@
 package com.xinquan.system.controller;
 
 
-import org.springframework.web.bind.annotation.RequestMapping;
+import com.xinquan.common.core.domain.R;
+import com.xinquan.system.api.domain.vo.AppUserVO;
+import com.xinquan.system.api.domain.UserLevelSetting;
+import com.xinquan.system.service.UserLevelSettingService;
+import org.springframework.web.bind.annotation.*;
 
-import org.springframework.web.bind.annotation.RestController;
+import javax.annotation.Resource;
 
 /**
  * <p>
@@ -16,6 +20,19 @@
 @RestController
 @RequestMapping("/system/user-level-setting")
 public class UserLevelSettingController {
-
+    @Resource
+    private UserLevelSettingService userLevelSettingService;
+    /**
+     * 远程调用根据树苗等级获取疗愈图标和疗愈名称
+     *
+     * @return 用户信息
+     * @see AppUserVO
+     */
+    @GetMapping("/getIconNameByLevel/{level}")
+    public R<UserLevelSetting> getIconNameByLevel(@PathVariable("level")Integer level) {
+        UserLevelSetting one = userLevelSettingService.lambdaQuery()
+                .eq(UserLevelSetting::getTreeLevelType, level).one();
+        return R.ok(one);
+    }
 }
 

--
Gitblit v1.7.1