parent
c9d9ffecb6
commit
23848e87a2
19 changed files with 391 additions and 69 deletions
@ -0,0 +1,17 @@ |
||||
package com.teaching.backend.mapper.records; |
||||
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||
import com.teaching.backend.model.entity.records.CourseLearningRecord; |
||||
|
||||
/** |
||||
* <p> |
||||
* Mapper 接口 |
||||
* </p> |
||||
* |
||||
* @author author |
||||
* @since 2024-07-24 |
||||
*/ |
||||
public interface CourseLearningRecordMapper extends BaseMapper<CourseLearningRecord> { |
||||
|
||||
} |
@ -0,0 +1,17 @@ |
||||
package com.teaching.backend.mapper.records; |
||||
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||
import com.teaching.backend.model.entity.records.KnowledgeLearningRecord; |
||||
|
||||
/** |
||||
* <p> |
||||
* Mapper 接口 |
||||
* </p> |
||||
* |
||||
* @author author |
||||
* @since 2024-07-24 |
||||
*/ |
||||
public interface KnowledgeLearningRecordMapper extends BaseMapper<KnowledgeLearningRecord> { |
||||
|
||||
} |
@ -0,0 +1,17 @@ |
||||
package com.teaching.backend.mapper.records; |
||||
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||
import com.teaching.backend.model.entity.records.ResourceLearningRecord; |
||||
|
||||
/** |
||||
* <p> |
||||
* Mapper 接口 |
||||
* </p> |
||||
* |
||||
* @author author |
||||
* @since 2024-07-24 |
||||
*/ |
||||
public interface ResourceLearningRecordMapper extends BaseMapper<ResourceLearningRecord> { |
||||
|
||||
} |
@ -0,0 +1,57 @@ |
||||
package com.teaching.backend.model.entity.records; |
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableField; |
||||
import com.baomidou.mybatisplus.annotation.TableName; |
||||
import com.baomidou.mybatisplus.annotation.IdType; |
||||
import java.time.LocalDateTime; |
||||
import com.baomidou.mybatisplus.annotation.TableId; |
||||
import java.io.Serializable; |
||||
import io.swagger.annotations.ApiModel; |
||||
import io.swagger.annotations.ApiModelProperty; |
||||
import lombok.Data; |
||||
import lombok.EqualsAndHashCode; |
||||
import lombok.experimental.Accessors; |
||||
|
||||
/** |
||||
* <p> |
||||
* |
||||
* </p> |
||||
* |
||||
* @author author |
||||
* @since 2024-07-24 |
||||
*/ |
||||
@Data |
||||
@EqualsAndHashCode(callSuper = false) |
||||
@Accessors(chain = true) |
||||
@TableName("course_learning_record") |
||||
@ApiModel(value="CourseLearningRecord对象", description="") |
||||
public class CourseLearningRecord implements Serializable { |
||||
|
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
@ApiModelProperty(value = " 课程记录id") |
||||
@TableId(value = "id", type = IdType.AUTO) |
||||
private String id; |
||||
|
||||
@ApiModelProperty(value = "课程id") |
||||
@TableField("course_id") |
||||
private String courseId; |
||||
|
||||
@ApiModelProperty(value = "用户id") |
||||
@TableField("user_id") |
||||
private String userId; |
||||
|
||||
@ApiModelProperty(value = "观看人数") |
||||
@TableField("number") |
||||
private Integer number; |
||||
|
||||
@ApiModelProperty(value = "记录封面") |
||||
@TableField("img") |
||||
private String img; |
||||
|
||||
@ApiModelProperty(value = "最近学习时间") |
||||
@TableField("time") |
||||
private LocalDateTime time; |
||||
|
||||
|
||||
} |
@ -0,0 +1,57 @@ |
||||
package com.teaching.backend.model.entity.records; |
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableField; |
||||
import com.baomidou.mybatisplus.annotation.TableName; |
||||
import com.baomidou.mybatisplus.annotation.IdType; |
||||
import java.time.LocalDateTime; |
||||
import com.baomidou.mybatisplus.annotation.TableId; |
||||
import java.io.Serializable; |
||||
import io.swagger.annotations.ApiModel; |
||||
import io.swagger.annotations.ApiModelProperty; |
||||
import lombok.Data; |
||||
import lombok.EqualsAndHashCode; |
||||
import lombok.experimental.Accessors; |
||||
|
||||
/** |
||||
* <p> |
||||
* |
||||
* </p> |
||||
* |
||||
* @author author |
||||
* @since 2024-07-24 |
||||
*/ |
||||
@Data |
||||
@EqualsAndHashCode(callSuper = false) |
||||
@Accessors(chain = true) |
||||
@TableName("knowledge_learning_record") |
||||
@ApiModel(value="KnowledgeLearningRecord对象", description="") |
||||
public class KnowledgeLearningRecord implements Serializable { |
||||
|
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
@ApiModelProperty(value = "知识点学习记录id") |
||||
@TableId(value = "id", type = IdType.AUTO) |
||||
private String id; |
||||
|
||||
@ApiModelProperty(value = "知识点id") |
||||
@TableField("knowledge_id") |
||||
private String knowledgeId; |
||||
|
||||
@ApiModelProperty(value = "用户id") |
||||
@TableField("user_id") |
||||
private String userId; |
||||
|
||||
@ApiModelProperty(value = "观看人数") |
||||
@TableField("number") |
||||
private Integer number; |
||||
|
||||
@ApiModelProperty(value = "记录封面") |
||||
@TableField("img") |
||||
private String img; |
||||
|
||||
@ApiModelProperty(value = "最近访问时间") |
||||
@TableField("time") |
||||
private LocalDateTime time; |
||||
|
||||
|
||||
} |
@ -0,0 +1,73 @@ |
||||
package com.teaching.backend.model.entity.records; |
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableField; |
||||
import com.baomidou.mybatisplus.annotation.TableName; |
||||
import com.baomidou.mybatisplus.annotation.IdType; |
||||
import java.time.LocalDateTime; |
||||
import com.baomidou.mybatisplus.annotation.TableId; |
||||
import java.io.Serializable; |
||||
import io.swagger.annotations.ApiModel; |
||||
import io.swagger.annotations.ApiModelProperty; |
||||
import lombok.Data; |
||||
import lombok.EqualsAndHashCode; |
||||
import lombok.experimental.Accessors; |
||||
|
||||
/** |
||||
* <p> |
||||
* |
||||
* </p> |
||||
* |
||||
* @author author |
||||
* @since 2024-07-24 |
||||
*/ |
||||
@Data |
||||
@EqualsAndHashCode(callSuper = false) |
||||
@Accessors(chain = true) |
||||
@TableName("resource_learning_record") |
||||
@ApiModel(value="ResourceLearningRecord对象", description="") |
||||
public class ResourceLearningRecord implements Serializable { |
||||
|
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
@ApiModelProperty(value = "资源学习记录id") |
||||
@TableId(value = "id", type = IdType.AUTO) |
||||
private String id; |
||||
|
||||
@ApiModelProperty(value = "资源id") |
||||
@TableField("resource_id") |
||||
private String resourceId; |
||||
|
||||
@ApiModelProperty(value = "用户id") |
||||
@TableField("user_id") |
||||
private String userId; |
||||
|
||||
@ApiModelProperty(value = "观看人数") |
||||
@TableField("number") |
||||
private Integer number; |
||||
|
||||
@ApiModelProperty(value = "是否打开, 1:开打了; 2:未打开;") |
||||
@TableField("open") |
||||
private Integer open; |
||||
|
||||
@ApiModelProperty(value = "是否下载, 1:下载了; 2:未下载;") |
||||
@TableField(" download") |
||||
private Integer download; |
||||
|
||||
@ApiModelProperty(value = "学习时长") |
||||
@TableField("duration") |
||||
private Integer duration; |
||||
|
||||
@ApiModelProperty(value = "是否完成观看") |
||||
@TableField("finish") |
||||
private Integer finish; |
||||
|
||||
@ApiModelProperty(value = "记录封面") |
||||
@TableField("img") |
||||
private String img; |
||||
|
||||
@ApiModelProperty(value = "最近学习时间") |
||||
@TableField("time") |
||||
private LocalDateTime time; |
||||
|
||||
|
||||
} |
@ -0,0 +1,22 @@ |
||||
package com.teaching.backend.service.impl.records; |
||||
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
||||
import com.teaching.backend.mapper.records.CourseLearningRecordMapper; |
||||
import com.teaching.backend.model.entity.records.CourseLearningRecord; |
||||
import com.teaching.backend.service.records.ICourseLearningRecordService; |
||||
import org.springframework.stereotype.Service; |
||||
|
||||
/** |
||||
* <p> |
||||
* 服务实现类 |
||||
* </p> |
||||
* |
||||
* @author author |
||||
* @since 2024-07-24 |
||||
*/ |
||||
@Service |
||||
public class CourseLearningRecordServiceImpl extends ServiceImpl<CourseLearningRecordMapper, CourseLearningRecord> implements ICourseLearningRecordService { |
||||
|
||||
} |
@ -0,0 +1,22 @@ |
||||
package com.teaching.backend.service.impl.records; |
||||
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
||||
import com.teaching.backend.mapper.records.KnowledgeLearningRecordMapper; |
||||
import com.teaching.backend.model.entity.records.KnowledgeLearningRecord; |
||||
import com.teaching.backend.service.records.IKnowledgeLearningRecordService; |
||||
import org.springframework.stereotype.Service; |
||||
|
||||
/** |
||||
* <p> |
||||
* 服务实现类 |
||||
* </p> |
||||
* |
||||
* @author author |
||||
* @since 2024-07-24 |
||||
*/ |
||||
@Service |
||||
public class KnowledgeLearningRecordServiceImpl extends ServiceImpl<KnowledgeLearningRecordMapper, KnowledgeLearningRecord> implements IKnowledgeLearningRecordService { |
||||
|
||||
} |
@ -0,0 +1,21 @@ |
||||
package com.teaching.backend.service.impl.records; |
||||
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
||||
import com.teaching.backend.mapper.records.ResourceLearningRecordMapper; |
||||
import com.teaching.backend.model.entity.records.ResourceLearningRecord; |
||||
import com.teaching.backend.service.records.IResourceLearningRecordService; |
||||
import org.springframework.stereotype.Service; |
||||
|
||||
/** |
||||
* <p> |
||||
* 服务实现类 |
||||
* </p> |
||||
* |
||||
* @author author |
||||
* @since 2024-07-24 |
||||
*/ |
||||
@Service |
||||
public class ResourceLearningRecordServiceImpl extends ServiceImpl<ResourceLearningRecordMapper, ResourceLearningRecord> implements IResourceLearningRecordService { |
||||
|
||||
} |
@ -0,0 +1,17 @@ |
||||
package com.teaching.backend.service.records; |
||||
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService; |
||||
import com.teaching.backend.model.entity.records.CourseLearningRecord; |
||||
|
||||
/** |
||||
* <p> |
||||
* 服务类 |
||||
* </p> |
||||
* |
||||
* @author author |
||||
* @since 2024-07-24 |
||||
*/ |
||||
public interface ICourseLearningRecordService extends IService<CourseLearningRecord> { |
||||
|
||||
} |
@ -0,0 +1,17 @@ |
||||
package com.teaching.backend.service.records; |
||||
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService; |
||||
import com.teaching.backend.model.entity.records.KnowledgeLearningRecord; |
||||
|
||||
/** |
||||
* <p> |
||||
* 服务类 |
||||
* </p> |
||||
* |
||||
* @author author |
||||
* @since 2024-07-24 |
||||
*/ |
||||
public interface IKnowledgeLearningRecordService extends IService<KnowledgeLearningRecord> { |
||||
|
||||
} |
@ -0,0 +1,17 @@ |
||||
package com.teaching.backend.service.records; |
||||
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService; |
||||
import com.teaching.backend.model.entity.records.ResourceLearningRecord; |
||||
|
||||
/** |
||||
* <p> |
||||
* 服务类 |
||||
* </p> |
||||
* |
||||
* @author author |
||||
* @since 2024-07-24 |
||||
*/ |
||||
public interface IResourceLearningRecordService extends IService<ResourceLearningRecord> { |
||||
|
||||
} |
Loading…
Reference in new issue