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.UavType;
import com.djhk.uav.uav.service.IUavTypeService;
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 jiachengshuai
 * @date 2023/2/9 11:40:54
 * @version 1.0
 */
@RestController
@RequestMapping("/uav/type")
public class UavTypeController extends BaseController
{

    @Autowired
    private IUavTypeService uavTypeService;

    /**
     * 查询无人机机型列表
     */
    @GetMapping("/findUavTypeList")
    public R<List<UavType>> findUavTypeList(@RequestParam Map<String,Object> param)
    {
        param.put("status","1");
        return uavTypeService.findUavTypeList(param);
    }

    /**
     * 查询无人机机型列表
     */
    @GetMapping("/selectUavTypeList")
    public R<List<UavType>> selectUavTypeList(@RequestParam Map<String,Object> param)
    {
        return uavTypeService.findUavTypeList(param);
    }


}
