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));
|
}
|
|
}
|