| | |
| | | using Microsoft.AspNetCore.Http; |
| | | 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; |
| | |
| | | [ApiController] |
| | | public class DispatchInfoController : ApiBaseController<IDispatchInfoService, Dt_DispatchInfo> |
| | | { |
| | | public DispatchInfoController(IDispatchInfoService service) : base(service) |
| | | private readonly IDispatchInfoService _dispatchInfoService; |
| | | public DispatchInfoController(IDispatchInfoService service, IDispatchInfoService dispatchInfoService) : base(service) |
| | | { |
| | | _dispatchInfoService = dispatchInfoService; |
| | | } |
| | | |
| | | [HttpGet("GetDispatchInfosAsync"),AllowAnonymous] |
| | | public Task<WebResponseContent> GetDispatchInfosAsync() |
| | | { |
| | | return _dispatchInfoService.GetDispatchInfosAsync(); |
| | | } |
| | | } |
| | | } |