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