using System; using System.Collections.Generic; using Infrastructure; using Microsoft.AspNetCore.Mvc; using WebApp; using WebRepository; namespace WebMvc.Areas.Api.Controllers { /// <summary> /// 空栈板补给 /// </summary> [Route("api/[controller]")] [ApiController] public class IEmptyPalletOutController : ControllerBase { private readonly IEmptyPalletOutApp _app; /// <summary> /// 控制器构造函数 /// </summary> /// <param name="unitWork">注入工作单元</param> /// <param name="auth">注入授权信息</param> /// <param name="context">EF上下文</param> public IEmptyPalletOutController(IUnitWork unitWork, IAuth auth, BaseDBContext context, IRepository<ReceiptHeader> app) { _app = new IEmptyPalletOutApp(unitWork, auth, context,app); } /// <summary> /// 空栈板补给接口 /// </summary> /// <param name="station">站台</param> /// <param name="type">补给托盘属性</param> /// <returns></returns> [HttpPost("EmptyPalletOut")] [ServiceFilter(typeof(InterfaceLogFilter))] public string EmptyPalletOut(string station,string type) { return JsonHelper.Instance.Serialize(_app.EmptyPalletOutApp(station, type)); } } }