using Dlhis.External.OpenApi.Response; using Dlhis.External.OpenApi.Services; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; namespace Dlhis.External.OpenApi.Controllers { [Authorize] [Route("api/[controller]")] [ApiController] public class FactoryController : ControllerBase { private readonly IFactoryService _factoryService; public FactoryController(IFactoryService factoryService) { _factoryService = factoryService; } [HttpGet("all")] public async Task> GetAllFactoriesAsync() { return await _factoryService.GetAllFactoriesAsync(); } } }