package org.dromara.im.mapper;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.dromara.common.mybatis.core.mapper.BaseMapperPlus;
import org.dromara.im.domain.ImFriend;
import org.dromara.im.domain.vo.ImFriendVo;

/**
 * 好友Mapper接口
 *
 * @author Luo.J
 * @date 2025-05-15
 */
@Mapper
public interface ImFriendMapper extends BaseMapperPlus<ImFriend, ImFriendVo> {

    @Delete("delete from im_friend where user_id = ${userId}")
    void deleteByUserId(Long userId);

    @Delete("truncate table im_friend")
    void truncateTable();
}
