fix(upms): 收紧客户端详情查询接口权限

将 Feign 查询接口改为仅内部调用,并新增带权限的 /client/details 供管理端使用。
This commit is contained in:
PIGCLOUD committed 2026-08-03 08:27:40 +08:00
1 parent d1876914d2
commit a043c4f19e
1 file changed
+7 -12
@@ -1,6 +1,6 @@
/*
*
* Copyright (c) 2018-2026, lengleng All rights reserved.
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
@@ -141,23 +141,18 @@ public class SysClientController {
return R.ok(clientDetailsService.updateClientById(clientDetailsDTO));
}
@Inner(false)
/**
* Feign 查询客户端信息的接口
* @param clientId 客户端 ID
* @return 基本信息
*/
@Inner
@GetMapping("/getClientDetailsById/{clientId}")
public R getClientDetailsById(@PathVariable String clientId) {
return R.ok(clientDetailsService.getOne(
Wrappers.<SysOauthClientDetails>lambdaQuery().eq(SysOauthClientDetails::getClientId, clientId), false));
}
/**
* 查询全部客户端
* @return
*/
@Inner(false)
@GetMapping("/list")
public R listClients() {
return R.ok(clientDetailsService.list());
}
/**
* 同步缓存字典
* @return R