optional urls are added

This commit is contained in:
병준 박 2019-10-29 16:53:25 +09:00
parent 93eb386825
commit e516d4b756

View File

@ -75,11 +75,14 @@ export class CommonApiService {
) {}
public fileProfileSave(
req: FileProfileSaveRequest
req: FileProfileSaveRequest,
fileProfileSaveUrl?: string
): Observable<FileProfileSaveResponse> {
return this.httpClient
.post<any>(
this.moduleConfig.urls.fileProfileSave,
!!fileProfileSaveUrl
? fileProfileSaveUrl
: this.moduleConfig.urls.fileProfileSave,
{},
{
params: encodeFileProfileSave(req)
@ -88,9 +91,14 @@ export class CommonApiService {
.pipe(map(res => decodeFileProfileSave(res)));
}
public fileTalkDownload(req: FileTalkDownloadRequest): Observable<Blob> {
public fileTalkDownload(
req: FileTalkDownloadRequest,
fileTalkDownloadUrl?: string
): Observable<Blob> {
return this.httpClient.post<Blob>(
this.moduleConfig.urls.fileTalkDownload,
!!fileTalkDownloadUrl
? fileTalkDownloadUrl
: this.moduleConfig.urls.fileTalkDownload,
{ responseType: 'blob' },
{
params: encodeFileTalkDownload(req)
@ -99,11 +107,14 @@ export class CommonApiService {
}
public fileTalkSave(
req: FileTalkSaveRequest
req: FileTalkSaveRequest,
fileTalkSaveUrl?: string
): Observable<FileTalkSaveResponse> {
return this.httpClient
.post<any>(
this.moduleConfig.urls.fileTalkSave,
!!fileTalkSaveUrl
? fileTalkSaveUrl
: this.moduleConfig.urls.fileTalkSave,
{},
{
params: encodeFileTalkSave(req)