|
@@ -4,6 +4,7 @@ import cn.reghao.jutil.jdk.db.BaseMapper;
|
|
|
import cn.reghao.tnb.user.api.dto.UserInfo;
|
|
import cn.reghao.tnb.user.api.dto.UserInfo;
|
|
|
import cn.reghao.tnb.user.app.model.po.UserRelation;
|
|
import cn.reghao.tnb.user.app.model.po.UserRelation;
|
|
|
import org.apache.ibatis.annotations.Mapper;
|
|
import org.apache.ibatis.annotations.Mapper;
|
|
|
|
|
+import org.apache.ibatis.annotations.Param;
|
|
|
|
|
|
|
|
import java.util.List;
|
|
import java.util.List;
|
|
|
|
|
|
|
@@ -16,7 +17,7 @@ public interface UserRelationMapper extends BaseMapper<UserRelation> {
|
|
|
void deleteByUserRelation(long userId, long followingId);
|
|
void deleteByUserRelation(long userId, long followingId);
|
|
|
|
|
|
|
|
List<Long> findFollowingUsers(long userId);
|
|
List<Long> findFollowingUsers(long userId);
|
|
|
- UserRelation findRelation(long loginUserId, long userId);
|
|
|
|
|
|
|
+ UserRelation findRelation(@Param("loginUserId") long loginUserId, @Param("userId") long userId);
|
|
|
|
|
|
|
|
int countUserFollower(long userId);
|
|
int countUserFollower(long userId);
|
|
|
List<Long> findUserFollowers(long userId);
|
|
List<Long> findUserFollowers(long userId);
|