5 changed files with 127 additions and 0 deletions
@ -0,0 +1,31 @@ |
|||
package com.epmet.dto.form; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Author zxc |
|||
* @DateTime 2021/11/23 9:57 上午 |
|||
* @DESC |
|||
*/ |
|||
@Data |
|||
public class AppointmentTimeFormDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = -3645075481936669437L; |
|||
|
|||
public interface AppointmentTimeForm{} |
|||
|
|||
/** |
|||
* 事项ID |
|||
*/ |
|||
@NotBlank(message = "matterId不能为空",groups = AppointmentTimeForm.class) |
|||
private String matterId; |
|||
|
|||
/** |
|||
* 日期,默认当天 |
|||
*/ |
|||
@NotBlank(message = "date不能为空",groups = AppointmentTimeForm.class) |
|||
private String date; |
|||
} |
@ -0,0 +1,34 @@ |
|||
package com.epmet.dto.result; |
|||
|
|||
import com.epmet.dto.TimeDTO; |
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.ArrayList; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @Author zxc |
|||
* @DateTime 2021/11/23 9:55 上午 |
|||
* @DESC |
|||
*/ |
|||
@Data |
|||
public class AppointmentTimeResultDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 8724962797702659712L; |
|||
|
|||
/** |
|||
* 预约类型【每天:everyDay,工作日:workDay,周末:weekend】 |
|||
*/ |
|||
private String appointmentType; |
|||
|
|||
/** |
|||
* 时间段 |
|||
*/ |
|||
private List<TimeDTO> timeDetail; |
|||
|
|||
public AppointmentTimeResultDTO() { |
|||
this.appointmentType = ""; |
|||
this.timeDetail = new ArrayList<>(); |
|||
} |
|||
} |
Loading…
Reference in new issue