小班相关

This commit is contained in:
wuchunlei
2024-07-26 09:19:44 +08:00
parent c08fd5bf9e
commit 01c3c49747
7 changed files with 133 additions and 0 deletions

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("class_course")
public class ClassCourse {
@TableId
private Integer id;
private Integer classId;
private Integer courseId;
@TableLogic
private Integer delFlag;
}

View File

@@ -0,0 +1,36 @@
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("class")
public class ClassEntity {
@TableId
private Integer id;
private String title;
//小班状态 0待开班1进行中2完成
private String state;
private String icon;
private String content;
private Integer create_user;
private Date createTime;
private Date start_time;
private Date end_time;
@TableLogic
private Integer delFlag;
}

View File

@@ -0,0 +1,23 @@
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("class_user")
public class ClassUser {
@TableId
private Integer id;
private Integer classId;
private Integer userId;
private String role;
@TableLogic
private Integer delFlag;
}

View File

@@ -21,6 +21,10 @@ public class CourseEntity {
private String title;
private Integer director;
private Integer ddirector;
private Integer sort;
private String image;