You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
691 B
30 lines
691 B
5 months ago
|
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;
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// 雷达控制
|
||
|
/// </summary>
|
||
|
/// <param name="req">0-关闭雷达 1-开启雷达</param>
|
||
|
/// <returns></returns>
|
||
|
[HttpGet]
|
||
|
[Route("PadarControlMethod")]
|
||
|
public Result<bool> PadarControlMethod(byte req)
|
||
|
{
|
||
|
return _padarService.PadarControl(req);
|
||
|
}
|
||
|
}
|