Skip to content

Commit 854647e

Browse files
committed
fix: getAllDepartments deserialize exception
1 parent ff2a57d commit 854647e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-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.10</version>
9+
<version>3.1.11</version>
1010

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

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public class DepartmentDto {
9090
* 部门关联的岗位
9191
*/
9292
@JsonProperty("posts")
93-
private List<String> posts;
93+
private List<PostDto> posts;
9494
/**
9595
* 岗位 id 列表
9696
*/
@@ -219,10 +219,10 @@ public void setCustomData(Object customData) {
219219
this.customData = customData;
220220
}
221221

222-
public List<String> getPosts() {
222+
public List<PostDto> getPosts() {
223223
return posts;
224224
}
225-
public void setPosts(List<String> posts) {
225+
public void setPosts(List<PostDto> posts) {
226226
this.posts = posts;
227227
}
228228

0 commit comments

Comments
 (0)