| | |
| | | package com.example.jz.modle.entity; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.baomidou.mybatisplus.extension.activerecord.Model; |
| | | import lombok.AllArgsConstructor; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.NoArgsConstructor; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | | |
| | |
| | | * @author makejava |
| | | * @since 2022-07-12 16:50:59 |
| | | */ |
| | | public class Message implements Serializable { |
| | | @TableName("qyjz.message") |
| | | @Data |
| | | @NoArgsConstructor |
| | | @AllArgsConstructor |
| | | @Accessors(chain = true) |
| | | @EqualsAndHashCode(callSuper = false) |
| | | public class Message extends Model<Message> implements Serializable { |
| | | private static final long serialVersionUID = -28737108473853898L; |
| | | /** |
| | | * 消息内容 |
| | |
| | | /** |
| | | * 消息id |
| | | */ |
| | | @TableId |
| | | private Integer id; |
| | | |
| | | private Date ctime; |
| | | |
| | | |
| | | public String getText() { |
| | | return text; |
| | | /** |
| | | * 获取主键值 |
| | | * |
| | | * @return 主键值 |
| | | */ |
| | | @Override |
| | | protected Serializable pkVal() { |
| | | return this.id; |
| | | } |
| | | |
| | | public void setText(String text) { |
| | | this.text = text; |
| | | } |
| | | |
| | | public Integer getUserId() { |
| | | return userId; |
| | | } |
| | | |
| | | public void setUserId(Integer userId) { |
| | | this.userId = userId; |
| | | } |
| | | |
| | | public Integer getGroupId() { |
| | | return groupId; |
| | | } |
| | | |
| | | public void setGroupId(Integer groupId) { |
| | | this.groupId = groupId; |
| | | } |
| | | |
| | | public Integer getId() { |
| | | return id; |
| | | } |
| | | |
| | | public void setId(Integer id) { |
| | | this.id = id; |
| | | } |
| | | |
| | | public Date getCtime() { |
| | | return ctime; |
| | | } |
| | | |
| | | public void setCtime(Date ctime) { |
| | | this.ctime = ctime; |
| | | } |
| | | |
| | | } |
| | | |