package com.ruoyi.admin.controller.large; import com.ruoyi.admin.large.model.AnalysisSetData; import com.ruoyi.admin.large.service.AnalysisSetDataService; import com.ruoyi.common.core.domain.R; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; /** *

* 前端控制器 *

* * @author xiaochen * @since 2025-04-22 */ @Api(tags = {"大屏-统计数据设置"}) @RestController @RequestMapping("/analysis-set-data") public class AnalysisSetDataController { private final AnalysisSetDataService analysisSetDataService; @Autowired public AnalysisSetDataController(AnalysisSetDataService analysisSetDataService) { this.analysisSetDataService = analysisSetDataService; } /** * 查询统计数据设置 */ @ApiOperation( value = "查询统计数据设置") @GetMapping(value = "/getById") public R getById() { AnalysisSetData analysisSetData = analysisSetDataService.getById(1); return R.ok(analysisSetData); } /** * 查询统计数据设置 */ @ApiOperation( value = "查询统计数据设置-大屏接口") @GetMapping(value = "/getLargeById") public R getLargeById() { AnalysisSetData analysisSetData = analysisSetDataService.getById(1); return R.ok(analysisSetData); } /** * 修改统计数据设置 */ @ApiOperation( value = "修改统计数据设置") @PostMapping(value = "/update") public R update(@RequestBody AnalysisSetData dto) { return R.ok(analysisSetDataService.updateById(dto)); } }