package com.goafanti.common.dao;

import com.goafanti.common.model.UserFollow;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserFollowMapper {
    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table user_follow
     *
     * @mbggenerated
     */
    int deleteByPrimaryKey(String id);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table user_follow
     *
     * @mbggenerated
     */
    int insert(UserFollow record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table user_follow
     *
     * @mbggenerated
     */
    int insertSelective(UserFollow record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table user_follow
     *
     * @mbggenerated
     */
    UserFollow selectByPrimaryKey(String id);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table user_follow
     *
     * @mbggenerated
     */
    int updateByPrimaryKeySelective(UserFollow record);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table user_follow
	 * @mbg.generated  Sat Oct 10 10:18:15 CST 2020
	 */
	int updateByPrimaryKey(UserFollow record);


	int pushUserGuidance(@Param("id")String id, @Param("guidance")Integer guidance);

	List<UserFollow> selectbyUid(@Param("uid")String uid, @Param("aid")String aid);


}