using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using Newtonsoft.Json; using System.Threading.Tasks; using XYY.Core.Standard.Mvc; using XYY.Model.Standard.Dto.order; using XYY.Service.Standard.Order; namespace XYY.Api.Order.Controllers.ThirdPartySync { [Route("api/[controller]/[action]")] [ApiController] public class SmpOrderSyncController : ApiControllerBase { private IOrderService _orderService; public SmpOrderSyncController(IOrderService orderService) { _orderService = orderService; } public async Task Push(QuerySMPOrderInfo query) { var data= await _orderService.PushOrderInfosToJava(query); return Ok(); } public async Task Pull(QuerySMPOrderInfo query) { var data = await _orderService.sMPOrderInfos(query); return Ok(data); } //public IActionResult Index() //{ // return View(); //} } }