package com.qnfhq.modules.c2c.service;

import com.qnfhq.common.page.PageData;
import com.qnfhq.common.service.BaseService;
import com.qnfhq.modules.c2c.entity.UserFollowsEntity;

import java.util.Map;

/**
 * c2c用户和商家关注关系
 *
 * @author yelz 30262728@qq.com
 * @since 1.0.0 2025-11-29
 */
public interface UserFollowsService extends BaseService<UserFollowsEntity> {

    /**
     * 查询关注关系
     * @param followerId
     * @param followingId
     * @return
     */
    UserFollowsEntity selectByFollowerIdFollowingId(Long followerId,Long followingId);
    /**
     * 取消关注
     * @param followingId
     */
    void deleteByFollowerIdFollowingId(Long followerId,Long followingId);

    /**
     * 查询已关注列表
     * @param params
     * @return
     */
    PageData<UserFollowsEntity> selectPageByFollowerId(Map<String, Object> params);

    /**
     * 查询关注我列表
     * @param params
     * @return
     */
    PageData<UserFollowsEntity> selectPageByFollowingId(Map<String, Object> params);
}