Skip to content

Commit

Permalink
修复通讯录标签列表返回值错误的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
NotFound403 committed Nov 1, 2023
1 parent 876d608 commit 040be03
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
import retrofit2.http.POST;
import retrofit2.http.Query;

import java.util.List;

/**
* 通讯录管理-标签管理
* <p>
Expand Down Expand Up @@ -97,5 +99,5 @@ public interface TagApi {
* @return UserInfoResponse tags
*/
@GET("tag/list")
Single<GenericResponse<Tag>> getTags();
Single<GenericResponse<List<Tag>>> getTags();
}
4 changes: 3 additions & 1 deletion wecom-sdk/src/main/java/cn/felord/api/TagApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
import retrofit2.http.POST;
import retrofit2.http.Query;

import java.util.List;

/**
* 通讯录管理-标签管理
* <p>
Expand Down Expand Up @@ -104,5 +106,5 @@ public interface TagApi {
* @throws WeComException the weComException
*/
@GET("tag/list")
GenericResponse<Tag> getTags() throws WeComException;
GenericResponse<List<Tag>> getTags() throws WeComException;
}

0 comments on commit 040be03

Please sign in to comment.