diff --git a/src/main/java/cn/teammodel/model/dto/weekDuty/LessonRecordDto.java b/src/main/java/cn/teammodel/model/dto/weekDuty/LessonRecordDto.java index a274df5..d96b501 100644 --- a/src/main/java/cn/teammodel/model/dto/weekDuty/LessonRecordDto.java +++ b/src/main/java/cn/teammodel/model/dto/weekDuty/LessonRecordDto.java @@ -1,29 +1,40 @@ package cn.teammodel.model.dto.weekDuty; import lombok.Data; +import org.springframework.beans.factory.annotation.Value; +import javax.validation.constraints.NotNull; import java.util.ArrayList; import java.util.List; @Data public class LessonRecordDto { private String tmdid; + @NotNull private String scope; + @NotNull private String school; private String name; + @NotNull private String periodId; private Long stime; private Long etime; private List category; private List subjectId; private List grade; - private boolean doubleGreen = false; - private boolean singleGreen = false; - private boolean isOk = false; - private boolean quality = false; - private String DESC = "startTime"; + @Value("${lessonRecordDto.doubleGreen:false}") + private boolean doubleGreen ; + @Value("${lessonRecordDto.singleGreen:false}") + private boolean singleGreen ; + @Value("${lessonRecordDto.isOk:true}") + private boolean isOk ; + @Value("${lessonRecordDto.quality:false}") + private boolean quality; + @Value("${lessonRecordDto.desc:startTime}") + private String desc; private int pageCount; private String continuationToken; - private boolean managePage = true; + @Value("${lessonRecordDto.managePage:true}") + private boolean managePage; private boolean classMeeting; }