Skip to content

Commit 5313f17

Browse files
binarywangCopilot
andauthored
Update weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpHrService.java
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 4ddad91 commit 5313f17

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpHrService.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,12 @@ public interface WxCpHrService {
5858
* @return 员工档案数据响应 wx cp hr employee field data resp
5959
* @throws WxErrorException the wx error exception
6060
*/
61-
WxCpHrEmployeeFieldDataResp getEmployeeFieldInfo(String userid, boolean getAll, List<String> fields) throws WxErrorException;
61+
default WxCpHrEmployeeFieldDataResp getEmployeeFieldInfo(String userid, boolean getAll,
62+
List<String> fields) throws WxErrorException {
63+
// 为了保持接口的向后兼容性,默认实现忽略 getAll 参数,仅透传 fields。
64+
// 需要根据 getAll 返回全部字段的实现类可以自行覆盖该方法。
65+
return this.getEmployeeFieldInfo(userid, fields);
66+
}
6267

6368
/**
6469
* 更新员工档案数据.

0 commit comments

Comments
 (0)