From 1826f60f9c46761bf83e507eb9b04abc19f91588 Mon Sep 17 00:00:00 2001 From: GitHub <2041376447@qq.com> Date: Fri, 27 Dec 2024 00:06:20 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E4=BA=86=E7=BC=BA=E5=B8=AD?= =?UTF-8?q?=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/ruoyi/system/form/SearchForm.java | 12 ++++++++ .../com/ruoyi/system/util/CommonUtil.java | 11 +++++++ .../java/com/ruoyi/system/vo/PageResult.java | 30 +++++++++++++++++++ .../java/com/ruoyi/system/vo/StudentVo.java | 14 +++++++++ 4 files changed, 67 insertions(+) create mode 100644 ruoyi-system/src/main/java/com/ruoyi/system/form/SearchForm.java create mode 100644 ruoyi-system/src/main/java/com/ruoyi/system/util/CommonUtil.java create mode 100644 ruoyi-system/src/main/java/com/ruoyi/system/vo/PageResult.java create mode 100644 ruoyi-system/src/main/java/com/ruoyi/system/vo/StudentVo.java 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; +}