You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
text/src/domain/Course.java

81 lines
1.7 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

package domain; // 定义在 domain 包下,表示该类是领域对象类,用于存储投诉信息。
/**
* Complaint类表示投诉信息。
* 该类用于存储和处理用户或学生的投诉数据包括投诉ID、投诉日期和投诉内容。
*/
public class Complaint {
private String id; // 投诉ID
private String cdate; // 投诉日期
private String content; // 投诉内容
/**
* 获取投诉ID。
*
* @return 返回投诉的ID
*/
public String getId() {
return id;
}
/**
* 设置投诉ID。
*
* @param id 投诉ID
*/
public void setId(String id) {
this.id = id;
}
/**
* 获取投诉日期。
*
* @return 返回投诉日期
*/
public String getCdate() {
return cdate;
}
/**
* 设置投诉日期。
*
* @param cdate 投诉日期
*/
public void setCdate(String cdate) {
this.cdate = cdate;
}
/**
* 获取投诉内容。
*
* @return 返回投诉的详细内容
*/
public String getContent() {
return content;
}
/**
* 设置投诉内容。
*
* @param content 投诉内容
*/
public void setContent(String content) {
this.content = content;
}
/**
* 重写 toString 方法返回投诉ID、投诉日期、投诉内容的字符串表示。
*
* @return 返回一个包含投诉ID、投诉日期、投诉内容信息的字符串
*/
@Override
public String toString() {
return "Complaint{" +
"id='" + id + '\'' +
", cdate='" + cdate + '\'' +
", content='" + content + '\'' +
'}';
}
}