| | |
| | | import com.ruoyi.other.api.domain.BaseSetting; |
| | | import com.ruoyi.other.service.BaseSettingService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | |
| | | */ |
| | | @ResponseBody |
| | | @PostMapping("/getBaseSetting") |
| | | @ApiOperation(value = "获取基础配置", tags = {"管理后台-基础配置"}) |
| | | public R<BaseSetting> getBaseSetting(@RequestParam("id") Integer id){ |
| | | BaseSetting baseSetting = baseSettingService.getById(id); |
| | | return R.ok(baseSetting); |
| | |
| | | /** |
| | | * 保存设置 |
| | | */ |
| | | @ApiOperation(value = "保存设置", tags = {"管理后台-基础配置"}) |
| | | @PostMapping("/save") |
| | | public R saveActivityConfig(@RequestBody String json){ |
| | | JSONObject jsonObject = JSONObject.parseObject(json); |