xuhy
2024-12-12 412ed345ecf217516fa697f0a25cf7e67559958f
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
package com.ruoyi.web.controller.api;
 
 
import com.ruoyi.common.core.domain.R;
import com.ruoyi.system.domain.TInfoConfig;
import com.ruoyi.system.service.TInfoConfigService;
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;
 
/**
 * <p>
 * 后台信息设置 前端控制器
 * </p>
 *
 * @author luodangjia
 * @since 2024-09-19
 */
@RestController
@RequestMapping("/t-info-config")
public class TInfoConfigController {
    @Resource
    private TInfoConfigService tInfoConfigService;
    @ApiOperation(value = "查询",tags = {"后台-系统设置-关于我们,其他设置","web-关于我们"})
    @PostMapping("/getInfoConfig")
    public R<TInfoConfig> getInfoConfig(Integer id){
        return R.ok(tInfoConfigService.getById(id));
    }
    @ApiOperation(value = "修改",tags = "后台-系统设置-关于我们,其他设置")
    @PostMapping("/updateInfoConfig")
    public R<Boolean> updateInfoConfig(@RequestBody TInfoConfig tInfoConfig){
        return R.ok(tInfoConfigService.updateById(tInfoConfig));
    }
 
}