Merge branch 'master' of https://git.loafle.net/ucap-web/next-ucap-messenger
This commit is contained in:
commit
9b18f6ec64
|
@ -254,16 +254,22 @@ export class CommonApiService {
|
||||||
public massTalkSave(
|
public massTalkSave(
|
||||||
req: MassTalkSaveRequest
|
req: MassTalkSaveRequest
|
||||||
): Observable<MassTalkSaveResponse> {
|
): Observable<MassTalkSaveResponse> {
|
||||||
return this.httpClient
|
const httpReq = new HttpRequest(
|
||||||
.post<any>(
|
'POST',
|
||||||
this.urls.massTalkSave,
|
this.urls.massTalkSave,
|
||||||
{},
|
encodeMassTalkSave(req),
|
||||||
{
|
{ reportProgress: true, responseType: 'text' as 'json' }
|
||||||
params: encodeMassTalkSave(req),
|
);
|
||||||
responseType: 'text' as 'json'
|
|
||||||
|
return this.httpClient.request(httpReq).pipe(
|
||||||
|
filter(event => {
|
||||||
|
if (event instanceof HttpResponse) {
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
)
|
return false;
|
||||||
.pipe(map(res => decodeMassTalkSave(res)));
|
}),
|
||||||
|
map(res => decodeMassTalkSave((res as HttpResponse<any>).body))
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
public transMassTalkDownload(
|
public transMassTalkDownload(
|
||||||
|
|
Loading…
Reference in New Issue
Block a user