From e4c390e6c04a93ac6a4301db4764d99c9b09a5f8 Mon Sep 17 00:00:00 2001 From: mingshewhe Date: Wed, 23 Aug 2023 15:56:24 +0800 Subject: [PATCH] =?UTF-8?q?bug:=20=E8=8E=B7=E5=8F=96=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E7=BB=84=E6=88=90=E5=91=98=E6=8E=A5=E5=8F=A3=E5=88=86=E9=A1=B5?= =?UTF-8?q?=E4=BC=A0=E5=8F=82=E9=94=99=E8=AF=AF=20#62?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build.gradle | 2 +- .../com/tencent/bk/sdk/iam/service/v2/V2ManagerService.java | 2 +- .../bk/sdk/iam/service/v2/impl/V2ManagerServiceImpl.java | 4 ++-- .../bk/sdk/iam/service/v2/impl/V2ManagerServiceTest.java | 6 +++--- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/build.gradle b/build.gradle index ba40265..b4664f8 100644 --- a/build.gradle +++ b/build.gradle @@ -33,7 +33,7 @@ ext { set("junitVersion", "5.4.2") if (System.getProperty("snapshot") == "true") { - set('iamVersion', "1.0.30-SNAPSHOT") + set('iamVersion', "1.0.31-SNAPSHOT") } else { set('iamVersion', "1.0.0") } diff --git a/src/main/java/com/tencent/bk/sdk/iam/service/v2/V2ManagerService.java b/src/main/java/com/tencent/bk/sdk/iam/service/v2/V2ManagerService.java index 813b563..a98b65b 100644 --- a/src/main/java/com/tencent/bk/sdk/iam/service/v2/V2ManagerService.java +++ b/src/main/java/com/tencent/bk/sdk/iam/service/v2/V2ManagerService.java @@ -175,7 +175,7 @@ public GradeManagerApplicationResponse updateGradeManagerApplication(String grad /** * 用户组成员列表 */ - public ManagerGroupMemberVo getRoleGroupMemberV2(Integer groupId, PageInfoDTO pageInfoDTO); + public ManagerGroupMemberVo getRoleGroupMemberV2(Integer groupId, V2PageInfoDTO pageInfoDTO); /** * 用户组成员续期(不需要审批版本) diff --git a/src/main/java/com/tencent/bk/sdk/iam/service/v2/impl/V2ManagerServiceImpl.java b/src/main/java/com/tencent/bk/sdk/iam/service/v2/impl/V2ManagerServiceImpl.java index 6271ede..ea2a153 100644 --- a/src/main/java/com/tencent/bk/sdk/iam/service/v2/impl/V2ManagerServiceImpl.java +++ b/src/main/java/com/tencent/bk/sdk/iam/service/v2/impl/V2ManagerServiceImpl.java @@ -211,8 +211,8 @@ public void deleteRoleGroupMemberV2(Integer groupId, String type, String members } @Override - public ManagerGroupMemberVo getRoleGroupMemberV2(Integer groupId, PageInfoDTO pageInfoDTO) { - String url = buildURLPage(String.format(V2IamUri.V2_MANAGER_ROLE_GROUP_MEMBER_GET, iamConfiguration.getSystemId(), groupId), pageInfoDTO); + public ManagerGroupMemberVo getRoleGroupMemberV2(Integer groupId, V2PageInfoDTO pageInfoDTO) { + String url = v2BuildURLPage(String.format(V2IamUri.V2_MANAGER_ROLE_GROUP_MEMBER_GET, iamConfiguration.getSystemId(), groupId), pageInfoDTO); try { String responseStr = apigwHttpClientService.doHttpGet(url); if (StringUtils.isNotBlank(responseStr)) { diff --git a/src/test/java/com/tencent/bk/sdk/iam/service/v2/impl/V2ManagerServiceTest.java b/src/test/java/com/tencent/bk/sdk/iam/service/v2/impl/V2ManagerServiceTest.java index b903c60..ae06b62 100644 --- a/src/test/java/com/tencent/bk/sdk/iam/service/v2/impl/V2ManagerServiceTest.java +++ b/src/test/java/com/tencent/bk/sdk/iam/service/v2/impl/V2ManagerServiceTest.java @@ -136,9 +136,9 @@ public void testVerifyGroupValidMember() { @Test public void testV2GetRoleGroupMember() { - PageInfoDTO pageInfoDTO = new PageInfoDTO(); - pageInfoDTO.setLimit(1L); - pageInfoDTO.setOffset(0L); + V2PageInfoDTO pageInfoDTO = new V2PageInfoDTO(); + pageInfoDTO.setPageSize(1); + pageInfoDTO.setPage(0); ManagerGroupMemberVo managerGroupMemberVo = v2ManagerService.getRoleGroupMemberV2(10031, pageInfoDTO); System.out.println(managerGroupMemberVo); }