Browse Source

update models

deason 1 year ago
parent
commit
f3348917c3

+ 7 - 0
src/main/java/com/qmth/exam/reserve/bean/IModel.java

@@ -0,0 +1,7 @@
+package com.qmth.exam.reserve.bean;
+
+import java.io.Serializable;
+
+public interface IModel extends Serializable {
+
+}

+ 4 - 1
src/main/java/com/qmth/exam/reserve/bean/PagerReq.java

@@ -2,7 +2,9 @@ package com.qmth.exam.reserve.bean;
 
 import io.swagger.annotations.ApiModelProperty;
 
-public class PagerReq {
+public class PagerReq implements IModel {
+
+    private static final long serialVersionUID = -5839219654819501696L;
 
     @ApiModelProperty(value = "第几页(从1开始)")
     protected Integer pageNumber;
@@ -35,4 +37,5 @@ public class PagerReq {
     public void setPageSize(Integer pageSize) {
         this.pageSize = pageSize;
     }
+
 }

+ 3 - 1
src/main/java/com/qmth/exam/reserve/bean/RichTextBean.java

@@ -6,7 +6,9 @@ import lombok.Setter;
 
 @Getter
 @Setter
-public class RichTextBean {
+public class RichTextBean implements IModel {
+
+    private static final long serialVersionUID = 7989912737222340167L;
 
     @ApiModelProperty(value = "HTML内容")
     private String content;

+ 3 - 1
src/main/java/com/qmth/exam/reserve/bean/SystemPropertyBean.java

@@ -6,7 +6,9 @@ import lombok.Setter;
 
 @Getter
 @Setter
-public class SystemPropertyBean {
+public class SystemPropertyBean implements IModel {
+
+    private static final long serialVersionUID = -4792340070350637795L;
 
     @ApiModelProperty(value = "文件访问前缀")
     private String fileUrlPrefix;

+ 4 - 1
src/main/java/com/qmth/exam/reserve/bean/apply/ApplyTimePeriodResult.java

@@ -1,5 +1,6 @@
 package com.qmth.exam.reserve.bean.apply;
 
+import com.qmth.exam.reserve.bean.IModel;
 import io.swagger.annotations.ApiModelProperty;
 import lombok.Getter;
 import lombok.Setter;
@@ -8,7 +9,9 @@ import java.util.List;
 
 @Getter
 @Setter
-public class ApplyTimePeriodResult {
+public class ApplyTimePeriodResult implements IModel {
+
+    private static final long serialVersionUID = -3409273876889581427L;
 
     @ApiModelProperty(value = "剩余预约时段数量")
     private Integer unApplyNumber;

+ 4 - 1
src/main/java/com/qmth/exam/reserve/bean/apply/ApplyVO.java

@@ -1,12 +1,15 @@
 package com.qmth.exam.reserve.bean.apply;
 
+import com.qmth.exam.reserve.bean.IModel;
 import io.swagger.annotations.ApiModelProperty;
 import lombok.Getter;
 import lombok.Setter;
 
 @Getter
 @Setter
-public class ApplyVO {
+public class ApplyVO implements IModel {
+
+    private static final long serialVersionUID = 2804383719693396546L;
 
     @ApiModelProperty(value = "预约ID")
     private Long applyId;

+ 4 - 1
src/main/java/com/qmth/exam/reserve/bean/apply/TicketInfo.java

@@ -1,12 +1,15 @@
 package com.qmth.exam.reserve.bean.apply;
 
+import com.qmth.exam.reserve.bean.IModel;
 import io.swagger.annotations.ApiModelProperty;
 import lombok.Getter;
 import lombok.Setter;
 
 @Getter
 @Setter
-public class TicketInfo {
+public class TicketInfo implements IModel {
+
+    private static final long serialVersionUID = -3123736735932690992L;
 
     @ApiModelProperty(value = "预约ID")
     private Long applyId;

+ 4 - 1
src/main/java/com/qmth/exam/reserve/bean/apply/TimePeriodInfo.java

@@ -1,12 +1,15 @@
 package com.qmth.exam.reserve.bean.apply;
 
+import com.qmth.exam.reserve.bean.IModel;
 import io.swagger.annotations.ApiModelProperty;
 import lombok.Getter;
 import lombok.Setter;
 
 @Getter
 @Setter
-public class TimePeriodInfo {
+public class TimePeriodInfo implements IModel {
+
+    private static final long serialVersionUID = 8158455040867688700L;
 
     @ApiModelProperty(value = "预约时段ID")
     private Long timePeriodId;

+ 4 - 1
src/main/java/com/qmth/exam/reserve/bean/category/CategoryInfo.java

@@ -1,5 +1,6 @@
 package com.qmth.exam.reserve.bean.category;
 
+import com.qmth.exam.reserve.bean.IModel;
 import io.swagger.annotations.ApiModelProperty;
 import lombok.Getter;
 import lombok.Setter;
@@ -8,7 +9,9 @@ import java.util.List;
 
 @Getter
 @Setter
-public class CategoryInfo {
+public class CategoryInfo implements IModel {
+
+    private static final long serialVersionUID = 7281573122925814645L;
 
     @ApiModelProperty(value = "父级ID")
     private Long parentId;

+ 4 - 1
src/main/java/com/qmth/exam/reserve/bean/examsite/ExamSiteInfo.java

@@ -1,12 +1,15 @@
 package com.qmth.exam.reserve.bean.examsite;
 
+import com.qmth.exam.reserve.bean.IModel;
 import io.swagger.annotations.ApiModelProperty;
 import lombok.Getter;
 import lombok.Setter;
 
 @Getter
 @Setter
-public class ExamSiteInfo {
+public class ExamSiteInfo implements IModel {
+
+    private static final long serialVersionUID = 5269983674226667357L;
 
     @ApiModelProperty(value = "考点ID")
     private Long examSiteId;

+ 4 - 1
src/main/java/com/qmth/exam/reserve/bean/login/LoginReq.java

@@ -1,12 +1,15 @@
 package com.qmth.exam.reserve.bean.login;
 
+import com.qmth.exam.reserve.bean.IModel;
 import io.swagger.annotations.ApiModelProperty;
 import lombok.Getter;
 import lombok.Setter;
 
 @Getter
 @Setter
-public class LoginReq {
+public class LoginReq implements IModel {
+
+    private static final long serialVersionUID = -1832062599990854177L;
 
     @ApiModelProperty(value = "学校ID(选填)")
     private Long orgId;

+ 4 - 1
src/main/java/com/qmth/exam/reserve/bean/login/SessionUser.java

@@ -1,12 +1,15 @@
 package com.qmth.exam.reserve.bean.login;
 
+import com.qmth.exam.reserve.bean.IModel;
 import io.swagger.annotations.ApiModelProperty;
 import lombok.Getter;
 import lombok.Setter;
 
 @Getter
 @Setter
-public class SessionUser {
+public class SessionUser implements IModel {
+
+    private static final long serialVersionUID = 8254087838589213068L;
 
     @ApiModelProperty(value = "学校ID")
     private Long orgId;

+ 4 - 1
src/main/java/com/qmth/exam/reserve/bean/login/WechatLoginReq.java

@@ -1,12 +1,15 @@
 package com.qmth.exam.reserve.bean.login;
 
+import com.qmth.exam.reserve.bean.IModel;
 import io.swagger.annotations.ApiModelProperty;
 import lombok.Getter;
 import lombok.Setter;
 
 @Getter
 @Setter
-public class WechatLoginReq {
+public class WechatLoginReq implements IModel {
+
+    private static final long serialVersionUID = 1994016471743258846L;
 
     @ApiModelProperty(value = "考生-微信OID", required = true)
     private String openId;

+ 4 - 1
src/main/java/com/qmth/exam/reserve/bean/student/StudentInfo.java

@@ -1,12 +1,15 @@
 package com.qmth.exam.reserve.bean.student;
 
+import com.qmth.exam.reserve.bean.IModel;
 import io.swagger.annotations.ApiModelProperty;
 import lombok.Getter;
 import lombok.Setter;
 
 @Getter
 @Setter
-public class StudentInfo {
+public class StudentInfo implements IModel {
+
+    private static final long serialVersionUID = 2020394144891265954L;
 
     @ApiModelProperty(value = "学校ID")
     private Long orgId;

+ 4 - 1
src/main/java/com/qmth/exam/reserve/bean/student/WechatBindReq.java

@@ -1,12 +1,15 @@
 package com.qmth.exam.reserve.bean.student;
 
+import com.qmth.exam.reserve.bean.IModel;
 import io.swagger.annotations.ApiModelProperty;
 import lombok.Getter;
 import lombok.Setter;
 
 @Getter
 @Setter
-public class WechatBindReq {
+public class WechatBindReq implements IModel {
+
+    private static final long serialVersionUID = -3639457038451359896L;
 
     @ApiModelProperty(value = "考生-微信OID")
     private String openId;

+ 3 - 1
src/main/java/com/qmth/exam/reserve/bean/task/ApplyTaskReq.java

@@ -1,7 +1,6 @@
 package com.qmth.exam.reserve.bean.task;
 
 import com.qmth.exam.reserve.bean.PagerReq;
-
 import io.swagger.annotations.ApiModelProperty;
 import lombok.Getter;
 import lombok.Setter;
@@ -10,6 +9,9 @@ import lombok.Setter;
 @Setter
 public class ApplyTaskReq extends PagerReq {
 
+    private static final long serialVersionUID = -1610996900633972962L;
+
     @ApiModelProperty("任务名称")
     private String name;
+
 }

+ 5 - 1
src/main/java/com/qmth/exam/reserve/bean/task/ApplyTaskVO.java

@@ -1,12 +1,15 @@
 package com.qmth.exam.reserve.bean.task;
 
+import com.qmth.exam.reserve.bean.IModel;
 import io.swagger.annotations.ApiModelProperty;
 import lombok.Getter;
 import lombok.Setter;
 
 @Getter
 @Setter
-public class ApplyTaskVO {
+public class ApplyTaskVO implements IModel {
+
+    private static final long serialVersionUID = -7196168241899887928L;
 
     @ApiModelProperty("id")
     private Long id;
@@ -37,4 +40,5 @@ public class ApplyTaskVO {
 
     @ApiModelProperty("考前多少天,禁止考生自主取消预约")
     private Integer allowApplyCancelDays;
+
 }

+ 5 - 1
src/main/java/com/qmth/exam/reserve/bean/task/TimePeriodVO.java

@@ -1,8 +1,11 @@
 package com.qmth.exam.reserve.bean.task;
 
+import com.qmth.exam.reserve.bean.IModel;
 import io.swagger.annotations.ApiModelProperty;
 
-public class TimePeriodVO {
+public class TimePeriodVO implements IModel {
+
+    private static final long serialVersionUID = -9165048488625980411L;
 
     @ApiModelProperty("id")
     private Long id;
@@ -12,4 +15,5 @@ public class TimePeriodVO {
 
     @ApiModelProperty("预约截止时间")
     private Long endTime;
+
 }