package com.djhk.uav.uav.controller;


import com.djhk.common.core.controller.BaseController;
import com.djhk.common.core.domain.R;
import com.djhk.common.core.page.TableDataInfo;
import com.djhk.uav.airspace.domain.UavInfo;
import com.djhk.uav.uav.service.IUavInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

/**
 * @description
 * @author mayongkai
 * @date 2023/3/11 19:16:58
 * @version 1.0
 */
@RestController
@RequestMapping("/wkt")
public class UavWktController extends BaseController
{
    @Autowired
    private IUavInfoService uavInfoService;

    /**
     * 查询列表
     */
//    @RequiresPermissions("uav:info:list")
    @GetMapping("/list")
    public TableDataInfo list(@RequestParam Map<String, Object> param)
    {
        return uavInfoService.selectUavTableData(param);
    }

    /**
     * 查询航线信息
     */
    @GetMapping("/selectMappingWktList")
    public R<List<UavInfo>> selectMappingWktList(@RequestParam Map<String, Object> param)
    {
//        return uavInfoService.selectUavInfoList(param);
        return null;
    }

}
