|
|
@@ -12,6 +12,7 @@ import com.railway.system.domain.SysConfig;
|
|
|
import com.railway.system.service.ISysConfigService;
|
|
|
import com.railway.system.service.ISysFileService;
|
|
|
import io.swagger.annotations.Api;
|
|
|
+import io.swagger.annotations.ApiOperation;
|
|
|
import java.util.List;
|
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
|
@@ -46,6 +47,7 @@ public class SysConfigController extends BaseController {
|
|
|
/**
|
|
|
* 获取参数配置列表
|
|
|
*/
|
|
|
+ @ApiOperation(value = "获取参数配置列表")
|
|
|
@PreAuthorize("@ss.hasPermi('system:config:list')")
|
|
|
@GetMapping("/list")
|
|
|
public TableDataInfo list(SysConfig config) {
|
|
|
@@ -76,6 +78,7 @@ public class SysConfigController extends BaseController {
|
|
|
/**
|
|
|
* 根据参数键名查询参数值
|
|
|
*/
|
|
|
+ @ApiOperation(value = "根据参数键名查询参数值")
|
|
|
@GetMapping(value = "/configKey/{configKey}")
|
|
|
public AjaxResult getConfigKey(@PathVariable String configKey) {
|
|
|
return AjaxResult.success(configService.selectConfigByKey(configKey));
|
|
|
@@ -99,6 +102,7 @@ public class SysConfigController extends BaseController {
|
|
|
/**
|
|
|
* 修改参数配置
|
|
|
*/
|
|
|
+ @ApiOperation(value = "修改参数配置")
|
|
|
@PreAuthorize("@ss.hasPermi('system:config:edit')")
|
|
|
@Log(title = "参数管理", businessType = BusinessType.UPDATE)
|
|
|
@PutMapping
|
|
|
@@ -124,6 +128,7 @@ public class SysConfigController extends BaseController {
|
|
|
/**
|
|
|
* 刷新参数缓存
|
|
|
*/
|
|
|
+ @ApiOperation(value = "刷新参数缓存")
|
|
|
@PreAuthorize("@ss.hasPermi('system:config:remove')")
|
|
|
@Log(title = "参数管理", businessType = BusinessType.CLEAN)
|
|
|
@DeleteMapping("/refreshCache")
|