| | |
| | | package com.ruoyi.system.controller; |
| | | |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.ruoyi.common.core.domain.R; |
| | | import com.ruoyi.system.api.domain.CustomConfig; |
| | | import com.ruoyi.system.service.ICustomConfigService; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PathVariable; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | @RestController |
| | | @RequestMapping("/custom-config") |
| | | public class CustomConfigController { |
| | | |
| | | @Resource |
| | | private ICustomConfigService iCustomConfigService; |
| | | @GetMapping(value = "/{configId}") |
| | | public R<CustomConfig> getconfig(@PathVariable String configId) |
| | | { |
| | | LambdaQueryWrapper<CustomConfig> wrapper = Wrappers.lambdaQuery(); |
| | | wrapper.eq(CustomConfig::getConfigKey, configId); |
| | | CustomConfig one = iCustomConfigService.getOne(wrapper); |
| | | return R.ok(one); |
| | | } |
| | | } |