!429 update 优化 通过参数键名获取键值接口的返回体

Merge pull request !429 from David Wei/update/config_response
This commit is contained in:
疯狂的狮子Li
2023-10-08 08:55:33 +00:00
committed by Gitee

View File

@ -68,8 +68,8 @@ public class SysConfigController extends BaseController {
* @param configKey 参数Key
*/
@GetMapping(value = "/configKey/{configKey}")
public R<Void> getConfigKey(@PathVariable String configKey) {
return R.ok(configService.selectConfigByKey(configKey));
public R<String> getConfigKey(@PathVariable String configKey) {
return R.ok("操作成功", configService.selectConfigByKey(configKey));
}
/**