master
parent
395d4b0078
commit
04df7b2cc3
27 changed files with 272 additions and 24 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.RecordKnowledgeFinish; |
||||
|
||||
/** |
||||
* <p> |
||||
* Mapper 接口 |
||||
* </p> |
||||
* |
||||
* @author author |
||||
* @since 2024-08-20 |
||||
*/ |
||||
public interface RecordKnowledgeFinishMapper extends BaseMapper<RecordKnowledgeFinish> { |
||||
|
||||
} |
@ -0,0 +1,17 @@ |
||||
package com.teaching.backend.mapper.records; |
||||
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||
import com.teaching.backend.model.entity.records.RecordResourceFinish; |
||||
|
||||
/** |
||||
* <p> |
||||
* Mapper 接口 |
||||
* </p> |
||||
* |
||||
* @author author |
||||
* @since 2024-08-20 |
||||
*/ |
||||
public interface RecordResourceFinishMapper extends BaseMapper<RecordResourceFinish> { |
||||
|
||||
} |
@ -0,0 +1,47 @@ |
||||
package com.teaching.backend.model.entity.records; |
||||
|
||||
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-08-20 |
||||
*/ |
||||
@Data |
||||
@EqualsAndHashCode(callSuper = false) |
||||
@Accessors(chain = true) |
||||
@TableName("record_knowledge_finish") |
||||
@ApiModel(value="RecordKnowledgeFinish对象", description="") |
||||
public class RecordKnowledgeFinish implements Serializable { |
||||
|
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
@ApiModelProperty(value = "知识点完成状态id") |
||||
@TableId(value = "id", type = IdType.AUTO) |
||||
private Integer id; |
||||
|
||||
@ApiModelProperty(value = "用户id") |
||||
private String userId; |
||||
|
||||
@ApiModelProperty(value = "课程id") |
||||
private String courseId; |
||||
|
||||
@ApiModelProperty(value = "知识点id") |
||||
private String knowledgeId; |
||||
|
||||
@ApiModelProperty(value = "完成状态") |
||||
private Integer finish; |
||||
|
||||
|
||||
} |
@ -0,0 +1,50 @@ |
||||
package com.teaching.backend.model.entity.records; |
||||
|
||||
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-08-20 |
||||
*/ |
||||
@Data |
||||
@EqualsAndHashCode(callSuper = false) |
||||
@Accessors(chain = true) |
||||
@TableName("record_resource_finish") |
||||
@ApiModel(value="RecordResourceFinish对象", description="") |
||||
public class RecordResourceFinish implements Serializable { |
||||
|
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
@ApiModelProperty(value = "资源学习状态id") |
||||
@TableId(value = "id", type = IdType.AUTO) |
||||
private Integer id; |
||||
|
||||
@ApiModelProperty(value = "用户id") |
||||
private String userId; |
||||
|
||||
@ApiModelProperty(value = "课程id") |
||||
private String courseId; |
||||
|
||||
@ApiModelProperty(value = "知识点id") |
||||
private String knowledgeId; |
||||
|
||||
@ApiModelProperty(value = "资源id") |
||||
private String resourceId; |
||||
|
||||
@ApiModelProperty(value = "是否完成:1已完成;2;未完成") |
||||
private Integer finish; |
||||
|
||||
|
||||
} |
@ -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.RecordKnowledgeFinishMapper; |
||||
import com.teaching.backend.model.entity.records.RecordKnowledgeFinish; |
||||
import com.teaching.backend.service.records.IRecordKnowledgeFinishService; |
||||
import org.springframework.stereotype.Service; |
||||
|
||||
/** |
||||
* <p> |
||||
* 服务实现类 |
||||
* </p> |
||||
* |
||||
* @author author |
||||
* @since 2024-08-20 |
||||
*/ |
||||
@Service |
||||
public class RecordKnowledgeFinishServiceImpl extends ServiceImpl<RecordKnowledgeFinishMapper, RecordKnowledgeFinish> implements IRecordKnowledgeFinishService { |
||||
|
||||
} |
@ -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.RecordResourceFinishMapper; |
||||
import com.teaching.backend.model.entity.records.RecordResourceFinish; |
||||
import com.teaching.backend.service.records.IRecordResourceFinishService; |
||||
import org.springframework.stereotype.Service; |
||||
|
||||
/** |
||||
* <p> |
||||
* 服务实现类 |
||||
* </p> |
||||
* |
||||
* @author author |
||||
* @since 2024-08-20 |
||||
*/ |
||||
@Service |
||||
public class RecordResourceFinishServiceImpl extends ServiceImpl<RecordResourceFinishMapper, RecordResourceFinish> implements IRecordResourceFinishService { |
||||
|
||||
} |
@ -0,0 +1,17 @@ |
||||
package com.teaching.backend.service.records; |
||||
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService; |
||||
import com.teaching.backend.model.entity.records.RecordKnowledgeFinish; |
||||
|
||||
/** |
||||
* <p> |
||||
* 服务类 |
||||
* </p> |
||||
* |
||||
* @author author |
||||
* @since 2024-08-20 |
||||
*/ |
||||
public interface IRecordKnowledgeFinishService extends IService<RecordKnowledgeFinish> { |
||||
|
||||
} |
@ -0,0 +1,17 @@ |
||||
package com.teaching.backend.service.records; |
||||
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService; |
||||
import com.teaching.backend.model.entity.records.RecordResourceFinish; |
||||
|
||||
/** |
||||
* <p> |
||||
* 服务类 |
||||
* </p> |
||||
* |
||||
* @author author |
||||
* @since 2024-08-20 |
||||
*/ |
||||
public interface IRecordResourceFinishService extends IService<RecordResourceFinish> { |
||||
|
||||
} |
Loading…
Reference in new issue