| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -60,6 +60,18 @@ List<WxCpCheckinData> getCheckinData(Integer openCheckinDataType, Date startTime | |||
| 60 | 60 | */ | |
| 61 | 61 | List<WxCpCheckinOption> getCheckinOption(Date datetime, List<String> userIdList) throws WxErrorException; | |
| 62 | 62 | ||
| 63 | + | ||
| 64 | + /** | ||
| 65 | + * <pre> | ||
| 66 | + * 获取企业所有打卡规则 | ||
| 67 | + * API doc : https://work.weixin.qq.com/api/doc/90000/90135/93384 | ||
| 68 | + * </pre> | ||
| 69 | + * | ||
| 70 | + * @return 打卡规则列表 | ||
| 71 | + * @throws WxErrorException the wx error exception | ||
| 72 | + */ | ||
| 73 | + List<WxCpCropCheckinOption> getCropCheckinOption() throws WxErrorException; | ||
| 74 | + | ||
| 63 | 75 | /** | |
| 64 | 76 | * <pre> | |
| 65 | 77 | * | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -112,6 +112,22 @@ public List<WxCpCheckinOption> getCheckinOption(Date datetime, List<String> user | |||
| 112 | 112 | ); | |
| 113 | 113 | } | |
| 114 | 114 | ||
| 115 | + @Override | ||
| 116 | + public List<WxCpCropCheckinOption> getCropCheckinOption() throws WxErrorException { | ||
| 117 | + | ||
| 118 | + JsonObject jsonObject = new JsonObject(); | ||
| 119 | + final String url = this.mainService.getWxCpConfigStorage().getApiUrl(GET_CORP_CHECKIN_OPTION); | ||
| 120 | + String responseContent = this.mainService.post(url, jsonObject.toString()); | ||
| 121 | + JsonObject tmpJson = GsonParser.parse(responseContent); | ||
| 122 | + | ||
| 123 | + return WxCpGsonBuilder.create() | ||
| 124 | + .fromJson( | ||
| 125 | + tmpJson.get("group"), | ||
| 126 | + new TypeToken<List<WxCpCropCheckinOption>>() { | ||
| 127 | + }.getType() | ||
| 128 | + ); | ||
| 129 | + } | ||
| 130 | + | ||
| 115 | 131 | @Override | |
| 116 | 132 | public WxCpApprovalInfo getApprovalInfo(@NonNull Date startTime, @NonNull Date endTime, | |
| 117 | 133 | Integer cursor, Integer size, List<WxCpApprovalInfoQueryFilter> filters) throws WxErrorException { | |
| Back | FazBrowse Home | New Git URL |
0 commit comments