diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/form/SearchForm.java b/ruoyi-system/src/main/java/com/ruoyi/system/form/SearchForm.java new file mode 100644 index 0000000..791a541 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/form/SearchForm.java @@ -0,0 +1,12 @@ +package com.ruoyi.system.form; + +import lombok.Data; + +@Data +public class SearchForm { + private String key; + private String value; + private Integer page; + private Integer size; + +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/util/CommonUtil.java b/ruoyi-system/src/main/java/com/ruoyi/system/util/CommonUtil.java new file mode 100644 index 0000000..0699cf1 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/util/CommonUtil.java @@ -0,0 +1,11 @@ +package com.ruoyi.system.util; + +import java.text.SimpleDateFormat; +import java.util.Date; + +public class CommonUtil { + public static String createData(){ + SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd"); + return format.format(new Date()); + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/vo/PageResult.java b/ruoyi-system/src/main/java/com/ruoyi/system/vo/PageResult.java new file mode 100644 index 0000000..171340c --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/vo/PageResult.java @@ -0,0 +1,30 @@ +package com.ruoyi.system.vo; + +import java.util.List; + +public class PageResult { + private List content; + private long totalElements; + + public PageResult(List content, long totalElements) { + this.content = content; + this.totalElements = totalElements; + } + + // Getters and Setters + public List getContent() { + return content; + } + + public void setContent(List content) { + this.content = content; + } + + public long getTotalElements() { + return totalElements; + } + + public void setTotalElements(long totalElements) { + this.totalElements = totalElements; + } +} \ No newline at end of file diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/vo/StudentVo.java b/ruoyi-system/src/main/java/com/ruoyi/system/vo/StudentVo.java new file mode 100644 index 0000000..26149c9 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/vo/StudentVo.java @@ -0,0 +1,14 @@ +package com.ruoyi.system.vo; + +import lombok.Data; + +@Data +public class StudentVo { + private Long id; + private String number; + private String name; + private String gender; + private String dormitoryName; + private String state; + private String createDate; +}