|
|
|
@ -114,6 +114,14 @@ export class BuildingBasicInfosService {
|
|
|
|
|
return this.postInfos(this.api_sandBoxTemplate, data, { name: name, "id": id }); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 删除信息 |
|
|
|
|
* @param id
|
|
|
|
|
*/ |
|
|
|
|
deleteSandBoxTemplate(id: number) { |
|
|
|
|
return this.deleteInfos(this.api_sandBoxTemplate, { "Id": id }); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -127,6 +135,11 @@ export class BuildingBasicInfosService {
|
|
|
|
|
*/ |
|
|
|
|
readonly c_post = "/PostOrPut"; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 删除信息 |
|
|
|
|
*/ |
|
|
|
|
readonly c_delete = "/Delete"; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 通用消息头 |
|
|
|
|
*/ |
|
|
|
@ -163,6 +176,18 @@ export class BuildingBasicInfosService {
|
|
|
|
|
catchError((err) => this.handleError(err)) |
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 删除信息 |
|
|
|
|
* @param api
|
|
|
|
|
* @param params
|
|
|
|
|
*/ |
|
|
|
|
deleteInfos(api: string, params = {}) { |
|
|
|
|
return this.http.get<string>(api + this.c_delete, { params: params }).pipe( |
|
|
|
|
catchError((err) => this.handleError(err)) |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
//#endregion
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|