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.
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 包下,表示该类是领域对象类,用于存储通知信息。
/**
* Notify类, 表示通知信息。
* 该类用于存储系统或管理员发送的通知信息, 包括通知ID、通知内容和通知日期。
*/
public class Notify {
private String id ; // 通知ID
private String notifyInfo ; // 通知内容
private String notifyDate ; // 通知日期
/**
* 获取通知ID。
*
* @return 返回通知的ID
*/
public String getId ( ) {
return id ;
}
/**
* 设置通知ID。
*
* @param id 通知ID
*/
public void setId ( String id ) {
this . id = id ;
}
/**
* 获取通知内容。
*
* @return 返回通知的详细内容
*/
public String getNotifyInfo ( ) {
return notifyInfo ;
}
/**
* 设置通知内容。
*
* @param notifyInfo 通知内容
*/
public void setNotifyInfo ( String notifyInfo ) {
this . notifyInfo = notifyInfo ;
}
/**
* 获取通知日期。
*
* @return 返回通知日期
*/
public String getNotifyDate ( ) {
return notifyDate ;
}
/**
* 设置通知日期。
*
* @param notifyDate 通知日期
*/
public void setNotifyDate ( String notifyDate ) {
this . notifyDate = notifyDate ;
}
/**
* 重写 toString 方法, 返回通知ID、通知内容和通知日期的字符串表示。
*
* @return 返回一个包含通知ID、通知内容、通知日期信息的字符串
*/
@Override
public String toString ( ) {
return "Notify{" +
"id='" + id + '\'' +
", notifyInfo='" + notifyInfo + '\'' +
", notifyDate='" + notifyDate + '\'' +
'}' ;
}
}