import 'package:dio/dio.dart'; import 'package:qhd_prevention/http/ApiService.dart'; import 'package:qhd_prevention/http/HttpManager.dart'; // 安全环保检查 class SafetyCheckApi { /// 安全环保检查发起 static Future> safeCheckAdd(Map data) { return HttpManager().request( '${ApiService.basePath}/inspection', '/safetyEnvironmentalInspection/initiate', method: Method.post, data: {...data}, ); } /// 安全环保检查列表 static Future> safeCheckList(Map data) { return HttpManager().request( '${ApiService.basePath}/inspection', '/safetyEnvironmentalInspection/page', method: Method.post, data: {...data}, ); } /// 安全环保检查流程图 static Future> safeCheckFlow(String id) { return HttpManager().request( '${ApiService.basePath}/inspection', '/safetyEnvironmentalInspection/flowchart/$id', method: Method.post, data: { 'id':id }, ); } /// 安全环保检查人核实 static Future> safeCheckVerify(Map data) { return HttpManager().request( '${ApiService.basePath}/inspection', '/safetyEnvironmentalInspection/verify', method: Method.post, data: {...data}, ); } /// 安全环保检查被检查人确认 static Future> safeCheckConfirm(Map data) { return HttpManager().request( '${ApiService.basePath}/inspection', '/safetyEnvironmentalInspection/confirm', method: Method.post, data: {...data}, ); } /// 安全环保检查隐患指派 static Future> safeCheckHiddenAssign(Map data) { return HttpManager().request( '${ApiService.basePath}/inspection', '/safetyEnvironmentalInspection/assign', method: Method.post, data: {...data}, ); } /// 安全环保检查验收 static Future> safeCheckAcceptance(Map data) { return HttpManager().request( '${ApiService.basePath}/inspection', '/safetyEnvironmentalInspection/accept', method: Method.post, data: {...data}, ); } /// 查询安全环保检查详情 static Future> safeCheckDetail(String inspectionId) { return HttpManager().request( '${ApiService.basePath}/inspection', '/safetyEnvironmentalInspection/detail', method: Method.post, data: {"inspectionId": inspectionId}, ); } /// 删除安全环保检查 static Future> safeCheckDelete(String inspectionId) { return HttpManager().request( '${ApiService.basePath}/inspection', '/safetyEnvironmentalInspection/remove/$inspectionId', method: Method.post, data: {}, ); } /// 安全环保检查申辩列表 static Future> safeCheckAppealList(String id) { return HttpManager().request( '${ApiService.basePath}/inspection', '/safetyEnvironmentalInspection/defense/$id', method: Method.post, data: {}, ); } /// 安全环保检查申辩审核 static Future> safeCheckAppealAudit(Map data) { return HttpManager().request( '${ApiService.basePath}/inspection', '/safetyEnvironmentalInspection/defenseReview', method: Method.post, data: {...data}, ); } /// 安全环保检查编辑修改 static Future> safeCheckEdit(Map data) { return HttpManager().request( '${ApiService.basePath}/inspection', '/safetyEnvironmentalInspection/edit', method: Method.post, data: {...data}, ); } /// 获取检查数量 static Future> safeCheckCount() { return HttpManager().request( '${ApiService.basePath}/inspection', '/safetyEnvironmentalInspection/getCount', method: Method.post, data: {}, ); } }