using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using WIDESEA_Core; using WIDESEA_Core.BaseController; using WIDESEA_ISquareCabinServices; using WIDESEA_Model.Models; namespace WIDESEA_WMSServer.Controllers { [Route("api/CabinOrder")] [ApiController] public class CabinOrderController : ApiBaseController { public CabinOrderController(ICabinOrderServices service) : base(service) { } [HttpPost,Route("GetUpstreamOrder"),AllowAnonymous] public WebResponseContent GetUpstreamOrder() { return Service.GetUpstreamOrder(); } /// 查询单信息 /// /// [HttpPost, HttpGet, Route("GetCabinOrders")] public WebResponseContent GetCabinOrders([FromBody] SaveModel saveModel) { return Service.GetCabinOrders(saveModel); } /// 查询单详情信息 /// /// [HttpPost, HttpGet, Route("GetCabinOrderDetail")] public WebResponseContent GetCabinOrderDetail(int pageNo, string orderNo) { return Service.GetCabinOrderDetail(pageNo,orderNo); } [HttpPost, HttpGet, Route("FeedbackIn")] public WebResponseContent FeedbackIn([FromBody] SaveModel saveModel) { return Service.FeedbackIn(saveModel); } //[HttpPost, Route("CompleteOrder"), AllowAnonymous] //public WebResponseContent CompleteOrder(string order_no) //{ // return Service.CompleteOrder(order_no); //} } }