<?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.admin.dao.PostDao">

	<!-- 可根据自己的需求，是否要使用 -->
    <resultMap type="io.linfeng.modules.admin.entity.PostEntity" id="postMap">
        <result property="id" column="id"/>
        <result property="uid" column="uid"/>
        <result property="topicId" column="topic_id"/>
        <result property="discussId" column="discuss_id"/>
        <result property="voteId" column="vote_id"/>
        <result property="title" column="title"/>
        <result property="content" column="content"/>
        <result property="media" column="media"/>
        <result property="readCount" column="read_count"/>
        <result property="postTop" column="post_top"/>
        <result property="type" column="type"/>
        <result property="address" column="address"/>
        <result property="longitude" column="longitude"/>
        <result property="latitude" column="latitude"/>
        <result property="createTime" column="create_time"/>
    </resultMap>


</mapper>