Skip to content

Commit 992351a

Browse files
committed
feat:数据权限鉴权相关 API 新增
1 parent 20ca157 commit 992351a

File tree

74 files changed

+6239
-3653
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+6239
-3653
lines changed

src/main/java/cn/authing/sdk/java/client/ManagementClient.java

Lines changed: 4375 additions & 3433 deletions
Large diffs are not rendered by default.

src/main/java/cn/authing/sdk/java/dto/AddDepartmentMembersReqDto.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ public class AddDepartmentMembersReqDto {
2525
*/
2626
@JsonProperty("departmentIdType")
2727
private DepartmentIdType departmentIdType;
28+
/**
29+
* 租户 ID
30+
*/
31+
@JsonProperty("tenantId")
32+
private String tenantId;
2833

2934
public List<String> getUserIds() {
3035
return userIds;
@@ -54,6 +59,13 @@ public void setDepartmentIdType(DepartmentIdType departmentIdType) {
5459
this.departmentIdType = departmentIdType;
5560
}
5661

62+
public String getTenantId() {
63+
return tenantId;
64+
}
65+
public void setTenantId(String tenantId) {
66+
this.tenantId = tenantId;
67+
}
68+
5769

5870
/**
5971
* 此次调用中使用的部门 ID 的类型
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
package cn.authing.sdk.java.dto;
2+
3+
import java.util.List;
4+
import com.fasterxml.jackson.annotation.JsonProperty;
5+
6+
7+
public class ArrResourceAuthAction {
8+
/**
9+
* 数组数据资源的 values
10+
*/
11+
@JsonProperty("values")
12+
private List<String> values;
13+
/**
14+
* 数组数据资源的 actions
15+
*/
16+
@JsonProperty("actions")
17+
private List<String> actions;
18+
19+
public List<String> getValues() {
20+
return values;
21+
}
22+
public void setValues(List<String> values) {
23+
this.values = values;
24+
}
25+
26+
public List<String> getActions() {
27+
return actions;
28+
}
29+
public void setActions(List<String> actions) {
30+
this.actions = actions;
31+
}
32+
33+
34+
35+
}

src/main/java/cn/authing/sdk/java/dto/AssociateTenantResourceDto.java

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,31 +6,31 @@
66

77
public class AssociateTenantResourceDto {
88
/**
9-
* 应用 ID
9+
* 资源 Code
1010
*/
11-
@JsonProperty("appId")
12-
private String appId;
11+
@JsonProperty("code")
12+
private String code;
1313
/**
1414
* 是否关联应用资源
1515
*/
1616
@JsonProperty("association")
1717
private Boolean association;
1818
/**
19-
* 资源 Code
19+
* 应用 ID
2020
*/
21-
@JsonProperty("code")
22-
private String code;
21+
@JsonProperty("appId")
22+
private String appId;
2323
/**
2424
* 租户 ID
2525
*/
2626
@JsonProperty("tenantId")
2727
private String tenantId;
2828

29-
public String getAppId() {
30-
return appId;
29+
public String getCode() {
30+
return code;
3131
}
32-
public void setAppId(String appId) {
33-
this.appId = appId;
32+
public void setCode(String code) {
33+
this.code = code;
3434
}
3535

3636
public Boolean getAssociation() {
@@ -40,11 +40,11 @@ public void setAssociation(Boolean association) {
4040
this.association = association;
4141
}
4242

43-
public String getCode() {
44-
return code;
43+
public String getAppId() {
44+
return appId;
4545
}
46-
public void setCode(String code) {
47-
this.code = code;
46+
public void setAppId(String appId) {
47+
this.appId = appId;
4848
}
4949

5050
public String getTenantId() {

src/main/java/cn/authing/sdk/java/dto/AuthorizeApplicationAccessDto.java

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,16 @@
66
import cn.authing.sdk.java.dto.ApplicationPermissionRecordItem;
77

88
public class AuthorizeApplicationAccessDto {
9-
/**
10-
* 授权主体列表,最多 10 条
11-
*/
12-
@JsonProperty("list")
13-
private List<ApplicationPermissionRecordItem> list;
149
/**
1510
* 应用 ID
1611
*/
1712
@JsonProperty("appId")
1813
private String appId;
19-
20-
public List<ApplicationPermissionRecordItem> getList() {
21-
return list;
22-
}
23-
public void setList(List<ApplicationPermissionRecordItem> list) {
24-
this.list = list;
25-
}
14+
/**
15+
* 授权主体列表,最多 10 条
16+
*/
17+
@JsonProperty("list")
18+
private List<ApplicationPermissionRecordItem> list;
2619

2720
public String getAppId() {
2821
return appId;
@@ -31,6 +24,13 @@ public void setAppId(String appId) {
3124
this.appId = appId;
3225
}
3326

27+
public List<ApplicationPermissionRecordItem> getList() {
28+
return list;
29+
}
30+
public void setList(List<ApplicationPermissionRecordItem> list) {
31+
this.list = list;
32+
}
33+
3434

3535

3636
}

src/main/java/cn/authing/sdk/java/dto/ChangeExtIdpAssociationStateDto.java

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,36 +5,36 @@
55

66

77
public class ChangeExtIdpAssociationStateDto {
8-
/**
9-
* 是否关联身份源
10-
*/
11-
@JsonProperty("association")
12-
private Boolean association;
138
/**
149
* 身份源连接 ID
1510
*/
1611
@JsonProperty("id")
1712
private String id;
13+
/**
14+
* 是否关联身份源
15+
*/
16+
@JsonProperty("association")
17+
private Boolean association;
1818
/**
1919
* 租户 ID
2020
*/
2121
@JsonProperty("tenantId")
2222
private String tenantId;
2323

24-
public Boolean getAssociation() {
25-
return association;
26-
}
27-
public void setAssociation(Boolean association) {
28-
this.association = association;
29-
}
30-
3124
public String getId() {
3225
return id;
3326
}
3427
public void setId(String id) {
3528
this.id = id;
3629
}
3730

31+
public Boolean getAssociation() {
32+
return association;
33+
}
34+
public void setAssociation(Boolean association) {
35+
this.association = association;
36+
}
37+
3838
public String getTenantId() {
3939
return tenantId;
4040
}

src/main/java/cn/authing/sdk/java/dto/ChangeExtIdpConnStateDto.java

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,20 @@
66

77
public class ChangeExtIdpConnStateDto {
88
/**
9-
* 应用 ID
9+
* 身份源连接 ID
1010
*/
11-
@JsonProperty("appId")
12-
private String appId;
11+
@JsonProperty("id")
12+
private String id;
1313
/**
1414
* 是否开启身份源连接
1515
*/
1616
@JsonProperty("enabled")
1717
private Boolean enabled;
1818
/**
19-
* 身份源连接 ID
19+
* 应用 ID
2020
*/
21-
@JsonProperty("id")
22-
private String id;
21+
@JsonProperty("appId")
22+
private String appId;
2323
/**
2424
* 租户 ID
2525
*/
@@ -31,11 +31,11 @@ public class ChangeExtIdpConnStateDto {
3131
@JsonProperty("appIds")
3232
private List<String> appIds;
3333

34-
public String getAppId() {
35-
return appId;
34+
public String getId() {
35+
return id;
3636
}
37-
public void setAppId(String appId) {
38-
this.appId = appId;
37+
public void setId(String id) {
38+
this.id = id;
3939
}
4040

4141
public Boolean getEnabled() {
@@ -45,11 +45,11 @@ public void setEnabled(Boolean enabled) {
4545
this.enabled = enabled;
4646
}
4747

48-
public String getId() {
49-
return id;
48+
public String getAppId() {
49+
return appId;
5050
}
51-
public void setId(String id) {
52-
this.id = id;
51+
public void setAppId(String appId) {
52+
this.appId = appId;
5353
}
5454

5555
public String getTenantId() {
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
package cn.authing.sdk.java.dto;
2+
3+
import java.util.List;
4+
import com.fasterxml.jackson.annotation.JsonProperty;
5+
6+
7+
public class ChangeUserPoolTenantExtIdpConnDto {
8+
/**
9+
* 是否开启身份源连接
10+
*/
11+
@JsonProperty("enabled")
12+
private Boolean enabled;
13+
/**
14+
* 身份源连接 ID
15+
*/
16+
@JsonProperty("connIds")
17+
private List<String> connIds;
18+
19+
public Boolean getEnabled() {
20+
return enabled;
21+
}
22+
public void setEnabled(Boolean enabled) {
23+
this.enabled = enabled;
24+
}
25+
26+
public List<String> getConnIds() {
27+
return connIds;
28+
}
29+
public void setConnIds(List<String> connIds) {
30+
this.connIds = connIds;
31+
}
32+
33+
34+
35+
}

src/main/java/cn/authing/sdk/java/dto/CheckExternalUserPermissionDto.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
public class CheckExternalUserPermissionDto {
99
/**
10-
* 数据资源路径列表,
10+
* 资源路径列表,**树资源需到具体树节点**
1111
*/
1212
@JsonProperty("resources")
1313
private List<String> resources;

src/main/java/cn/authing/sdk/java/dto/CheckPermissionArrayResourceDto.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
public class CheckPermissionArrayResourceDto {
88
/**
9-
* 数据资源路径列表,
9+
* 数组数据资源路径列表,
1010
*/
1111
@JsonProperty("resources")
1212
private List<String> resources;

0 commit comments

Comments
 (0)