package com.ruoyi.web.controller.api; import com.ruoyi.common.annotation.Log; import com.ruoyi.common.core.domain.R; import com.ruoyi.common.enums.BusinessType; import com.ruoyi.system.model.TOtherConfig; import com.ruoyi.system.model.TPartyBuilding; import com.ruoyi.system.service.TOtherConfigService; import com.ruoyi.system.service.TPartyBuildingService; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; /** *

* 系统其他设置 前端控制器 *

* * @author xiaochen * @since 2025-11-06 */ @Api(tags = "系统其他设置") @RestController @RequestMapping("/t-other-config") public class TOtherConfigController { private final TOtherConfigService otherConfigService; @Autowired public TOtherConfigController(TOtherConfigService otherConfigService) { this.otherConfigService = otherConfigService; } /** * 修改系统其他设置 */ @Log(title = "系统其他设置管理信息-修改系统其他设置", businessType = BusinessType.UPDATE) @ApiOperation(value = "修改系统其他设置-通知阈值管理") @PostMapping(value = "/update") public R update(@Validated @RequestBody TOtherConfig dto) { return R.ok(otherConfigService.updateById(dto)); } /** * 查看系统其他设置详情 */ @ApiOperation(value = "查看系统其他设置详情") @GetMapping(value = "/getDetailById") public R getDetailById() { return R.ok(otherConfigService.getById(1)); } }