<?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="io.linfeng.modules.app.dao.MomentDao">

	<!-- 可根据自己的需求，是否要使用 -->
    <resultMap type="io.linfeng.modules.app.entity.MomentEntity" id="momentMap">
        <result property="id" column="id"/>
        <result property="userId" column="user_id"/>
        <result property="type" column="type"/>
        <result property="textContent" column="text_content"/>
        <result property="activityId" column="activity_id"/>
        <result property="likeCount" column="like_count"/>
        <result property="commentCount" column="comment_count"/>
        <result property="repostCount" column="repost_count"/>
        <result property="shareCount" column="share_count"/>
        <result property="viewCount" column="view_count"/>
        <result property="repostMomentId" column="repost_moment_id"/>
        <result property="status" column="status"/>
        <result property="artistId" column="artist_id"/>
        <result property="createTime" column="create_time"/>
        <result property="updateTime" column="update_time"/>
    </resultMap>


</mapper>