diff --git a/src/main/java/com/teaching/mapper/KnowMapper.java b/src/main/java/com/teaching/mapper/KnowMapper.java new file mode 100644 index 0000000..9fe1a5f --- /dev/null +++ b/src/main/java/com/teaching/mapper/KnowMapper.java @@ -0,0 +1,9 @@ +package com.teaching.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.teaching.model.entity.Know; +import org.apache.ibatis.annotations.Mapper; + +@Mapper +public interface KnowMapper extends BaseMapper { +} diff --git a/src/main/java/com/teaching/model/entity/Know.java b/src/main/java/com/teaching/model/entity/Know.java new file mode 100644 index 0000000..2ab9683 --- /dev/null +++ b/src/main/java/com/teaching/model/entity/Know.java @@ -0,0 +1,48 @@ +package com.teaching.model.entity; + +import io.swagger.annotations.Api; +import lombok.AllArgsConstructor; +import lombok.Data; +import lombok.NoArgsConstructor; + + +import javax.persistence.Table; +import java.io.Serializable; +import java.time.LocalDateTime; + +@Data +public class Know { + + //内部编号 + private Long id ; + + //知识点名称 + private String name; + + //知识点代码 + private String code; + + //简介 + private String info; + + //定义 + private String miaoshu; + + //添加人真实姓名 + private String inrealname; + + //创建人 + private String createBy; + + //创建时间 + private LocalDateTime createTime; + + //修改人 + private String updateBy; + + //修改时间 + private LocalDateTime updateTime; + + //所属部门 + private String sysOrgCode; +} diff --git a/src/main/java/com/teaching/service/IknowService.java b/src/main/java/com/teaching/service/IknowService.java new file mode 100644 index 0000000..eb3dd27 --- /dev/null +++ b/src/main/java/com/teaching/service/IknowService.java @@ -0,0 +1,10 @@ +package com.teaching.service; + +import com.baomidou.mybatisplus.extension.service.IService; +import com.teaching.model.entity.Know; +import org.springframework.stereotype.Service; + + +public interface IknowService extends IService { + +} diff --git a/src/main/java/com/teaching/service/impl/IknowServiceimpl.java b/src/main/java/com/teaching/service/impl/IknowServiceimpl.java new file mode 100644 index 0000000..51f843c --- /dev/null +++ b/src/main/java/com/teaching/service/impl/IknowServiceimpl.java @@ -0,0 +1,12 @@ +package com.teaching.service.impl; + +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.teaching.mapper.KnowMapper; +import com.teaching.model.entity.Know; +import com.teaching.service.IknowService; +import org.springframework.stereotype.Service; + +@Service +public class IknowServiceimpl extends ServiceImpl implements IknowService { + +}