Skip to content

Commit

Permalink
update: 重新生成 DTO 和方法,将 client 修改为 management
Browse files Browse the repository at this point in the history
  • Loading branch information
luojielin committed Jun 23, 2022
1 parent 8952473 commit 72ac2f6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dto/PolicyCondition.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package dto

type PolicyCondition struct {
Param string `json:"param"`
Operator string `json:"operator"`
Value string `json:"value"`
Param string `json:"param"`
Operator string `json:"operator"`
Value interface{} `json:"value"`
}
10 changes: 10 additions & 0 deletions management/management_client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -947,6 +947,16 @@ func TestClient_GetUserAuthorizedResources(t *testing.T) {

}

func TestClient_GetAuthorizedResources(t *testing.T) {
response := client.GetAuthorizedResources(&dto.GetAuthorizedResourcesDto{
TargetType: "USER",
TargetIdentifier: "sdfs",
Namespace: "default",
WithDenied: false,
})
fmt.Println(response)
}

func TestClient_GetPrincipalAuthenticationInfo(t *testing.T) {
request := dto.GetUserPrincipalAuthenticationInfoDto{
UserId: "611a149db64310ca4764ab15",
Expand Down

0 comments on commit 72ac2f6

Please sign in to comment.