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.TSysOtherConfig;
|
import com.ruoyi.system.service.TSysOtherConfigService;
|
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.*;
|
|
/**
|
* <p>
|
* 其他设置 前端控制器
|
* </p>
|
*
|
* @author xiaochen
|
* @since 2025-09-18
|
*/
|
@Api(tags = "其他设置")
|
@RestController
|
@RequestMapping("/t-sys-other-config")
|
public class TSysOtherConfigController {
|
private final TSysOtherConfigService sysOtherConfigService;
|
@Autowired
|
public TSysOtherConfigController(TSysOtherConfigService sysOtherConfigService) {
|
this.sysOtherConfigService = sysOtherConfigService;
|
}
|
/**
|
* 修改其他设置
|
*/
|
@Log(title = "其他设置-修改其他设置管理", businessType = BusinessType.UPDATE)
|
@ApiOperation(value = "修改其他设置管理")
|
@PostMapping(value = "/update")
|
public R<Boolean> update(@Validated @RequestBody TSysOtherConfig dto) {
|
return R.ok(sysOtherConfigService.updateById(dto));
|
}
|
|
/**
|
* 查看其他设置详情
|
*/
|
@ApiOperation(value = "查看其他设置详情")
|
@GetMapping(value = "/getDetailById")
|
public R<TSysOtherConfig> getDetailById() {
|
TSysOtherConfig sysConfig = sysOtherConfigService.getById(1);
|
return R.ok(sysConfig);
|
}
|
}
|