新增教程
This commit is contained in:
26
community-8073/src/main/resources/mapper/TutorialsMapper.xml
Normal file
26
community-8073/src/main/resources/mapper/TutorialsMapper.xml
Normal file
@@ -0,0 +1,26 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ivmiku.tutorial.mapper.TutorialsMapper">
|
||||
|
||||
<resultMap id="BaseResultMap" type="com.ivmiku.tutorial.entity.Tutorials">
|
||||
<id column="tutorial_id" property="tutorialId" jdbcType="BIGINT"/>
|
||||
<result column="title" property="title" jdbcType="VARCHAR"/>
|
||||
<result column="content" property="content" jdbcType="VARCHAR"/>
|
||||
<result column="image_url" property="imageUrl" jdbcType="VARCHAR"/>
|
||||
<result column="video_url" property="videoUrl" jdbcType="VARCHAR"/>
|
||||
<result column="is_official" property="isOfficial" jdbcType="INTEGER"/>
|
||||
<result column="is_deleted" property="isDeleted" jdbcType="INTEGER"/>
|
||||
<result column="created_at" property="createdAt" jdbcType="TIMESTAMP"/>
|
||||
<result column="tag_id" property="tagId" jdbcType="BIGINT"/>
|
||||
<result column="user_openid" property="userOpenid" jdbcType="VARCHAR"/> <!-- 新增的映射 -->
|
||||
</resultMap>
|
||||
|
||||
|
||||
<sql id="Base_Column_List">
|
||||
tutorial_id,title,content,
|
||||
image_url,video_url,is_official,
|
||||
is_deleted,created_at,tag_id
|
||||
</sql>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user