import { get, put, post, deletes } from '@/http/index'

// 查询${functionName}列表
export const get${BusinessName} = async (data) => {
  return await get( '/${moduleName}/${businessName}/list',data )
}


// 新增${functionName}
export const add${BusinessName} = async (data) => {
  return await post( '/${moduleName}/${businessName}', data)
}

// 修改${functionName}
export const update${BusinessName} = async (data) => {
  return await put( '/${moduleName}/${businessName}', data)
}

// 删除${functionName}
export const remove${BusinessName} = async (${pkColumn.javaField}) => {
  return await deletes('/${moduleName}/${businessName}/' + ${pkColumn.javaField})
}

//  获取机种和机型树
export const getAircaftTypeAndModelTree = async (data) => {
  return await get('/basicdata/aircaftCatalog/getAircaftTypeAndModelTree', data)
}
