using DS.Module.Core; using DS.WMS.Core.App.Dtos; using DS.WMS.Core.App.Entity; using DS.WMS.Core.App.Interface; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; namespace DS.WMS.WebApi.Controllers; public class AppController : ApiController { private readonly IAppService _invokeService; /// /// 构造函数 /// /// public AppController(IAppService invokeService) { _invokeService = invokeService; } /// /// 用户登录 /// /// /// [HttpPost] [AllowAnonymous] [Route("Login")] public DataResult Login([FromBody] AppLoginModel model) { var res = _invokeService.AppUserLogin(model); return res; } /// /// 查询客户业务明细列表 /// /// /// [HttpPost] [Route("GetCustomerWorkList")] public DataResult GetCustomerWorkList([FromBody] CustWorkQueryModel model) { var res = _invokeService.GetCustomerWorkList(model); return res; } /// /// 获取业务明细 /// /// /// [HttpGet] [Route("GetCustomerWorkInfo")] public DataResult GetCustomerWorkInfo([FromQuery]string id) { var res = _invokeService.GetCustomerWorkInfo(id); return res; } /// /// 客户业务处理 /// /// /// [HttpPost] [Route("CustomerWorkDeal")] public async Task CustomerWorkDeal([FromBody] CustCheckInput model) { var res = await _invokeService.CustomerWorkDeal(model); return res; } /// /// 查询班列业务明细列表 /// /// /// [HttpPost] [Route("GetTrainWorkList")] public DataResult GetTrainWorkList([FromBody] TrainWorkQueryModel model) { var res = _invokeService.GetTrainWorkList(model); return res; } /// /// 获取班列业务信息 /// /// /// [HttpGet] [Route("GetTrainWorkInfo")] public DataResult GetTrainWorkInfo([FromQuery]string id) { var res = _invokeService.GetTrainWorkInfo(id); return res; } /// /// 班列业务处理 /// /// /// [HttpPost] [Route("TrainWorkDeal")] public async Task TrainWorkDeal([FromBody] TrainCheckInput model) { var res = await _invokeService.TrainWorkDeal(model); return res; } /// /// 获取箱号所在库位 /// /// /// [HttpGet] [Route("GetBoxAreaInfo")] public DataResult GetBoxAreaInfo([FromQuery]string boxNo) { var res = _invokeService.GetBoxAreaInfo(boxNo); return res; } /// /// 获取箱号移位 所需库位列表 /// /// /// [HttpGet] [Route("GetBoxMoveAreaInfo")] public DataResult GetBoxMoveAreaInfo([FromQuery]string id) { var res = _invokeService.GetBoxMoveAreaInfo(id); return res; } /// /// 箱号移位 /// /// /// [HttpPost] [Route("BoxMove")] public DataResult BoxMove([FromBody] BoxMoveInput model) { var res = _invokeService.BoxMove(model); return res; } /// /// 获取装卸工装箱明细 /// /// /// [HttpPost] [Route("GetOpWorkDetail")] public DataResult> GetOpWorkDetail([FromBody] WorkDetailQueryModel query) { var res = _invokeService.GetOpWorkDetail(query); return res; } }