| | |
| | | package com.ruoyi.web.controller.api; |
| | | |
| | | |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | | import com.ruoyi.system.domain.TConfig; |
| | | import com.ruoyi.system.domain.TCustomerService; |
| | | import com.ruoyi.system.service.TConfigService; |
| | | import com.ruoyi.system.service.TCustomerServiceService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | * @author xiaochen |
| | | * @since 2024-02-29 |
| | | */ |
| | | @Api(tags = "基础配置") |
| | | @RestController |
| | | @RequestMapping("/tConfig") |
| | | public class TConfigController { |
| | | |
| | | private final TConfigService configService; |
| | | |
| | | @Autowired |
| | | public TConfigController(TConfigService configService) { |
| | | this.configService = configService; |
| | | } |
| | | |
| | | /** |
| | | * 通过id查询协议内容 |
| | | */ |
| | | @ApiOperation(value = "通过id查询协议内容",notes = "1=创业合伙人配置 2=会员说明 3=剧本出售说明 4=短剧出售说明 5=用户协议 6=隐私协议 7=注销协议") |
| | | @GetMapping("/getConfigById") |
| | | public AjaxResult<TConfig> getConfigById(@RequestParam Long id) |
| | | { |
| | | return AjaxResult.success(configService.getById(id)); |
| | | } |
| | | |
| | | /** |
| | | * 修改协议内容 |
| | | */ |
| | | @ApiOperation(value = "修改协议内容",notes = "修改协议内容") |
| | | @PostMapping("/updateConfigById") |
| | | public AjaxResult<TConfig> updateConfigById(@RequestBody TConfig config) |
| | | { |
| | | return AjaxResult.success(configService.updateById(config)); |
| | | } |
| | | |
| | | } |
| | | |