diff --git a/angular/src/app/proxy/doctors/dto/index.ts b/angular/src/app/proxy/doctors/dto/index.ts new file mode 100644 index 0000000..e9644da --- /dev/null +++ b/angular/src/app/proxy/doctors/dto/index.ts @@ -0,0 +1 @@ +export * from './models'; diff --git a/angular/src/app/proxy/doctors/dto/models.ts b/angular/src/app/proxy/doctors/dto/models.ts new file mode 100644 index 0000000..422a46f --- /dev/null +++ b/angular/src/app/proxy/doctors/dto/models.ts @@ -0,0 +1,14 @@ +import type { FullAuditedEntity } from '../../volo/abp/domain/entities/auditing/models'; + +export interface DoctorDto extends FullAuditedEntity { + firstName?: string; + lastName?: string; + gender?: string; + mobile?: string; + designation?: string; + departmentId?: string; + address?: string; + email?: string; + dob?: string; + education?: string; +} diff --git a/angular/src/app/proxy/shared/index.ts b/angular/src/app/proxy/shared/index.ts new file mode 100644 index 0000000..e664ade --- /dev/null +++ b/angular/src/app/proxy/shared/index.ts @@ -0,0 +1 @@ +export * from './shared.service'; diff --git a/angular/src/app/proxy/shared/shared.service.ts b/angular/src/app/proxy/shared/shared.service.ts new file mode 100644 index 0000000..308147a --- /dev/null +++ b/angular/src/app/proxy/shared/shared.service.ts @@ -0,0 +1,34 @@ +import { RestService, Rest } from '@abp/ng.core'; +import { Injectable } from '@angular/core'; +import type { EntityDocument } from '../documents/models'; +import type { Patient } from '../patients/models'; + +@Injectable({ + providedIn: 'root', +}) +export class SharedService { + apiName = 'Default'; + + + saveFileToDocumentByPatientAndUniqueIdsAndIsNew = (patient: Patient, uniqueIds: string[], isNew?: boolean, config?: Partial) => + this.restService.request({ + method: 'POST', + url: '/api/app/shared/save-file-to-document', + params: { isNew }, + body: uniqueIds, + }, + { apiName: this.apiName,...config }); + + + uploadFile = (TagName: string, file: FormData, config?: Partial) => + this.restService.request({ + method: 'POST', + responseType: 'text', + url: '/api/app/shared/upload-file', + params: { tagName: TagName }, + body: file, + }, + { apiName: this.apiName,...config }); + + constructor(private restService: RestService) {} +}