package com.xinquan.system.controller; import com.xinquan.common.core.domain.R; import com.xinquan.system.api.domain.vo.UpdateTreeGroupVO; import com.xinquan.system.api.domain.TreeLevelSetting; import com.xinquan.system.service.TreeLevelSettingService; import io.swagger.annotations.ApiOperation; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; import javax.annotation.Resource; import java.util.List; /** *
* 树苗音频表 前端控制器 *
* * @author mitao * @since 2024-08-21 */ @RestController @RequestMapping("/system/tree-level-setting") public class TreeLevelSettingController { @Resource private TreeLevelSettingService treeLevelSettingService; @PostMapping("/updateTreeGroup") @ApiOperation(value = "修改树苗等级音频",tags = "管理后台-树苗音频设置") public R updateTreeGroup(@RequestBody UpdateTreeGroupVO vo) { TreeLevelSetting one = treeLevelSettingService.lambdaQuery() .eq(TreeLevelSetting::getTreeLevelType, vo.getTreeLevelType()).one(); one.setGrowUpMusic(vo.getGrow_up_music()); treeLevelSettingService.updateById(one); return R.ok(); } @PostMapping("/getTreeGroup") @ApiOperation(value = "获取树苗音频等级列表",tags = "管理后台-树苗音频设置") public R