import request from '@/utils/request';

// 推文列表
export async function appTweets(data) {
  return request({
    path: '/system/tweets/list',
    data,
    type: 'get',
  });
}

// 推文列表
export async function appTweetsquery(data) {
  return request({
    path: '/system/tweets/query',
    data,
    type: 'get',
  });
}

// 获取企业列表
export async function enterpriselist(data) {
  return request({
    path: '/enterprise/enterprise/management/list',
    data,
    type: 'get',
  });
}

// 企业移除
export async function enterpriseRemove(data) {
  return request({
    path: '/enterprise/enterprise/supervise/remove',
    data,
    type: 'post',
  });
}

// 企业删除
export async function enterpriseDelete(data) {
  return request({
    path: '/enterprise/enterprise/management/delete',
    data,
    type: 'post',
  });
}

// 企业认领
export async function enterpriseBind(data) {
  return request({
    path: '/enterprise/enterprise/supervise/bind',
    data,
    type: 'post',
  });
}

// 企业信息
export async function enterprisecreate(data) {
  return request({
    path: '/enterprise/enterprise/management/create',
    data,
    type: 'post',
  });
}

//根据区域编号查询网格数
export async function griddingOptions(data) {
  return request({
    path: '/enterprise/gridding/options',
    type: 'get',
    data
  })
}

// 企业信息
export async function enterprisequery(data) {
  return request({
    path: '/enterprise/enterprise/management/query',
    data,
    type: 'get',
  });
}
export async function basequery(data) {
  return request({
    path: '/enterprise/base/query',
    data,
    type: 'get',
  });
}

// 企业安全
export async function safetyhome(data) {
  return request({
    path: '/enterprise/safety/home',
    data,
    type: 'get',
  });
}

// 企业安全基础信息
export async function safetyupdate(data) {
  return request({
    path: '/enterprise/safety/update',
    data,
    type: 'post',
  });
}

// 企业安全特性
export async function featurehome(data) {
  return request({
    path: '/enterprise/feature/home',
    data,
    type: 'get',
  });
}

// 企业安全特性
export async function regulatoryhome(data) {
  return request({
    path: '/enterprise/regulatory/home',
    data,
    type: 'get',
  });
}

// 服务机构
export async function orglist(data) {
  return request({
    path: '/system/combobox/service/org/list',
    data,
    type: 'get',
  });
}

// 企业安全特性
export async function baseupdate(data) {
  return request({
    path: '/enterprise/base/update',
    data,
    type: 'post',
  });
}

// 企业安全特性
export async function safetyinputlist(data) {
  return request({
    path: '/enterprise/safety/input/list',
    data,
    type: 'get',
  });
}

// 企业安全特性
export async function safetyinputdelete(data) {
  return request({
    path: '/enterprise/safety/input/delete',
    data,
    type: 'post',
  });
}

export async function safetydrilllist(data) {
  return request({
    path: '/enterprise/safety/drill/list',
    data,
    type: 'get',
  });
}

export async function safetydrilldelete(data) {
  return request({
    path: '/enterprise/safety/drill/delete',
    data,
    type: 'post',
  });
}

export async function safetyevaluationlist(data) {
  return request({
    path: '/enterprise/safety/evaluation/list',
    data,
    type: 'get',
  });
}

export async function safetyevaluationdelete(data) {
  return request({
    path: '/enterprise/safety/evaluation/delete',
    data,
    type: 'post',
  });
}

export async function safetyplanlist(data) {
  return request({
    path: '/enterprise/safety/plan/list',
    data,
    type: 'get',
  });
}

export async function safetyplandelete(data) {
  return request({
    path: '/enterprise/safety/plan/delete',
    data,
    type: 'post',
  });
}

export async function ammoniaquery(data) {
  return request({
    path: '/enterprise/feature/enterprise/ammonia/query',
    data,
    type: 'get',
  });
}

export async function ammoniaupdate(data) {
  return request({
    path: '/enterprise/feature/enterprise/ammonia/update',
    data,
    type: 'post',
  });
}

export async function metalquery(data) {
  return request({
    path: '/enterprise/feature/enterprise/metal/query',
    data,
    type: 'get',
  });
}

export async function metalupdate(data) {
  return request({
    path: '/enterprise/feature/enterprise/metal/update',
    data,
    type: 'post',
  });
}

export async function shipupdate(data) {
  return request({
    path: '/enterprise/feature/enterprise/ship/update',
    data,
    type: 'post',
  });
}

export async function shipquery(data) {
  return request({
    path: '/enterprise/feature/enterprise/ship/query',
    data,
    type: 'get',
  });
}

export async function facilityupdate(data) {
  return request({
    path: '/enterprise/feature/facility/update',
    data,
    type: 'post',
  });
}

export async function storagelist(data) {
  return request({
    path: '/enterprise/feature/facility/storage/list',
    data,
    type: 'get',
  });
}

export async function storagedelete(data) {
  return request({
    path: '/enterprise/feature/facility/storage/delete',
    data,
    type: 'post',
  });
}

export async function storagequery(data) {
  return request({
    path: '/enterprise/feature/facility/storage/query',
    data,
    type: 'get',
  });
}

export async function storageupdate(data) {
  return request({
    path: '/enterprise/feature/facility/storage/update',
    data,
    type: 'post',
  });
}

export async function storagecreate(data) {
  return request({
    path: '/enterprise/feature/facility/storage/create',
    data,
    type: 'post',
  });
}

export async function environmentallist(data) {
  return request({
    path: '/enterprise/feature/facility/environmental/list',
    data,
    type: 'get',
  });
}

export async function environmentalupdate(data) {
  return request({
    path: '/enterprise/feature/facility/environmental/update',
    data,
    type: 'post',
  });
}

export async function environmentalcreate(data) {
  return request({
    path: '/enterprise/feature/facility/environmental/create',
    data,
    type: 'post',
  });
}

export async function environmentalquery(data) {
  return request({
    path: '/enterprise/feature/facility/environmental/query',
    data,
    type: 'get',
  });
}

export async function environmentaldelete(data) {
  return request({
    path: '/enterprise/feature/facility/environmental/delete',
    data,
    type: 'post',
  });
}

export async function buildlist(data) {
  return request({
    path: '/enterprise/feature/facility/build/list',
    data,
    type: 'get',
  });
}

export async function buildupdate(data) {
  return request({
    path: '/enterprise/feature/facility/build/update',
    data,
    type: 'post',
  });
}

export async function buildcreate(data) {
  return request({
    path: '/enterprise/feature/facility/build/create',
    data,
    type: 'post',
  });
}

export async function buildquery(data) {
  return request({
    path: '/enterprise/feature/facility/build/query',
    data,
    type: 'get',
  });
}

export async function builddelete(data) {
  return request({
    path: '/enterprise/feature/facility/build/delete',
    data,
    type: 'post',
  });
}
export async function featureother(data) {
  return request({
    path: '/enterprise/feature/other/query',
    data,
    type: 'get',
  });
}
export async function featureotherupdate(data) {
  return request({
    path: '/enterprise/feature/other/update',
    data,
    type: 'post',
  });
}

export async function personallist(data) {
  return request({
    path: '/enterprise/personal/list',
    data,
    type: 'get',
  });
}
export async function personalquery(data) {
  return request({
    path: '/enterprise/personal/query',
    data,
    type: 'get',
  });
}
export async function personaldelete(data) {
  return request({
    path: '/enterprise/personal/delete',
    data,
    type: 'post',
  });
}
export async function personalupdate(data) {
  return request({
    path: '/enterprise/personal/update',
    data,
    type: 'post',
  });
}
export async function personalcreate(data) {
  return request({
    path: '/enterprise/personal/create',
    data,
    type: 'post',
  });
}

// 周边环境
export async function surroundingslist(data) {
  return request({
    path: '/enterprise/surroundings/list',
    data,
    type: 'get',
  });
}
export async function surroundingsquery(data) {
  return request({
    path: '/enterprise/surroundings/query',
    data,
    type: 'get',
  });
}
export async function surroundingsdelete(data) {
  return request({
    path: '/enterprise/surroundings/delete',
    data,
    type: 'post',
  });
}
export async function surroundingsupdate(data) {
  return request({
    path: '/enterprise/surroundings/update',
    data,
    type: 'post',
  });
}
export async function surroundingscreate(data) {
  return request({
    path: '/enterprise/surroundings/create',
    data,
    type: 'post',
  });
}

// 应用物资
export async function supplieslist(data) {
  return request({
    path: '/enterprise/supplies/list',
    data,
    type: 'get',
  });
}
export async function suppliesquery(data) {
  return request({
    path: '/enterprise/supplies/query',
    data,
    type: 'get',
  });
}
export async function suppliesdelete(data) {
  return request({
    path: '/enterprise/supplies/delete',
    data,
    type: 'post',
  });
}
export async function suppliesupdate(data) {
  return request({
    path: '/enterprise/supplies/update',
    data,
    type: 'post',
  });
}
export async function suppliescreate(data) {
  return request({
    path: '/enterprise/supplies/create',
    data,
    type: 'post',
  });
}

// 设备
export async function equipmenthome(data) {
  return request({
    path: '/enterprise/equipment/hone',
    data,
    type: 'get',
  });
}
export async function equipmentlist(data) {
  return request({
    path: '/enterprise/equipment/list',
    data,
    type: 'get',
  });
}
export async function equipmentquery(data) {
  return request({
    path: '/enterprise/equipment/query',
    data,
    type: 'get',
  });
}
export async function equipmentdelete(data) {
  return request({
    path: '/enterprise/equipment/delete',
    data,
    type: 'post',
  });
}
export async function equipmentupdate(data) {
  return request({
    path: '/enterprise/equipment/update',
    data,
    type: 'post',
  });
}
export async function equipmentcreate(data) {
  return request({
    path: '/enterprise/equipment/create',
    data,
    type: 'post',
  });
}

// 营业执照
export async function businessquery(data) {
  return request({
    path: '/enterprise/business/query',
    data,
    type: 'get',
  });
}
export async function businessupdate(data) {
  return request({
    path: '/enterprise/business/update',
    data,
    type: 'post',
  });
}

// 危化品
export async function chemicalslist(data) {
  return request({
    path: '/enterprise/feature/chemicals/list',
    data,
    type: 'get',
  });
}
export async function chemicalsquery(data) {
  return request({
    path: '/enterprise/feature/chemicals/query',
    data,
    type: 'get',
  });
}
export async function chemicalscreate(data) {
  return request({
    path: '/enterprise/feature/chemicals/create',
    data,
    type: 'post',
  });
}
export async function chemicalsupdate(data) {
  return request({
    path: '/enterprise/feature/chemicals/update',
    data,
    type: 'post',
  });
}
export async function chemicalsdelete(data) {
  return request({
    path: '/enterprise/feature/chemicals/delete',
    data,
    type: 'post',
  });
}
export async function libraryquery(data) {
  return request({
    path: '/system/combobox/chemicals/library',
    data,
    type: 'get',
  });
}
export async function placelabelquery(data) {
  return request({
    path: '/enterprise/feature/place/label/query',
    data,
    type: 'get',
  });
}
export async function placelabelupdate(data) {
  return request({
    path: '/enterprise/feature/place/label/update',
    data,
    type: 'post',
  });
}
export async function placelabellist(data) {
  return request({
    path: '/enterprise/feature/place/list',
    data,
    type: 'get',
  });
}
export async function placequery(data) {
  return request({
    path: '/enterprise/feature/place/query',
    data,
    type: 'get',
  });
}
export async function placedelete(data) {
  return request({
    path: '/enterprise/feature/place/delete',
    data,
    type: 'post',
  });
}
export async function placecreate(data) {
  return request({
    path: '/enterprise/feature/place/create',
    data,
    type: 'post',
  });
}
export async function placeupdate(data) {
  return request({
    path: '/enterprise/feature/place/update',
    data,
    type: 'post',
  });
}
// 锂电池
export async function lithiumquery(data) {
  return request({
    path: '/enterprise/feature/lithium/query',
    data,
    type: 'get',
  });
}
export async function lithiumlist(data) {
  return request({
    path: '/enterprise/feature/lithium/list',
    data,
    type: 'get',
  });
}
export async function lithiumcreate(data) {
  return request({
    path: '/enterprise/feature/lithium/create',
    data,
    type: 'post',
  });
}
export async function lithiumdelete(data) {
  return request({
    path: '/enterprise/feature/lithium/delete',
    data,
    type: 'post',
  });
}
export async function lithiumupdate(data) {
  return request({
    path: '/enterprise/feature/lithium/update',
    data,
    type: 'post',
  });
}

// 安全监管
export async function regulatoryquery(data) {
  return request({
    path: '/enterprise/regulatory/query',
    data,
    type: 'get',
  });
}
export async function regulatoryupdate(data) {
  return request({
    path: '/enterprise/regulatory/update',
    data,
    type: 'post',
  });
}
export async function accidentquery(data) {
  return request({
    path: '/enterprise/regulatory/accident/query',
    data,
    type: 'get',
  });
}
export async function accidentlist(data) {
  return request({
    path: '/enterprise/regulatory/accident/list',
    data,
    type: 'get',
  });
}
export async function eventquery(data) {
  return request({
    path: '/enterprise/regulatory/event/query',
    data,
    type: 'get',
  });
}
export async function eventlist(data) {
  return request({
    path: '/enterprise/regulatory/event/list',
    data,
    type: 'get',
  });
}
export async function checkquery(data) {
  return request({
    path: '/enterprise/regulatory/check/query',
    data,
    type: 'get',
  });
}
export async function checklist(data) {
  return request({
    path: '/enterprise/regulatory/check/list',
    data,
    type: 'get',
  });
}
export async function entSafetyInputCreate(data) {
  return request({
    path: '/enterprise/safety/input/create',
    data,
    type: 'post',
  });
}
export async function entSafetyPlanCreate(data) {
  return request({
    path: '/enterprise/safety/plan/create',
    data,
    type: 'post',
  });
}
export async function entSafetyEvaluationCreate(data) {
  return request({
    path: '/enterprise/safety/evaluation/create',
    data,
    type: 'post',
  });
}
export async function entSafetyDrillCreate(data) {
  return request({
    path: '/enterprise/safety/drill/create',
    data,
    type: 'post',
  });
}
export async function entSafetyTeachList(data) {
  return request({
    path: '/enterprise/safety/teach/list',
    data,
    type: 'get',
  });
}
export async function entSafetyTeachDelete(data) {
  return request({
    path: '/enterprise/safety/teach/delete',
    data,
    type: 'post',
  });
}
export async function entSafetyTeachCreate(data) {
  return request({
    path: '/enterprise/safety/teach/create',
    data,
    type: 'post',
  });
}
export async function entSafetyTrainList(data) {
  return request({
    path: '/enterprise/safety/train/list',
    data,
    type: 'get',
  });
}
export async function entSafetyTrainDelete(data) {
  return request({
    path: '/enterprise/safety/train/delete',
    data,
    type: 'post',
  });
}
export async function entSafetyTrainCreate(data) {
  return request({
    path: '/enterprise/safety/train/create',
    data,
    type: 'post',
  });
}
export async function riskSelfCheckCreate(data) {
  return request({
    path: '/risk/risk/self/check/create',
    data,
    type: 'post',
  });
}

//根据企业名称获取营业执照
export async function checkEnterprise(data) {
  return request({
    path: '/enterprise/check/enterprise',
    type: 'get',
    data
  })
}
