mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
Add loader to publication post
This commit is contained in:
+5
-2
@@ -4,6 +4,7 @@ import { PublicationListByProcessIdOutPut } from 'src/app/core/actions/use-case/
|
||||
import { ApiResponse } from 'src/app/infra/http/type';
|
||||
import { HttpService } from 'src/app/services/http.service';
|
||||
import { environment } from 'src/environments/environment';
|
||||
import { HttpService as HttpServiceInfra } from 'src/app/infra/http/http.service';
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root'
|
||||
@@ -13,7 +14,9 @@ export class PublicationFileRemoteRepositoryService {
|
||||
private baseUrl = `${environment.apiURLStage.slice(0, -1)}/PresidentialActions`; // Your base URL
|
||||
|
||||
constructor(
|
||||
private http: HttpService
|
||||
private http: HttpService,
|
||||
private httpServiceInfra: HttpServiceInfra,
|
||||
|
||||
) { }
|
||||
|
||||
async listByProcessId(processId: string) {
|
||||
@@ -22,6 +25,6 @@ export class PublicationFileRemoteRepositoryService {
|
||||
}
|
||||
|
||||
async FileListByDocumentId(input: PublicationFileGetByDocumentIdInput) {
|
||||
return await this.http.get<ApiResponse<PublicationFileGetByDocumentIdOutPut>>(`${this.baseUrl}/Posts/${input.documentId}/file`);
|
||||
return await this.httpServiceInfra.get<ApiResponse<PublicationFileGetByDocumentIdOutPut>>(`${this.baseUrl}/Posts/${input.documentId}/file`);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user