using Infrastructure;
using Microsoft.AspNetCore.Mvc;
using OpenAuth.App.DroneScreenDisplay;
using OpenAuth.App.Interface;
using OpenAuth.App.Request;
using OpenAuth.Repository.Domain;

namespace OpenAuth.WebApi.Controllers.ServiceControllers;

[Route("api/[controller]/[action]")]
[ApiController]
public class DetectCenterController : ControllerBase
{   
    private DroneScreenDisplayApp _app;

    
    public DetectCenterController(DroneScreenDisplayApp app)
    {
     
        _app = app;
    
    }
    
    /// <summary>
    /// 复飞核实
    /// </summary>
    /// <param name="req"></param>
    /// <returns></returns>
    [HttpGet]
    public async Task<Response<PageInfo<List<DroneCaseInfoSingle>>>> ReFlyVerifyPage(
        [FromQuery] PageReq req)
    {
        return await _app.ReFlyVerifyPage(req);
    }
}