mirror of
https://gitee.com/likeadmin/likeadmin_java.git
synced 2026-05-16 21:56:15 +08:00
增加收藏
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
package com.mdd.common.entity.article;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* 文章实体类
|
||||
*/
|
||||
@Data
|
||||
public class ArticleCollect implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@TableId(value="id", type= IdType.AUTO)
|
||||
private Integer id; // 主键
|
||||
private Integer userId; // 用户ID
|
||||
private Integer articleId; // 文章ID
|
||||
private Integer isDelete; // 是否删除
|
||||
private Long createTime; // 创建时间
|
||||
private Long updateTime; // 更新时间
|
||||
private Long deleteTime; // 删除时间
|
||||
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
package com.mdd.common.mapper.article;
|
||||
|
||||
import com.mdd.common.core.basics.IBaseMapper;
|
||||
import com.mdd.common.entity.article.ArticleCollect;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* 文章收藏Mapper
|
||||
*/
|
||||
@Mapper
|
||||
public interface ArticleCollectMapper extends IBaseMapper<ArticleCollect> {
|
||||
}
|
||||
Reference in New Issue
Block a user