package com.goafanti.common.dao;

import org.apache.ibatis.annotations.Param;

import com.goafanti.common.model.UserInterest;
import com.goafanti.common.model.UserInterestExample;
import java.util.List;

public interface UserInterestMapper {
    /**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table user_interest
	 * @mbg.generated  Fri Jun 15 09:33:14 CST 2018
	 */
	long countByExample(UserInterestExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table user_interest
	 * @mbg.generated  Fri Jun 15 09:33:14 CST 2018
	 */
	int deleteByExample(UserInterestExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table user_interest
	 * @mbg.generated  Fri Jun 15 09:33:14 CST 2018
	 */
	int deleteByPrimaryKey(String id);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table user_interest
	 * @mbg.generated  Fri Jun 15 09:33:14 CST 2018
	 */
	int insert(UserInterest record);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table user_interest
	 * @mbg.generated  Fri Jun 15 09:33:14 CST 2018
	 */
	int insertSelective(UserInterest record);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table user_interest
	 * @mbg.generated  Fri Jun 15 09:33:14 CST 2018
	 */
	List<UserInterest> selectByExample(UserInterestExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table user_interest
	 * @mbg.generated  Fri Jun 15 09:33:14 CST 2018
	 */
	UserInterest selectByPrimaryKey(String id);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table user_interest
	 * @mbg.generated  Fri Jun 15 09:33:14 CST 2018
	 */
	int updateByExampleSelective(@Param("record") UserInterest record, @Param("example") UserInterestExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table user_interest
	 * @mbg.generated  Fri Jun 15 09:33:14 CST 2018
	 */
	int updateByExample(@Param("record") UserInterest record, @Param("example") UserInterestExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table user_interest
	 * @mbg.generated  Fri Jun 15 09:33:14 CST 2018
	 */
	int updateByPrimaryKeySelective(UserInterest record);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table user_interest
	 * @mbg.generated  Fri Jun 15 09:33:14 CST 2018
	 */

	UserInterest findByFromUidAndToUid(@Param("fromUid")String fromUid, @Param("toUid")String toUid);

	Integer countByToUid(String toUid);

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

	int checkUidAndDid(@Param("uid")String uid, @Param("id")String id);

	int countInterest(String uid);

}