using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using WIDESEAWCS_Core;
using WIDESEAWCS_Core.BaseController;
using WIDESEAWCS_QuartzJob.Models;
using WIDESEAWCS_QuartzJob.Service;
namespace WIDESEAWCS_Server.Controllers.QuartzJob
{
[Route("api/DispatchInfo")]
[ApiController]
public class DispatchInfoController : ApiBaseController<IDispatchInfoService, Dt_DispatchInfo>
{
private readonly IDispatchInfoService _dispatchInfoService;
public DispatchInfoController(IDispatchInfoService service, IDispatchInfoService dispatchInfoService) : base(service)
{
_dispatchInfoService = dispatchInfoService;
}
[HttpGet("GetDispatchInfosAsync"),AllowAnonymous]
public Task<WebResponseContent> GetDispatchInfosAsync()
{
return _dispatchInfoService.GetDispatchInfosAsync();
}
}
}