1234567891011121314151617181920212223242526272829303132333435 |
- 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<IActionResult> Push(QuerySMPOrderInfo query)
- {
- var data= await _orderService.PushOrderInfosToJava(query);
- return Ok();
- }
- public async Task<IActionResult> Pull(QuerySMPOrderInfo query)
- {
- var data = await _orderService.sMPOrderInfos(query);
- return Ok(data);
- }
- //public IActionResult Index()
- //{
- // return View();
- //}
- }
- }
|