refactor(system): 扩展配置刷新接口支持 PATCH 方法

- 在 ConfigController 中更新 refreshCache 方法的映射
- 增加对 PUT 和 PATCH 方法的支持
This commit is contained in:
Theo
2024-11-23 00:29:31 +08:00
parent 60cba101ed
commit 3a9350c14a

View File

@@ -57,7 +57,7 @@ public class ConfigController {
}
@Operation(summary = "刷新系统配置缓存")
@PutMapping(value = "/refresh")
@RequestMapping(value = "/refresh", method = {RequestMethod.PUT,RequestMethod.PATCH})
@PreAuthorize("@ss.hasPerm('sys:config:refresh')")
public Result<ConfigForm> refreshCache() {
return Result.judge(configService.refreshCache());