1
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
package com.peanut.modules.common.dao;
|
||||
|
||||
import com.github.yulichang.base.MPJBaseMapper;
|
||||
import com.peanut.modules.common.entity.UserToCourseEntity;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
@Mapper
|
||||
public interface UserToCourseDao extends MPJBaseMapper<UserToCourseEntity> {
|
||||
}
|
||||
@@ -15,6 +15,8 @@ public class CourseCatalogueChapterEntity {
|
||||
|
||||
private Integer courseId;
|
||||
|
||||
private Integer catalogueId;
|
||||
|
||||
private String title;
|
||||
|
||||
private String imgUrl;
|
||||
|
||||
@@ -15,6 +15,8 @@ public class CourseCatalogueEntity{
|
||||
@TableId
|
||||
private Integer id;
|
||||
|
||||
private Integer type;
|
||||
|
||||
private Integer courseId;
|
||||
|
||||
private String title;
|
||||
|
||||
@@ -0,0 +1,33 @@
|
||||
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;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
@Data
|
||||
@TableName("user_to_course")
|
||||
public class UserToCourseEntity {
|
||||
|
||||
@TableId
|
||||
private Integer id;
|
||||
|
||||
private Integer userId;
|
||||
|
||||
private Integer courseId;
|
||||
|
||||
private Integer catalogueId;
|
||||
|
||||
private Date createTime;
|
||||
|
||||
private Integer days;
|
||||
|
||||
private Date startTime;
|
||||
|
||||
private Date endTime;
|
||||
|
||||
@TableLogic
|
||||
private Integer delFlag;
|
||||
}
|
||||
Reference in New Issue
Block a user