| | |
| | | import com.ruoyi.other.api.dto.StartPageSetDto; |
| | | 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; |
| | |
| | | systemConfigService.save(systemConfig); |
| | | return R.ok(); |
| | | } |
| | | @PostMapping("/index/detail") |
| | | @GetMapping("/index/detail") |
| | | @ApiOperation(value = "宣传图片-公司简介", tags = {"后台-广告管理-首页配置","小程序-首页"}) |
| | | public R<IndexConfigSetDto> detail(){ |
| | | SystemConfig one = systemConfigService.lambdaQuery().eq(SystemConfig::getType, 2).one(); |
| | |
| | | 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); |
| | | } |
| | | |
| | | @PostMapping("/index/start") |
| | | @ApiOperation(value = "宣传图片-公司简介", tags = {"小程序-启动页"}) |