- 新增笔记收藏表(NoteCollectionDO)及相关Mapper和服务实现 - 新增笔记计数表(NoteCountDO)及相关Mapper和服务实现 - 新增笔记点赞表(NoteLikeDO)及相关Mapper和服务实现 - 新增用户计数表(UserCountDO)及相关Mapper和服务实现 - 配置RedisTemplate以支持JSON格式序列化 - 引入RocketMQ依赖并配置自动装配 - 在count模块中添加Redis和RocketMQ相关配置类
19 lines
1.0 KiB
XML
19 lines
1.0 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.count.biz.domain.mapper.UserCountDOMapper">
|
|
<resultMap id="BaseResultMap" type="com.hanserwei.hannote.count.biz.domain.dataobject.UserCountDO">
|
|
<!--@mbg.generated-->
|
|
<!--@Table t_user_count-->
|
|
<id column="id" jdbcType="BIGINT" property="id" />
|
|
<result column="user_id" jdbcType="BIGINT" property="userId" />
|
|
<result column="fans_total" jdbcType="BIGINT" property="fansTotal" />
|
|
<result column="following_total" jdbcType="BIGINT" property="followingTotal" />
|
|
<result column="note_total" jdbcType="BIGINT" property="noteTotal" />
|
|
<result column="like_total" jdbcType="BIGINT" property="likeTotal" />
|
|
<result column="collect_total" jdbcType="BIGINT" property="collectTotal" />
|
|
</resultMap>
|
|
<sql id="Base_Column_List">
|
|
<!--@mbg.generated-->
|
|
id, user_id, fans_total, following_total, note_total, like_total, collect_total
|
|
</sql>
|
|
</mapper> |