You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
826 B

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

package com.ruoyi.im.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.im.domain.ImUserBlack;
public interface ImUserBlackService extends IService<ImUserBlack> {
/**
* 判断 receiver 是否拉黑 sender
* @param receiver 消息接收人
* @param sender 消息发送人
* @return true receiver拉黑sender,消息禁止发送
*/
boolean isBlack(Long receiver, Long sender);
/**
* 拉黑用户
* @param fromUid 操作人(拉黑者)
* @param toUid 被拉黑用户
* @return true成功
*/
boolean blackUser(Long fromUid, Long toUid);
/**
* 取消拉黑
* @param fromUid 操作人
* @param toUid 被拉黑用户
* @return true成功
*/
boolean unBlackUser(Long fromUid, Long toUid);
}