Skip to content

Commit 542f93c

Browse files
authored
🎨 #3398【企业微信】更新"企业微信日程"对象的相关字段
1 parent 3bc4b35 commit 542f93c

File tree

1 file changed

+36
-1
lines changed

1 file changed

+36
-1
lines changed

weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpOaSchedule.java

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@ public class WxCpOaSchedule implements Serializable, ToJson {
3333
*/
3434
@SerializedName("organizer")
3535
private String organizer;
36+
/**
37+
* 管理员userid列表
38+
*/
39+
@SerializedName("admins")
40+
private List<String> admins;
3641
/**
3742
* 日程参与者列表。最多支持2000人
3843
*/
@@ -70,7 +75,7 @@ public class WxCpOaSchedule implements Serializable, ToJson {
7075
@SerializedName("end_time")
7176
private Long endTime;
7277
/**
73-
*
78+
* 日程状态。0-正常;1-已取消
7479
*/
7580
@SerializedName("status")
7681
private Integer status;
@@ -83,6 +88,11 @@ public class WxCpOaSchedule implements Serializable, ToJson {
8388
*/
8489
@SerializedName("cal_id")
8590
private String calId;
91+
/**
92+
* 是否全天日程,0-否;1-是
93+
*/
94+
@SerializedName("is_whole_day")
95+
private Integer isWholeDay;
8696

8797
@Override
8898
public String toJson() {
@@ -140,9 +150,18 @@ public static class Reminder implements Serializable {
140150
* 900 - 事件开始前15分钟
141151
* 3600 - 事件开始前1小时
142152
* 86400 - 事件开始前1天
153+
* 注意:建议使用 remind_time_diffs 字段,该字段后续将会废弃。
143154
*/
144155
@SerializedName("remind_before_event_secs")
145156
private Integer remindBeforeEventSecs;
157+
/**
158+
* 提醒时间与日程开始时间(start_time)的差值,当is_remind为1时有效。例如:-300表示日程开始前5分钟提醒。
159+
* 特殊情况:企业微信终端设置的“全天”类型的日程,由于start_time是0点时间戳,提醒如果设置了当天9点,则会出现正数32400。
160+
* <br/>
161+
* 取值范围:-604800 ~ 86399
162+
*/
163+
@SerializedName("remind_time_diffs")
164+
private List<Integer> remindTimeDiffs;
146165
/**
147166
* 重复类型,当is_repeat为1时有效。目前支持如下类型:
148167
* 0 - 每日
@@ -195,5 +214,21 @@ public static class Reminder implements Serializable {
195214
*/
196215
@SerializedName("timezone")
197216
private Integer timezone;
217+
/**
218+
* 重复日程不包含的日期列表。对重复日程修改/删除特定一天或多天,则原来的日程将会排除对应的日期。
219+
*/
220+
@SerializedName("exclude_time_list")
221+
private List<ExcludeTime> excludeTimeList;
222+
223+
@Data
224+
@Accessors(chain = true)
225+
public static class ExcludeTime implements Serializable {
226+
private static final long serialVersionUID = 5030527150838243359L;
227+
/**
228+
* 不包含的日期时间戳。
229+
*/
230+
@SerializedName("start_time")
231+
private Long startTime;
232+
}
198233
}
199234
}

0 commit comments

Comments
 (0)