package com.djhk.uav.uav.controller;

import com.djhk.common.core.controller.BaseController;
import com.djhk.common.core.domain.R;
import com.djhk.uav.uav.model.UavLoad;
import com.djhk.uav.uav.service.IUavLoadService;
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("/load")
public class UavLoadController extends BaseController
{

    @Autowired
    private IUavLoadService uavLoadService;

    /**
     * 查询无人机机型列表
     */
    @GetMapping("/selectLoadList")
    public R<List<UavLoad>> findUavLoadList(@RequestParam Map<String,Object> param)
    {
        return uavLoadService.findUavLoadList(param);
    }

    @GetMapping("/selectLoadListAll")
    public R<List<UavLoad>> selectLoadListAll(@RequestParam Map<String,Object> param)
    {
        return uavLoadService.findUavLoadList(param);
    }
}
