package com.goafanti.common.dao;

import com.goafanti.common.model.NewsInterest;
import com.goafanti.common.model.NewsInterestExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface NewsInterestMapper {
    /**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table news_interest
	 * @mbg.generated  Mon Dec 25 18:55:04 CST 2017
	 */
	long countByExample(NewsInterestExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table news_interest
	 * @mbg.generated  Mon Dec 25 18:55:04 CST 2017
	 */
	int deleteByExample(NewsInterestExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table news_interest
	 * @mbg.generated  Mon Dec 25 18:55:04 CST 2017
	 */
	int deleteByPrimaryKey(String id);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table news_interest
	 * @mbg.generated  Mon Dec 25 18:55:04 CST 2017
	 */
	int insert(NewsInterest record);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table news_interest
	 * @mbg.generated  Mon Dec 25 18:55:04 CST 2017
	 */
	int insertSelective(NewsInterest record);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table news_interest
	 * @mbg.generated  Mon Dec 25 18:55:04 CST 2017
	 */
	List<NewsInterest> selectByExample(NewsInterestExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table news_interest
	 * @mbg.generated  Mon Dec 25 18:55:04 CST 2017
	 */
	NewsInterest selectByPrimaryKey(String id);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table news_interest
	 * @mbg.generated  Mon Dec 25 18:55:04 CST 2017
	 */
	int updateByExampleSelective(@Param("record") NewsInterest record, @Param("example") NewsInterestExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table news_interest
	 * @mbg.generated  Mon Dec 25 18:55:04 CST 2017
	 */
	int updateByExample(@Param("record") NewsInterest record, @Param("example") NewsInterestExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table news_interest
	 * @mbg.generated  Mon Dec 25 18:55:04 CST 2017
	 */
	int updateByPrimaryKeySelective(NewsInterest record);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table news_interest
	 * @mbg.generated  Mon Dec 25 18:55:04 CST 2017
	 */
	int updateByPrimaryKey(NewsInterest record);

	int deleteInterest(@Param("uid")String uid, @Param("objectId")String objectId);

	int countInterest(String uid);
}