52 lines
1.0 KiB
Java
52 lines
1.0 KiB
Java
package com.peanut.modules.common.entity;
|
|
|
|
import com.baomidou.mybatisplus.annotation.TableField;
|
|
import com.baomidou.mybatisplus.annotation.TableId;
|
|
import com.baomidou.mybatisplus.annotation.TableLogic;
|
|
import com.baomidou.mybatisplus.annotation.TableName;
|
|
import lombok.Data;
|
|
|
|
import java.util.Date;
|
|
import java.util.List;
|
|
|
|
@Data
|
|
@TableName("course_guestbook")
|
|
public class CourseGuestbook {
|
|
|
|
@TableId
|
|
private Integer id;
|
|
|
|
private Integer type;
|
|
|
|
private Integer courseId;
|
|
|
|
private Integer chapterId;
|
|
|
|
private Integer pid;
|
|
|
|
private Integer userId;
|
|
|
|
private Integer forUserId;
|
|
|
|
private String content;
|
|
|
|
private String images;
|
|
|
|
private Integer state;
|
|
|
|
private Date createTime;
|
|
|
|
@TableLogic
|
|
private Integer delFlag;
|
|
|
|
@TableField(exist = false)
|
|
private boolean support;
|
|
@TableField(exist = false)
|
|
private int supportCount;
|
|
@TableField(exist = false)
|
|
private List<CourseGuestbook> children;
|
|
@TableField(exist = false)
|
|
private MyUserEntity user;
|
|
|
|
}
|