liujie
17 小时以前 2a9b952d21b3ef9cf63e4618a8e5afdf8a5f32bc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
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);
    }
}