Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import me.chanjar.weixin.cp.bean.oa.templatedata.TemplateDateRange;
import me.chanjar.weixin.cp.bean.oa.templatedata.TemplateTips;
import me.chanjar.weixin.cp.bean.oa.templatedata.TemplateTitle;
import me.chanjar.weixin.cp.bean.oa.templatedata.control.*;
Expand Down Expand Up @@ -84,6 +85,9 @@ public static class TemplateConfig implements Serializable {

private TemplateDate date;

@SerializedName("date_range")
private TemplateDateRange dateRange;

private TemplateSelector selector;

private TemplateContact contact;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
* 模板控件配置,包含了部分控件类型的附加类型、属性,详见附录说明。
* 目前有配置信息的控件类型有:
* Date-日期/日期+时间;
* DateRange-时长;
* Selector-单选/多选;
* Contact-成员/部门;
* Table-明细;
Expand All @@ -24,6 +25,9 @@ public class TemplateConfig implements Serializable {

private TemplateDate date;

@SerializedName("date_range")
private TemplateDateRange dateRange;

private TemplateSelector selector;

private TemplateContact contact;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package me.chanjar.weixin.cp.bean.oa.templatedata;

import com.google.gson.annotations.SerializedName;
import lombok.Data;

import java.io.Serializable;
Expand All @@ -18,4 +19,16 @@ public class TemplateDateRange implements Serializable {
* 时间刻度:hour-精确到分钟, halfday—上午/下午
*/
private String type;

/**
* 是否考虑法定节假日:0-不考虑,1-考虑
*/
@SerializedName("official_holiday")
private Integer officialHoliday;

/**
* 每天工作时长(秒),halfday模式下有效
*/
@SerializedName("perday_duration")
private Integer perdayDuration;
}