We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ddad91 commit 5313f17Copy full SHA for 5313f17
1 file changed
weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpHrService.java
@@ -58,7 +58,12 @@ public interface WxCpHrService {
58
* @return 员工档案数据响应 wx cp hr employee field data resp
59
* @throws WxErrorException the wx error exception
60
*/
61
- WxCpHrEmployeeFieldDataResp getEmployeeFieldInfo(String userid, boolean getAll, List<String> fields) throws WxErrorException;
+ 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
+ }
67
68
/**
69
* 更新员工档案数据.
0 commit comments