const {request} = require("../request/index") /** * 获取banner列表 * @param {*} params */ export const getBanner = function(params) { return request({ url: '/ad/getHomeList', method: "GET", params }) } /** * 获取首页任务展示 * @param {*} params */ export const getHomeData = function(params) { return request({ url: '/task/getTaskList', method: "GET", params }) } /** * 获取平台列表 * @param {*} params */ export const getPlatform = function(params) { return request({ url: '/city/queryCityList', method: "GET", params }) } /** * 获取所有任务列表 * @param {*} params */ export const getAllTask = function(params) { return request({ url: '/task/totalList', method: "GET", params }) } /** * 获取无人机列表 * @param {*} params */ export const getEquipments = function(params) { return request({ url: '/equipment/equipments', method: "GET", params }) } /** * 获取所有运河列表 * @param {*} params */ export const getCloudBox = function(params) { return request({ url: '/pilotCloudBox/cloudBoxs', method: "GET", params }) } /** * 获取挂载设备 * @param {*} params */ export const getMounts = function(params) { return request({ url: '/equipmentMount/equipmentMounts', method: "GET", params }) } /** * 接单 */ export const confirmOrder = function (data) { return request({ url: '/task/todoDetailTask', method: 'PUT', data }) }