Files
han-note/han-note-note/han-note-note-biz/src/main/resources/mapperxml/NoteDOMapper.xml
Hanserwei 665ea930fd feat(note): 初始化笔记服务模块
- 添加笔记、频道、话题等核心数据表结构
- 创建对应的数据访问对象(DO)和MyBatis映射文件
- 配置Spring Boot应用启动类及基础依赖
- 设置Nacos服务发现与配置中心相关配置
- 添加全局异常处理机制和响应码枚举定义
- 配置RedisTemplate以支持JSON序列化存储
- 定义日志输出格式及异步写入策略
- 新增笔记状态、类型、可见性等相关枚举类
- 配置MyBatis-Plus、MySQL、Druid等数据访问组件
- 添加Maven模块结构并集成到主项目中
2025-10-07 18:07:30 +08:00

27 lines
1.6 KiB
XML

<?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.hanserwei.hannote.note.biz.domain.mapper.NoteDOMapper">
<resultMap id="BaseResultMap" type="com.hanserwei.hannote.note.biz.domain.dataobject.NoteDO">
<!--@mbg.generated-->
<!--@Table t_note-->
<id column="id" jdbcType="BIGINT" property="id" />
<result column="title" jdbcType="VARCHAR" property="title" />
<result column="is_content_empty" jdbcType="BIT" property="isContentEmpty" />
<result column="creator_id" jdbcType="BIGINT" property="creatorId" />
<result column="topic_id" jdbcType="BIGINT" property="topicId" />
<result column="topic_name" jdbcType="VARCHAR" property="topicName" />
<result column="is_top" jdbcType="BIT" property="isTop" />
<result column="type" jdbcType="TINYINT" property="type" />
<result column="img_uris" jdbcType="VARCHAR" property="imgUris" />
<result column="video_uri" jdbcType="VARCHAR" property="videoUri" />
<result column="visible" jdbcType="TINYINT" property="visible" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
<result column="status" jdbcType="TINYINT" property="status" />
</resultMap>
<sql id="Base_Column_List">
<!--@mbg.generated-->
id, title, is_content_empty, creator_id, topic_id, topic_name, is_top, `type`, img_uris,
video_uri, visible, create_time, update_time, `status`
</sql>
</mapper>