SmpOrderSyncController.cs 1.0 KB

1234567891011121314151617181920212223242526272829303132333435
  1. using Microsoft.AspNetCore.Authorization;
  2. using Microsoft.AspNetCore.Mvc;
  3. using Newtonsoft.Json;
  4. using System.Threading.Tasks;
  5. using XYY.Core.Standard.Mvc;
  6. using XYY.Model.Standard.Dto.order;
  7. using XYY.Service.Standard.Order;
  8. namespace XYY.Api.Order.Controllers.ThirdPartySync
  9. {
  10. [Route("api/[controller]/[action]")]
  11. [ApiController]
  12. public class SmpOrderSyncController : ApiControllerBase
  13. {
  14. private IOrderService _orderService;
  15. public SmpOrderSyncController(IOrderService orderService)
  16. {
  17. _orderService = orderService;
  18. }
  19. public async Task<IActionResult> Push(QuerySMPOrderInfo query)
  20. {
  21. var data= await _orderService.PushOrderInfosToJava(query);
  22. return Ok();
  23. }
  24. public async Task<IActionResult> Pull(QuerySMPOrderInfo query)
  25. {
  26. var data = await _orderService.sMPOrderInfos(query);
  27. return Ok(data);
  28. }
  29. //public IActionResult Index()
  30. //{
  31. // return View();
  32. //}
  33. }
  34. }