docs: translate partial comments to Chinese

This commit is contained in:
seahi 2024-12-18 08:55:06 +08:00
parent b01028a13f
commit 5c525d9c32
3 changed files with 6 additions and 6 deletions

View File

@ -21,13 +21,13 @@ public class LeaveRequest {
private Date requestTime; // 申请时间 private Date requestTime; // 申请时间
private Date approvalTime; // 审批时间 private Date approvalTime; // 审批时间
// Constructors // 构造方法
public LeaveRequest() { public LeaveRequest() {
this.status = ApprovalStatus.PENDING; this.status = ApprovalStatus.PENDING;
this.requestTime = new Date(); this.requestTime = new Date();
} }
// Getters and Setters // Getters Setters 方法
public int getId() { public int getId() {
return id; return id;
} }

View File

@ -13,7 +13,7 @@ public class Student {
private String major; // 专业 private String major; // 专业
private String password; // 登录密码 private String password; // 登录密码
// Constructors // 构造方法
public Student() {} public Student() {}
public Student(String studentId, String name, String className, String contact, String college, String major) { public Student(String studentId, String name, String className, String contact, String college, String major) {
@ -35,7 +35,7 @@ public class Student {
this.password = password; this.password = password;
} }
// Getters and Setters // Getters Setters 方法
public int getId() { public int getId() {
return id; return id;
} }

View File

@ -11,7 +11,7 @@ public class Teacher {
private String contact; // 联系方式 private String contact; // 联系方式
private String password; // 登录密码 private String password; // 登录密码
// Constructors // 构造方法
public Teacher() {} public Teacher() {}
public Teacher(String teacherId, String name, String department, String contact) { public Teacher(String teacherId, String name, String department, String contact) {
@ -29,7 +29,7 @@ public class Teacher {
this.password = password; this.password = password;
} }
// Getters and Setters // Getters Setters 方法
public int getId() { public int getId() {
return id; return id;
} }