| | |
| | | import com.ruoyi.other.api.dto.IndexConfigSetDto; |
| | | import com.ruoyi.other.service.SystemConfigService; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import io.swagger.annotations.Api; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import io.swagger.annotations.ApiOperation; |
| | | |
| | | import javax.annotation.Resource; |
| | |
| | | return R.ok(indexConfigSetDto); |
| | | |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 根据类型获取系统配置 |
| | | * @param type |
| | | * @return |
| | | */ |
| | | @ResponseBody |
| | | @PostMapping("/getSystemConfig") |
| | | public R<SystemConfig> getSystemConfig(@RequestParam("type") Integer type){ |
| | | SystemConfig one = systemConfigService.lambdaQuery().eq(SystemConfig::getType, type).last("limit 1").one(); |
| | | return R.ok(one); |
| | | } |
| | | |
| | | } |
| | | |