using HybirdFrameworkCore.Entity;
using Microsoft.AspNetCore.Mvc;
using Service.Padar;
namespace WebStarter.Controllers;
[Produces("application/json")]
[ApiController]
[Route("api/[controller]")]
public class PadarController
{
private PadarService _padarService;
public PadarController(PadarService padarService)
{
_padarService = padarService;
}
///
/// 雷达控制
///
/// 0-关闭雷达 1-开启雷达
///
[HttpGet]
[Route("PadarControlMethod")]
public Result PadarControlMethod(byte req)
{
return _padarService.PadarControl(req);
}
}