Modified
This commit is contained in:
parent
79cadbf9b7
commit
9c376a64b9
1
angular/src/app/proxy/doctors/dto/index.ts
Normal file
1
angular/src/app/proxy/doctors/dto/index.ts
Normal file
@ -0,0 +1 @@
|
|||||||
|
export * from './models';
|
14
angular/src/app/proxy/doctors/dto/models.ts
Normal file
14
angular/src/app/proxy/doctors/dto/models.ts
Normal 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;
|
||||||
|
}
|
1
angular/src/app/proxy/shared/index.ts
Normal file
1
angular/src/app/proxy/shared/index.ts
Normal file
@ -0,0 +1 @@
|
|||||||
|
export * from './shared.service';
|
34
angular/src/app/proxy/shared/shared.service.ts
Normal file
34
angular/src/app/proxy/shared/shared.service.ts
Normal 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) {}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user