package com.ruoyi.cai.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.cai.domain.UserBlacklist;
import com.ruoyi.cai.dto.app.vo.user.UserListVo;
import com.ruoyi.common.core.domain.PageQuery;

/**
 * 用户黑名单Service接口
 *
 * @author 77
 * @date 2023-12-30
 */
public interface UserBlacklistService extends IService<UserBlacklist> {

    /**
     *
     * @param actionType 1-拉黑 2-取消拉黑
     */
    boolean black(Long userId, Long blackUserId,Integer actionType);

    Page<UserListVo> pageApp(PageQuery pageQuery, Long userId);
}
