2017-08-18 16:08:27 +07:00
|
|
|
package io.spring.infrastructure.mybatis.readservice;
|
2017-08-15 09:47:18 +07:00
|
|
|
|
|
|
|
import org.apache.ibatis.annotations.Mapper;
|
|
|
|
import org.apache.ibatis.annotations.Param;
|
|
|
|
|
2017-08-17 16:17:37 +07:00
|
|
|
import java.util.List;
|
|
|
|
import java.util.Set;
|
|
|
|
|
2017-08-15 09:47:18 +07:00
|
|
|
@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
|
|
|
}
|