package io.spring.infrastructure.mybatis.readservice; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Param; import org.springframework.stereotype.Component; import java.util.List; import java.util.Set; @Component @Mapper public interface UserRelationshipQueryService { boolean isUserFollowing(@Param("userId") String userId, @Param("anotherUserId") String anotherUserId); Set followingAuthors(@Param("userId") String userId, @Param("ids") List ids); List followedUsers(@Param("userId") String userId); }