package com.red.circle.other.infra.database.rds.dao.user.user;

import com.red.circle.framework.mybatis.dao.BaseDAO;
import com.red.circle.other.infra.database.rds.entity.user.user.RelationshipFriend;
import com.red.circle.other.inner.model.dto.user.PetRelationshipFriendDTO;
import java.util.List;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 用户好友关系 Mapper 接口.
 * </p>
 *
 * @author pengliang
 * @since 2021-05-07
 */
public interface RelationshipFriendDAO extends BaseDAO<RelationshipFriend> {

  /**
   * 获取宠物余额top好友信息
   *
   * @param userId  用户id
   * @param topSize 数量
   * @return list
   */
  List<PetRelationshipFriendDTO> findPetBeanTop(@Param("userId") Long userId,
      @Param("topSize") Integer topSize);

}
