commit 7628f7cea0960a3b300b2ac5899eeb96c2f55fad Author: poppoppuppylove <431792974@qq.com> Date: Fri Sep 27 23:47:44 2024 +0800 feat:学生实体类 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; // 点名概率是否增加 +}