Skip to content

Commit

Permalink
Merge pull request #104 from mingshewhe/issue-100
Browse files Browse the repository at this point in the history
feat: 新增用户管理相关接口 #100
  • Loading branch information
fcfang123 authored Jul 9, 2024
2 parents cf9c8a9 + 240a970 commit eb5dd42
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

package com.tencent.bk.sdk.iam.service.v2;

import com.tencent.bk.sdk.iam.constants.ManagerScopesEnum;
import com.tencent.bk.sdk.iam.dto.CallbackApplicationDTO;
import com.tencent.bk.sdk.iam.dto.GradeManagerApplicationCreateDTO;
import com.tencent.bk.sdk.iam.dto.GradeManagerApplicationUpdateDTO;
Expand Down Expand Up @@ -207,7 +206,7 @@ public GradeManagerApplicationResponse updateGradeManagerApplication(String grad
/**
* 批量查询用户/组织/人员模板加入的用户组详情
*/
public List<MemberGroupDetailsResponse> listMemberGroupsDetails(ManagerScopesEnum memberType, String memberId, String groupIds);
public List<MemberGroupDetailsResponse> listMemberGroupsDetails(String memberType, String memberId, String groupIds);

/**
* 查询用户组有权限的Action列表
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -319,12 +319,12 @@ public void renewalRoleGroupMemberApplication(GroupMemberRenewApplicationDTO gro
}

@Override
public List<MemberGroupDetailsResponse> listMemberGroupsDetails(ManagerScopesEnum memberType, String memberId, String groupIds) {
public List<MemberGroupDetailsResponse> listMemberGroupsDetails(String memberType, String memberId, String groupIds) {
try {
AuthRequestContext.setRequestName("V2_MEMBER_GROUPS_DETAILS_LIST");
String url = String.format(V2IamUri.V2_MEMBER_GROUP_DETAILS_GET,
iamConfiguration.getSystemId(),
ManagerScopesEnum.getType(memberType),
memberType,
memberId,
groupIds
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -606,7 +606,7 @@ public void testListMemberGroupsDetails() {
pageInfoDTO.setPageSize(10);
pageInfoDTO.setPage(1);
List<MemberGroupDetailsResponse> greysonfang = v2ManagerService.listMemberGroupsDetails(
ManagerScopesEnum.USER, "", ""
ManagerScopesEnum.getType(ManagerScopesEnum.USER), "", ""
);
System.out.println(greysonfang);
}
Expand Down

0 comments on commit eb5dd42

Please sign in to comment.