|
|
@@ -6,6 +6,7 @@ import cn.reghao.jutil.jdk.db.PageList;
|
|
|
import cn.reghao.jutil.jdk.result.Result;
|
|
|
import cn.reghao.jutil.web.WebResult;
|
|
|
import cn.reghao.jutil.tool.id.SnowFlake;
|
|
|
+import cn.reghao.tnb.account.api.iface.AccountQuery;
|
|
|
import cn.reghao.tnb.common.auth.UserContext;
|
|
|
import cn.reghao.tnb.common.db.SelectOption;
|
|
|
import cn.reghao.tnb.content.api.constant.AlbumAction;
|
|
|
@@ -37,6 +38,8 @@ import java.util.stream.Collectors;
|
|
|
public class AlbumService {
|
|
|
@DubboReference(check = false)
|
|
|
private OssService ossService;
|
|
|
+ @DubboReference(check = false, retries = 0, timeout = 60_000)
|
|
|
+ private AccountQuery accountQuery;
|
|
|
|
|
|
private final int pageSize = 12;
|
|
|
private final SnowFlake idGenerator;
|
|
|
@@ -93,7 +96,8 @@ public class AlbumService {
|
|
|
return Result.success();
|
|
|
}
|
|
|
|
|
|
- public PageList<AlbumInfo> getUserAlbums(long userId, int pn) {
|
|
|
+ public PageList<AlbumInfo> getUserAlbums(String userIdStr, int pn) {
|
|
|
+ long userId = accountQuery.getUserIdLong(userIdStr);
|
|
|
List<Integer> scopes = contentPermission.getUserScopes();
|
|
|
long loginUser = UserContext.getUser();
|
|
|
if (loginUser == userId) {
|