import { $http } from "./config"; export default { // 登录 login(data) { return $http("/user/web/login", data); }, // 获取首页信息 getIndexData(data) { return $http("/index", data); }, // 新增船东 addShipOwner(data) { return $http("/shipOwner/add", data); }, // 获取船东列表 getShipOwnerList(data) { return $http("/shipOwner/list", data); }, // 获取船东详情 getShipOwnerDetail(data) { return $http("/shipOwner/detail", data); }, // 更新船东信息 updateShipOwner(data) { return $http("/shipOwner/update", data); }, // 新增船舶 addShip(data) { return $http("/ship/add", data); }, // 删除船舶 deleteShip(data) { return $http("/ship/delete", data); }, // 删除船舶证书 deleteShipCert(data) { return $http("/ship/delete/cert", data); }, // 首页船舶详情 getIndexShipDetail(data) { return $http("/index/detail", data); }, // 船舶详情 getShipDetail(data) { return $http("/ship/detail", data); }, // 获取船舶列表 getShipList(data) { return $http("/ship/list", data); }, // 使用mmsi匹配船舶 searchShip(data) { return $http("/ship/search", data); }, // 更新船舶基础信息 updateShip(data) { return $http("/ship/update", data); }, // 更新证书有效期 updateShipCertValid(data) { return $http("/ship/update/cert/valid", data); }, // 获取证书/保险列表 getCertList(data) { return $http("/cert/list", data); }, // 获取初始化数据-新增船舶 getAddShipCerts(data) { return $http("/cert/addShip/type", data); }, // 获取证书及有效期类型-证书列表 getCertListType(data) { return $http("/cert/certList/type", data); }, // 新增安全检查模板 addSecurityTemplate(data) { return $http("/security/template/add", data); }, // 删除安全检查模板 deleteSecurityTemplate(data) { return $http("/security/template/delete", data); }, // 获取安全检查模板详情 getSecurityTemplateDetail(data) { return $http("/security/template/detail", data); }, // 获取安全检查项目下拉 getSecurityTemplateTypeSelect() { return $http("/security/template/item/select"); }, // 获取安全检查模板列表 getSecurityTemplateList(data) { return $http("/security/template/list", data); }, // 修改安全检查模板 updateSecurityTemplate(data) { return $http("/security/template/update", data); }, // 获取首页通知数据 getIndexNotice() { return $http("/index/notice", {}); }, // 发布船舶安检 addSecurityCheck(data) { return $http("/security/check/add", data); }, // 发起船舶安检-安检模板下拉选择 getAddTemplateSelect(data) { return $http("/security/check/add/template/select", data); }, // 发起船舶安检-根据模板选择船舶 getAddTemplateShipSelect(data) { return $http("/security/check/add/template/ship/select", data); }, // 安检列表 getSecurityCheckList(data) { return $http("/security/check/list", data); }, // 船舶安检详情 getSecurityCheckDetail(data) { return $http("/security/check/ship/detail", data); }, // 审核安检项目 checkSecurityItem(data) { return $http("/security/check/ship/item/check", data); }, // 船舶安检列表 getSecurityCheckShipList(data) { return $http("/security/check/ship/list", data); }, // 审核异常船舶 auditAbnormalShip(data) { return $http("/ship/audit/abnormal", data); }, // 获取海事公告列表 getShippingNoticeList(data) { return $http("/maritime/notice/getFileList", data); }, // 新增消防检查模板 addFireSafetyTemplate(data) { return $http("/fire/inspection/temp/add", data); }, // 删除消防检查模板 deleteFireSafetyTemplate(data) { return $http("/fire/inspection/temp/delete", data); }, // 获取消防检查模板详情 getFireSafetyTemplateDetail(data) { return $http("/fire/inspection/temp/detail", data); }, // 发起消防检查 addFireSafetyCheck(data) { return $http("/fire/inspection/temp/initiate", data); }, // 获取消防安检项目类型下拉 getFireSafetyTemplateTypeSelect() { return $http("/fire/inspection/temp/item/select"); }, // 获取消防检查模板列表 getFireSafetyTemplateList(data) { return $http("/fire/inspection/temp/list", data); }, // 修改消防检查模板 updateFireSafetyTemplate(data) { return $http("/fire/inspection/temp/update", data); }, // 选择安全检查人员/承诺人 getFireSafetyCheckUser(data) { return $http("/fire/inspection/account/select", data); }, // 消防检查详情 getFireSafetyCheckDetail(data) { return $http("/fire/inspection/detail", data); }, // 审核消防检查项目 checkFireSafetyItem(data) { return $http("/fire/inspection/item/check", data); }, // 消防检查列表 getFireSafetyCheckList(data) { return $http("/fire/inspection/list", data); }, // 保存整改意见 saveFireSafetyCheckRectification(data) { return $http("/fire/inspection/save/rectification", data); }, // 保存安全检查员 saveFireSafetyCheckUser(data) { return $http("/fire/inspection/save/security/account", data); }, // 新增船员 addCrew(data) { return $http("/ship/crew/add", data); }, // 删除船员 deleteCrew(data) { return $http("/ship/crew/delete", data); }, // 获取船员列表 getCrewList(data) { return $http("/ship/crew/list", data); }, // 获取船员详情 getCrewDetail(data) { return $http("/ship/crew/detail", data); }, // 更新船员 updateCrew(data) { return $http("/ship/crew/update", data); }, // 上传船员文件 uploadCrewFile(data) { return $http("/ship/crew/uploadCert", data); }, // 修改船舶-基础信息-船籍省份选择 getProvinceSelect() { return $http("/ship/province/select"); }, };