|
|
|
|
@ -5,7 +5,6 @@ import 'package:doctor_app_flutter/models/operation_report/get_operation_report_
|
|
|
|
|
import 'package:doctor_app_flutter/models/operation_report/get_operation_report_request_model.dart';
|
|
|
|
|
|
|
|
|
|
class OperationReportService extends BaseService {
|
|
|
|
|
|
|
|
|
|
List<GetOperationReportModel> _operationReportList = [];
|
|
|
|
|
List<GetOperationReportModel> get operationReportList => _operationReportList;
|
|
|
|
|
|
|
|
|
|
@ -31,13 +30,14 @@ class OperationReportService extends BaseService {
|
|
|
|
|
}, body: getOperationReportRequestModel.toJson());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Future updateOperationReport(CreateUpdateOperationReportRequestModel createUpdateOperationReport) async {
|
|
|
|
|
Future updateOperationReport(
|
|
|
|
|
CreateUpdateOperationReportRequestModel
|
|
|
|
|
createUpdateOperationReport) async {
|
|
|
|
|
await baseAppClient.post(UPDATE_OPERATION_REPORT,
|
|
|
|
|
onSuccess: (dynamic response, int statusCode) {
|
|
|
|
|
|
|
|
|
|
}, onFailure: (String error, int statusCode) {
|
|
|
|
|
hasError = true;
|
|
|
|
|
super.error = error;
|
|
|
|
|
}, body: createUpdateOperationReport.toJson(),isFallLanguage: true);
|
|
|
|
|
onSuccess: (dynamic response, int statusCode) {},
|
|
|
|
|
onFailure: (String error, int statusCode) {
|
|
|
|
|
hasError = true;
|
|
|
|
|
super.error = error;
|
|
|
|
|
}, body: createUpdateOperationReport.toJson(), isFallLanguage: true);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|