Sfoglia il codice sorgente

更新 user 服务的 AdminUserSerivce 接口

reghao 1 anno fa
parent
commit
6407c53afc

+ 1 - 1
user/user-api/src/main/java/cn/reghao/tnb/user/api/iface/AdminUserService.java

@@ -14,6 +14,6 @@ import java.util.List;
  */
 public interface AdminUserService {
     PageList<UserInfo> getUserList(UserSearch userSearch);
-    List<AccountAvatar> getRandomUsers();
+    List<AccountAvatar> getPublishUsers(int publishType);
     List<VipPlanInfo> getVipPlans();
 }

+ 2 - 2
user/user-service/src/main/java/cn/reghao/tnb/user/app/rpc/AdminUserServiceImpl.java

@@ -40,8 +40,8 @@ public class AdminUserServiceImpl implements AdminUserService {
     }
 
     @Override
-    public List<AccountAvatar> getRandomUsers() {
-        List<Long> userIds = userContentService.getContentUser();
+    public List<AccountAvatar> getPublishUsers(int publishType) {
+        List<Long> userIds = userContentService.getContentUser(publishType);
         return accountQuery.getAccountAvatars(userIds);
     }
 

+ 1 - 1
user/user-service/src/main/java/cn/reghao/tnb/user/app/service/UserProfileService.java

@@ -82,7 +82,7 @@ public class UserProfileService {
     }
 
     public List<UserInfo> getRandomUsers() {
-        List<Long> userIds = userContentService.getContentUser();
+        List<Long> userIds = userContentService.getContentUser(1);
         List<AccountInfo> list = accountQuery.getAccountInfos(userIds);
         return list.stream()
                 .map(accountInfo -> {