From 7628f7cea0960a3b300b2ac5899eeb96c2f55fad Mon Sep 17 00:00:00 2001 From: poppoppuppylove <431792974@qq.com> Date: Fri, 27 Sep 2024 23:47:44 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E5=AD=A6=E7=94=9F=E5=AE=9E=E4=BD=93?= =?UTF-8?q?=E7=B1=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../example/attendance/entity/Student.java | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 src/main/java/com/example/attendance/entity/Student.java diff --git a/src/main/java/com/example/attendance/entity/Student.java b/src/main/java/com/example/attendance/entity/Student.java new file mode 100644 index 0000000..4f21499 --- /dev/null +++ b/src/main/java/com/example/attendance/entity/Student.java @@ -0,0 +1,20 @@ +package com.example.attendance.entity; + + +import lombok.AllArgsConstructor; +import lombok.Data; +import lombok.NoArgsConstructor; +// TODO:更新数据库表结构 +@NoArgsConstructor +@AllArgsConstructor +@Data +public class Student { + private Long id; + private String name; + private int initialPoints = 0; + private int currentPoints = 0; + private int correctAnswerStreak; // 连续答对次数 + private boolean skipNextCall; // 是否跳过下次点名 + private boolean borrowingPoints; // 是否借用积分 + private boolean increasedCallChance; // 点名概率是否增加 +}