parent
b0a99cefdf
commit
8d2e3e86ba
19 changed files with 339 additions and 19 deletions
@ -0,0 +1,17 @@ |
|||||||
|
package com.teaching.backend.mapper.KnowGraph; |
||||||
|
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||||
|
import com.teaching.backend.model.entity.KnowGraph.KnowledgeLearningNumber; |
||||||
|
|
||||||
|
/** |
||||||
|
* <p> |
||||||
|
* Mapper 接口 |
||||||
|
* </p> |
||||||
|
* |
||||||
|
* @author author |
||||||
|
* @since 2024-07-29 |
||||||
|
*/ |
||||||
|
public interface KnowledgeLearningNumberMapper extends BaseMapper<KnowledgeLearningNumber> { |
||||||
|
|
||||||
|
} |
@ -0,0 +1,17 @@ |
|||||||
|
package com.teaching.backend.mapper.resource; |
||||||
|
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||||
|
import com.teaching.backend.model.entity.resource.ResourceLearningNumber; |
||||||
|
|
||||||
|
/** |
||||||
|
* <p> |
||||||
|
* Mapper 接口 |
||||||
|
* </p> |
||||||
|
* |
||||||
|
* @author author |
||||||
|
* @since 2024-07-29 |
||||||
|
*/ |
||||||
|
public interface ResourceLearningNumberMapper extends BaseMapper<ResourceLearningNumber> { |
||||||
|
|
||||||
|
} |
@ -0,0 +1,48 @@ |
|||||||
|
package com.teaching.backend.model.entity.KnowGraph; |
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableField; |
||||||
|
import com.baomidou.mybatisplus.annotation.TableName; |
||||||
|
import com.baomidou.mybatisplus.annotation.IdType; |
||||||
|
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-29 |
||||||
|
*/ |
||||||
|
@Data |
||||||
|
@EqualsAndHashCode(callSuper = false) |
||||||
|
@Accessors(chain = true) |
||||||
|
@TableName("knowledge_learning_number") |
||||||
|
@ApiModel(value="KnowledgeLearningNumber对象", description="") |
||||||
|
public class KnowledgeLearningNumber implements Serializable { |
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L; |
||||||
|
|
||||||
|
@ApiModelProperty(value = "知识点学习记录id") |
||||||
|
@TableId(value = "id", type = IdType.ASSIGN_ID) |
||||||
|
private String id; |
||||||
|
|
||||||
|
@ApiModelProperty(value = "课程id") |
||||||
|
@TableField("course_id") |
||||||
|
private String courseId; |
||||||
|
|
||||||
|
@ApiModelProperty(value = "知识点id") |
||||||
|
@TableField("knowledge_id") |
||||||
|
private String knowledgeId; |
||||||
|
|
||||||
|
@ApiModelProperty(value = "学习人数") |
||||||
|
@TableField("number") |
||||||
|
private Integer number; |
||||||
|
|
||||||
|
|
||||||
|
} |
@ -0,0 +1,47 @@ |
|||||||
|
package com.teaching.backend.model.entity.resource; |
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName; |
||||||
|
import com.baomidou.mybatisplus.annotation.IdType; |
||||||
|
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-29 |
||||||
|
*/ |
||||||
|
@Data |
||||||
|
@EqualsAndHashCode(callSuper = false) |
||||||
|
@Accessors(chain = true) |
||||||
|
@TableName("resource_learning_number") |
||||||
|
@ApiModel(value="ResourceLearningNumber对象", description="") |
||||||
|
public class ResourceLearningNumber implements Serializable { |
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L; |
||||||
|
|
||||||
|
@ApiModelProperty(value = "资源学习记录id") |
||||||
|
@TableId(value = "id", type = IdType.ASSIGN_ID) |
||||||
|
private String id; |
||||||
|
|
||||||
|
@ApiModelProperty(value = "课程id") |
||||||
|
private String courseId; |
||||||
|
|
||||||
|
@ApiModelProperty(value = "知识点id") |
||||||
|
private String knowledgeId; |
||||||
|
|
||||||
|
@ApiModelProperty(value = "资源id") |
||||||
|
private String resourceId; |
||||||
|
|
||||||
|
@ApiModelProperty(value = "学习人数") |
||||||
|
private Integer number; |
||||||
|
|
||||||
|
|
||||||
|
} |
@ -0,0 +1,17 @@ |
|||||||
|
package com.teaching.backend.service.KnowGraph; |
||||||
|
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.IService; |
||||||
|
import com.teaching.backend.model.entity.KnowGraph.KnowledgeLearningNumber; |
||||||
|
|
||||||
|
/** |
||||||
|
* <p> |
||||||
|
* 服务类 |
||||||
|
* </p> |
||||||
|
* |
||||||
|
* @author author |
||||||
|
* @since 2024-07-29 |
||||||
|
*/ |
||||||
|
public interface IKnowledgeLearningNumberService extends IService<KnowledgeLearningNumber> { |
||||||
|
|
||||||
|
} |
@ -0,0 +1,21 @@ |
|||||||
|
package com.teaching.backend.service.impl.knowledge; |
||||||
|
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
||||||
|
import com.teaching.backend.mapper.KnowGraph.KnowledgeLearningNumberMapper; |
||||||
|
import com.teaching.backend.model.entity.KnowGraph.KnowledgeLearningNumber; |
||||||
|
import com.teaching.backend.service.KnowGraph.IKnowledgeLearningNumberService; |
||||||
|
import org.springframework.stereotype.Service; |
||||||
|
|
||||||
|
/** |
||||||
|
* <p> |
||||||
|
* 服务实现类 |
||||||
|
* </p> |
||||||
|
* |
||||||
|
* @author author |
||||||
|
* @since 2024-07-29 |
||||||
|
*/ |
||||||
|
@Service |
||||||
|
public class KnowledgeLearningNumberServiceImpl extends ServiceImpl<KnowledgeLearningNumberMapper, KnowledgeLearningNumber> implements IKnowledgeLearningNumberService { |
||||||
|
|
||||||
|
} |
@ -0,0 +1,22 @@ |
|||||||
|
package com.teaching.backend.service.impl.resource; |
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
||||||
|
import com.teaching.backend.mapper.resource.ResourceLearningNumberMapper; |
||||||
|
import com.teaching.backend.model.entity.resource.ResourceLearningNumber; |
||||||
|
import com.teaching.backend.service.resource.IResourceLearningNumberService; |
||||||
|
import org.springframework.stereotype.Service; |
||||||
|
|
||||||
|
/** |
||||||
|
* <p> |
||||||
|
* 服务实现类 |
||||||
|
* </p> |
||||||
|
* |
||||||
|
* @author author |
||||||
|
* @since 2024-07-29 |
||||||
|
*/ |
||||||
|
@Service |
||||||
|
public class ResourceLearningNumberServiceImpl extends ServiceImpl<ResourceLearningNumberMapper, ResourceLearningNumber> implements IResourceLearningNumberService { |
||||||
|
|
||||||
|
} |
@ -0,0 +1,17 @@ |
|||||||
|
package com.teaching.backend.service.resource; |
||||||
|
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.IService; |
||||||
|
import com.teaching.backend.model.entity.resource.ResourceLearningNumber; |
||||||
|
|
||||||
|
/** |
||||||
|
* <p> |
||||||
|
* 服务类 |
||||||
|
* </p> |
||||||
|
* |
||||||
|
* @author author |
||||||
|
* @since 2024-07-29 |
||||||
|
*/ |
||||||
|
public interface IResourceLearningNumberService extends IService<ResourceLearningNumber> { |
||||||
|
|
||||||
|
} |
Loading…
Reference in new issue