package com.gkhy.safePlatform.account.model.dto.req;
|
|
import javax.validation.constraints.NotBlank;
|
import javax.validation.constraints.NotNull;
|
import java.util.Date;
|
|
/**
|
* 休息时间规则传参对象
|
*/
|
public class BreakTimeRuleReqDTO {
|
//ID
|
private Long id;
|
|
//时间规则名称
|
@NotBlank(message = "休息时间规则名称")
|
private String name;
|
|
//描述
|
private String info;
|
|
//休息类型
|
@NotNull(message = "休息类型未选择")
|
private Byte type;
|
|
//规则-计时单位 日,周,月,年 0,1,2,3
|
@NotNull(message = "计时单位未选择")
|
private Byte rule;
|
|
//规则序号,周(1-7),月(1-31)
|
private String ruleNumber;
|
|
//有效期
|
private Byte validPeriod;
|
|
//开始时间
|
private Date startTime;
|
|
//结束时间
|
private Date endTime;
|
|
public Long getId() {
|
return id;
|
}
|
|
public void setId(Long id) {
|
this.id = id;
|
}
|
|
public String getName() {
|
return name;
|
}
|
|
public void setName(String name) {
|
this.name = name;
|
}
|
|
public String getInfo() {
|
return info;
|
}
|
|
public void setInfo(String info) {
|
this.info = info;
|
}
|
|
public Byte getType() {
|
return type;
|
}
|
|
public void setType(Byte type) {
|
this.type = type;
|
}
|
|
public Byte getRule() {
|
return rule;
|
}
|
|
public void setRule(Byte rule) {
|
this.rule = rule;
|
}
|
|
public String getRuleNumber() {
|
return ruleNumber;
|
}
|
|
public void setRuleNumber(String ruleNumber) {
|
this.ruleNumber = ruleNumber;
|
}
|
|
public Byte getValidPeriod() {
|
return validPeriod;
|
}
|
|
public void setValidPeriod(Byte validPeriod) {
|
this.validPeriod = validPeriod;
|
}
|
|
public Date getStartTime() {
|
return startTime;
|
}
|
|
public void setStartTime(Date startTime) {
|
this.startTime = startTime;
|
}
|
|
public Date getEndTime() {
|
return endTime;
|
}
|
|
public void setEndTime(Date endTime) {
|
this.endTime = endTime;
|
}
|
}
|