import 'package:qhd_prevention/http/ApiService.dart'; import 'package:qhd_prevention/http/HttpManager.dart'; class SpecialWorkApi { /// 特殊作业初始化 static Future> specialWorkInit(String gateway) { return HttpManager().request( ApiService.basePath, '/eightwork/taskFlow/getWorkInit', method: Method.post, data: { 'workType': gateway, }, ); } /// 特殊作业新增 static Future> specialWorkSave(Map data) { return HttpManager().request( ApiService.basePath, '/eightwork/taskLog/save', method: Method.post, data: {...data}, ); } /// 初始化流程 static Future> specialWorkFlowInit(Map data) { return HttpManager().request( ApiService.basePath, '/eightwork/taskFlow/getFlowInit', method: Method.post, data: {...data}, ); } /// 代办列表 static Future> specialWorkTaskLogList(Map data) { return HttpManager().request( ApiService.basePath, '/eightwork/taskLog/list', method: Method.post, data: {...data}, ); } /// 获取详情 static Future> specialWorkTaskLogDetail(String id) { return HttpManager().request( ApiService.basePath, '/eightwork/taskLog/$id', method: Method.get, data: {}, ); } /// 获取安全措施列表 static Future> specialWorkMeasureList(String eqWorkType) { return HttpManager().request( ApiService.basePath, '/eightwork/measures/listAll', method: Method.post, data: {'eqWorkType': eqWorkType}, ); } /// 特殊作业下一步taskLog/nextStep static Future> specialWorkNextStep(Map data) { return HttpManager().request( ApiService.basePath, '/eightwork/taskLog/nextStep', method: Method.post, data: {...data}, ); } /// 查看流程图 static Future> specialWorkFlowList(String workId) { return HttpManager().request( ApiService.basePath, '/eightwork/taskLog/listAll/$workId', method: Method.get, data: {}, ); } /// 获取作业安全措施详情 static Future> specialWorkMeasureDetail(String workId) { return HttpManager().request( ApiService.basePath, '/eightwork/measuresLogs/listAll/$workId', method: Method.get, data: {}, ); } }