Angular 公共API
let customBody = { "appID": APP_CONFIG['appID'], "apiVersion": "2", "surveyType": assessmentTypeName, "language": this.usingLanguage, "userID": this.currentPatientId, } this.defaultSetupService.getGraphChart(customBody).subscribe( data => { this.loadingMinus() /** * 0 is mean success. other status value is mean error **/ if (data["status"] == 0) { } else { this.snackBar.open(data["message"], '×', { panelClass: 'error', verticalPosition: 'top', duration: 5000 }); } }, error => { this.loadingMinus() this.snackBar.open(this.translateService.instant('General.Error.something_went_wrong_text'), '×', { panelClass: 'error', verticalPosition: 'top', duration: 5000 }); });
CORE->service->default-setup.service.ts
getGraphChart(customBody: object): Observable<any[]> { return this.httpService.callEMP(environment.API.getSurveyQuestionGrap, customBody, null); }

浙公网安备 33010602011771号