Skip to content

Commit ff2a57d

Browse files
authored
Merge pull request #66 from Authing/feat/withtenant
feat: 1. TenantUserDto 新增 departmentIds 可选属性,字符串数组类型
2 parents 932c815 + 12da855 commit ff2a57d

File tree

7 files changed

+72
-4
lines changed

7 files changed

+72
-4
lines changed

pom.xml

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

77
<groupId>cn.authing</groupId>
88
<artifactId>authing-java-sdk</artifactId>
9-
<version>3.1.9</version>
9+
<version>3.1.10</version>
1010

1111
<name>Authing Java SDK</name>
1212
<description>java backend sdk for authing</description>

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

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,11 @@ public class GetUserBatchDto {
4545
*/
4646
@JsonProperty("withDepartmentIds")
4747
private Boolean withDepartmentIds;
48+
/**
49+
* 是否获取租户 ID 列表
50+
*/
51+
@JsonProperty("withTenantIds")
52+
private Boolean withTenantIds;
4853

4954
public String getUserIds() {
5055
return userIds;
@@ -88,6 +93,11 @@ public void setWithDepartmentIds(Boolean withDepartmentIds) {
8893
this.withDepartmentIds = withDepartmentIds;
8994
}
9095

96+
public Boolean getWithTenantIds() {
97+
return withTenantIds;
98+
}
9199

92-
100+
public void setWithTenantIds(Boolean withTenantIds) {
101+
this.withTenantIds = withTenantIds;
102+
}
93103
}

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

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,12 @@ public class GetUserDto {
5151
@JsonProperty("withDepartmentIds")
5252
private Boolean withDepartmentIds;
5353

54+
/**
55+
* 是否获取租户 ID 列表
56+
*/
57+
@JsonProperty("withTenantIds")
58+
private Boolean withTenantIds;
59+
5460
public String getUserId() {
5561
return userId;
5662
}
@@ -100,6 +106,11 @@ public void setWithDepartmentIds(Boolean withDepartmentIds) {
100106
this.withDepartmentIds = withDepartmentIds;
101107
}
102108

109+
public Boolean getWithTenantIds() {
110+
return withTenantIds;
111+
}
103112

104-
113+
public void setWithTenantIds(Boolean withTenantIds) {
114+
this.withTenantIds = withTenantIds;
115+
}
105116
}

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

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ public class ListTenantUsersOptionsDto {
1111
*/
1212
@JsonProperty("pagination")
1313
private PaginationDto pagination;
14+
/**
15+
* 是否获取部门 ID 列表
16+
*/
17+
@JsonProperty("withDepartmentIds")
18+
private Boolean withDepartmentIds;
1419

1520
public PaginationDto getPagination() {
1621
return pagination;
@@ -20,5 +25,11 @@ public void setPagination(PaginationDto pagination) {
2025
}
2126

2227

28+
public Boolean getWithDepartmentIds() {
29+
return withDepartmentIds;
30+
}
2331

32+
public void setWithDepartmentIds(Boolean withDepartmentIds) {
33+
this.withDepartmentIds = withDepartmentIds;
34+
}
2435
}

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

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,12 @@ public class ListUsersOptionsDto {
6666
@JsonProperty("flatCustomData")
6767
private Boolean flatCustomData;
6868

69+
/**
70+
* 是否获取租户 ID 列表
71+
*/
72+
@JsonProperty("withTenantIds")
73+
private Boolean withTenantIds;
74+
6975
public PaginationDto getPagination() {
7076
return pagination;
7177
}
@@ -122,6 +128,11 @@ public void setFlatCustomData(Boolean flatCustomData) {
122128
this.flatCustomData = flatCustomData;
123129
}
124130

131+
public Boolean getWithTenantIds() {
132+
return withTenantIds;
133+
}
125134

126-
135+
public void setWithTenantIds(Boolean withTenantIds) {
136+
this.withTenantIds = withTenantIds;
137+
}
127138
}

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

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,12 @@ public class TenantUserDto {
155155
@JsonProperty("salt")
156156
private String salt;
157157

158+
/**
159+
* 部门列表
160+
*/
161+
@JsonProperty("departmentIds")
162+
private List<String> departmentIds;
163+
158164
public String getEmail() {
159165
return email;
160166
}
@@ -358,6 +364,13 @@ public void setSalt(String salt) {
358364
this.salt = salt;
359365
}
360366

367+
public List<String> getDepartmentIds() {
368+
return departmentIds;
369+
}
370+
371+
public void setDepartmentIds(List<String> departmentIds) {
372+
this.departmentIds = departmentIds;
373+
}
361374

362375
/**
363376
* 性别:

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,11 @@ public class UserDto {
301301
*/
302302
@JsonProperty("tenantId")
303303
private String tenantId;
304+
/**
305+
* 用户租户 ID 列表
306+
*/
307+
@JsonProperty("tenantIds")
308+
private List<String> tenantIds;
304309

305310
public String getUserId() {
306311
return userId;
@@ -694,6 +699,13 @@ public void setTenantId(String tenantId) {
694699
this.tenantId = tenantId;
695700
}
696701

702+
public List<String> getTenantIds() {
703+
return tenantIds;
704+
}
705+
706+
public void setTenantIds(List<String> tenantIds) {
707+
this.tenantIds = tenantIds;
708+
}
697709

698710
/**
699711
* 账户当前状态:

0 commit comments

Comments
 (0)