feat: add edit entity to entity mapping (#823)
- add edit entity to entity mapping - add delete entity to entity mapping Fixes: #767
This commit is contained in:
@@ -476,6 +476,15 @@ export class SystemService {
|
||||
return this.http.get(`/entitytoentitymapping/${mappingId}/${fromId}/${toId}`);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get particular Map Data
|
||||
* @param mapId Mapping Id
|
||||
*/
|
||||
getMapIdData(mapId: number): Observable<any> {
|
||||
return this.http.get(`/entitytoentitymapping/${mapId}`);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Creates a new mapping
|
||||
* @param {any} mapType Map id to be created.
|
||||
@@ -486,6 +495,24 @@ export class SystemService {
|
||||
return this.http.post(`/entitytoentitymapping/${mapType}`, mapData);
|
||||
}
|
||||
|
||||
/**
|
||||
* Edit a mapping
|
||||
* @param {any} mapType Map id to be edited.
|
||||
* @param {any} mapData Map data to be added
|
||||
* @returns {Observable<any>} resolved data
|
||||
*/
|
||||
editMapping(mapId: any, mapData: any): Observable<any> {
|
||||
return this.http.put(`/entitytoentitymapping/${mapId}`, mapData);
|
||||
}
|
||||
|
||||
/**
|
||||
* Delete the Map Id
|
||||
* @param mapId Map Id
|
||||
*/
|
||||
deleteMapping(mapId: any): Observable<any> {
|
||||
return this.http.delete(`/entitytoentitymapping/${mapId}`);
|
||||
}
|
||||
|
||||
/**
|
||||
* @returns {Observable<any>} Offices data
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user