添加供应商
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
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<SupplierController> _logger;
|
||||
private readonly ISupplierService _supplierService;
|
||||
public SupplierController(ILogger<SupplierController> logger, ISupplierService supplierService)
|
||||
{
|
||||
_logger = logger;
|
||||
_supplierService = supplierService;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[HttpGet]
|
||||
public async Task<Result<List<SupplierGetListOutput>>> GetList()
|
||||
{
|
||||
var result = await _supplierService.GetListAsync();
|
||||
|
||||
return Result<List<SupplierGetListOutput>>.Success().SetData(result);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user