课程留言板点赞

This commit is contained in:
wuchunlei
2024-06-13 10:36:27 +08:00
parent 709c0040d3
commit e04de3202a
8 changed files with 131 additions and 5 deletions

View File

@@ -32,8 +32,6 @@ public class CourseGuestbook {
private String images;
private Integer support;
private Integer state;
private Date createTime;
@@ -41,6 +39,10 @@ public class CourseGuestbook {
@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)

View File

@@ -0,0 +1,21 @@
package com.peanut.modules.common.entity;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
@Data
@TableName("course_guestbook_support")
public class CourseGuestbookSupport {
@TableId
private Integer id;
private Integer userId;
private Integer guestbookId;
@TableLogic
private Integer delFlag;
}