This commit is contained in:
Sk Shaifat Murshed 2025-02-07 17:42:13 +05:30
parent 79cadbf9b7
commit 9c376a64b9
4 changed files with 50 additions and 0 deletions

View File

@ -0,0 +1 @@
export * from './models';

View File

@ -0,0 +1,14 @@
import type { FullAuditedEntity } from '../../volo/abp/domain/entities/auditing/models';
export interface DoctorDto extends FullAuditedEntity<string> {
firstName?: string;
lastName?: string;
gender?: string;
mobile?: string;
designation?: string;
departmentId?: string;
address?: string;
email?: string;
dob?: string;
education?: string;
}

View File

@ -0,0 +1 @@
export * from './shared.service';

View File

@ -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<Rest.Config>) =>
this.restService.request<any, EntityDocument[]>({
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<Rest.Config>) =>
this.restService.request<any, string>({
method: 'POST',
responseType: 'text',
url: '/api/app/shared/upload-file',
params: { tagName: TagName },
body: file,
},
{ apiName: this.apiName,...config });
constructor(private restService: RestService) {}
}