|
|
@@ -114,8 +114,8 @@ public class OssConsoleClient {
|
|
|
return webResult.getData();
|
|
|
}
|
|
|
|
|
|
- public List<ObjectChannel> getObjectChannels(String nodeAddr) throws Exception {
|
|
|
- String api = String.format("%s/api/oss/channels?nodeAddr=%s", endpoint, nodeAddr);
|
|
|
+ public List<ObjectChannel> getObjectChannels(int createBy, String nodeAddr) throws Exception {
|
|
|
+ String api = String.format("%s/api/oss/channels?createBy=%s&nodeAddr=%s", endpoint, createBy, nodeAddr);
|
|
|
HttpRequest httpRequest = HttpRequest.newBuilder(new URI(api))
|
|
|
.version(HttpClient.Version.HTTP_1_1)
|
|
|
.GET()
|
|
|
@@ -138,8 +138,8 @@ public class OssConsoleClient {
|
|
|
return webResult.getData();
|
|
|
}
|
|
|
|
|
|
- public ObjectChannel getObjectChannel(String nodeAddr, int channelId) throws Exception {
|
|
|
- String api = String.format("%s/api/oss/channel?nodeAddr=%s&channelId=%s", endpoint, nodeAddr, channelId);
|
|
|
+ public ObjectChannel getObjectChannel(int createBy, String nodeAddr, int channelId) throws Exception {
|
|
|
+ String api = String.format("%s/api/oss/channel?createBy=%s&nodeAddr=%s&channelId=%s", endpoint, createBy, nodeAddr, channelId);
|
|
|
HttpRequest httpRequest = HttpRequest.newBuilder(new URI(api))
|
|
|
.version(HttpClient.Version.HTTP_1_1)
|
|
|
.GET()
|
|
|
@@ -187,7 +187,7 @@ public class OssConsoleClient {
|
|
|
return webResult.getData();
|
|
|
}
|
|
|
|
|
|
- public DownloadUrl getDownloadUrl(String objectId, int channelId, long userId) throws Exception {
|
|
|
+ public DownloadUrl getDownloadUrl(String objectId, int channelId, int userId) throws Exception {
|
|
|
String api = String.format("%s/api/oss/object/url?objectId=%s&channelId=%s&userId=%s", endpoint, objectId, channelId, userId);
|
|
|
HttpRequest httpRequest = HttpRequest.newBuilder(new URI(api))
|
|
|
.header("authorization", "Bearer " + token)
|
|
|
@@ -410,7 +410,7 @@ public class OssConsoleClient {
|
|
|
return webResult.getData();
|
|
|
}
|
|
|
|
|
|
- public List<AudioUrl> getAudioUrls(String audioFileId, long loginUser) throws Exception {
|
|
|
+ public List<AudioUrl> getAudioUrls(String audioFileId, int loginUser) throws Exception {
|
|
|
String api = String.format("%s/api/oss/media/audio/url?audioFileId=%s&userId=%s", endpoint, audioFileId, loginUser);
|
|
|
HttpRequest httpRequest = HttpRequest.newBuilder(new URI(api))
|
|
|
.header("authorization", "Bearer " + token)
|
|
|
@@ -509,7 +509,7 @@ public class OssConsoleClient {
|
|
|
return webResult.getData();
|
|
|
}
|
|
|
|
|
|
- public ImageUrlDto getImageUrl(String imageFileId, long loginUser, int channelId) throws Exception {
|
|
|
+ public ImageUrlDto getImageUrl(String imageFileId, int loginUser, int channelId) throws Exception {
|
|
|
String api = String.format("%s/api/oss/media/image/url?channelId=%s&imageFileId=%s&loginUser=%s", endpoint, channelId, imageFileId, loginUser);
|
|
|
HttpRequest httpRequest = HttpRequest.newBuilder(new URI(api))
|
|
|
.header("authorization", "Bearer " + token)
|
|
|
@@ -559,7 +559,7 @@ public class OssConsoleClient {
|
|
|
return webResult.getData();
|
|
|
}
|
|
|
|
|
|
- public String getSignedUrl(String url, long loginUser, int channelId) throws Exception {
|
|
|
+ public String getSignedUrl(String url, int loginUser, int channelId) throws Exception {
|
|
|
String api = String.format("%s/api/oss/media/image/signedurl?channelId=%s&url=%s&loginUser=%s", endpoint, channelId, url, loginUser);
|
|
|
HttpRequest httpRequest = HttpRequest.newBuilder(new URI(api))
|
|
|
.header("authorization", "Bearer " + token)
|
|
|
@@ -629,7 +629,7 @@ public class OssConsoleClient {
|
|
|
return webResult.getData();
|
|
|
}
|
|
|
|
|
|
- public List<VideoUrlDto> getVideoUrls(String videoFileId, long loginUser) throws Exception {
|
|
|
+ public List<VideoUrlDto> getVideoUrls(String videoFileId, int loginUser) throws Exception {
|
|
|
String api = String.format("%s/api/oss/media/video/url?videoFileId=%s&userId=%s", endpoint, videoFileId, loginUser);
|
|
|
HttpRequest httpRequest = HttpRequest.newBuilder(new URI(api))
|
|
|
.header("authorization", "Bearer " + token)
|