using Brick.IFServer.Controllers; using Microsoft.AspNetCore.Mvc; using Yi.Framework.Common.Models; using Yi.Framework.DtoModel.ERP.Supplier; using Yi.Framework.Interface.ERP; namespace Yi.Framework.ApiMicroservice.Controllers.ERP { [ApiController] [Route("[controller]")] public class SupplierController:ControllerBase { private readonly ILogger _logger; private readonly ISupplierService _supplierService; public SupplierController(ILogger logger, ISupplierService supplierService) { _logger = logger; _supplierService = supplierService; } /// /// 查 /// /// [HttpGet] public async Task>> GetList() { var result = await _supplierService.GetListAsync(); return Result>.Success().SetData(result); } } }