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.
chat-room/Record.java

54 lines
1.3 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 com.hyc.wechat.model.po;
import com.alibaba.fastjson.JSONObject;
import com.hyc.wechat.dao.annotation.Table;
import com.hyc.wechat.model.po.abs.BaseEntity;
import java.math.BigInteger;
/**
* @author <a href="mailto:kobe524348@gmail.com">黄钰朝</a>
* @description 消息记录实体类,用于记录用户的消息历史
* @date 2019-05-06 21:29
*/
@Table(name = "record") // 指定该实体类对应的数据库表名为"record"
public class Record extends BaseEntity {
// 用户ID表示消息记录对应的用户
private BigInteger userId;
// 消息ID表示特定的消息记录
private BigInteger messageId;
/**
* 获取消息记录对应的用户ID
* @return 用户ID
*/
public BigInteger getUserId() {
return userId;
}
/**
* 设置消息记录对应的用户ID
* @param userId 用户ID
*/
public void setUserId(BigInteger userId) {
this.userId = userId;
}
/**
* 获取特定的消息记录ID
* @return 消息ID
*/
public BigInteger getMessageId() {
return messageId;
}
/**
* 设置特定的消息记录ID
* @param messageId 消息ID
*/
public void setMessageId(BigInteger messageId) {
this.messageId = messageId;
}
}