spring-boot-realworld-examp.../src/main/java/io/spring/application/profile/UserRelationshipQueryServic...

19 lines
565 B
Java
Raw Normal View History

2017-08-15 09:47:18 +07:00
package io.spring.application.profile;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;
2017-08-17 16:17:37 +07:00
import java.util.List;
import java.util.Set;
2017-08-15 09:47:18 +07:00
@Component
@Mapper
public interface UserRelationshipQueryService {
boolean isUserFollowing(@Param("userId") String userId, @Param("anotherUserId") String anotherUserId);
2017-08-17 16:17:37 +07:00
Set<String> followingAuthors(@Param("userId") String userId, @Param("ids") List<String> ids);
List<String> followedUsers(@Param("userId") String userId);
2017-08-15 09:47:18 +07:00
}