package com.example.jz.modle.entity; import java.util.Date; import com.baomidou.mybatisplus.extension.activerecord.Model; import lombok.Data; import lombok.NoArgsConstructor; import java.io.Serializable; /** * 消息表(Message)表实体类 * * @author makejava * @since 2022-07-11 16:35:57 */ @SuppressWarnings("serial") @Data @NoArgsConstructor public class Message extends Model { //消息id private Integer id; //消息内容 private String text; //用户id private Integer userId; //群id private Integer groupId; //创建时间 private Date cTime; /** * 获取主键值 * * @return 主键值 */ @Override protected Serializable pkVal() { return this.id; } }