| | |
| | | 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> |
| | |
| | | @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); |
| | | } |
| | | } |
| | | |