package com.gyee.frame.mapper.auto;


import com.gyee.frame.model.auto.ChatDetail;
import com.gyee.frame.model.auto.ChatDetailExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ChatDetailMapper {
    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table chatdetail
     *
     * @mbg.generated
     */
    long countByExample(ChatDetailExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table chatdetail
     *
     * @mbg.generated
     */
    int deleteByExample(ChatDetailExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table chatdetail
     *
     * @mbg.generated
     */
    int deleteByPrimaryKey(Integer id);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table chatdetail
     *
     * @mbg.generated
     */
    int insert(ChatDetail record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table chatdetail
     *
     * @mbg.generated
     */
    int insertSelective(ChatDetail record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table chatdetail
     *
     * @mbg.generated
     */
    List<ChatDetail> selectByExample(ChatDetailExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table chatdetail
     *
     * @mbg.generated
     */
    ChatDetail selectByPrimaryKey(Integer id);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table chatdetail
     *
     * @mbg.generated
     */
    int updateByExampleSelective(@Param("record") ChatDetail record, @Param("example") ChatDetailExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table chatdetail
     *
     * @mbg.generated
     */
    int updateByExample(@Param("record") ChatDetail record, @Param("example") ChatDetailExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table chatdetail
     *
     * @mbg.generated
     */
    int updateByPrimaryKeySelective(ChatDetail record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table chatdetail
     *
     * @mbg.generated
     */
    int updateByPrimaryKey(ChatDetail record);

    List<ChatDetail> selectByUserId(@Param("sendingid") String sendingid, @Param("pointtoid") String pointtoid);

    List<ChatDetail> selectLastInfoByUserId(@Param("sendingid") String sendingid, @Param("pointtoid") String pointtoid);

    List<ChatDetail> selectLimitByUserId(@Param("sendingid") String sendingid, @Param("pointtoid") String pointtoid,@Param("begin")int begin,@Param("end")int end);


}