You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
using BBWY.Server.Business.Sync;
|
|
|
|
using Microsoft.AspNetCore.Http;
|
|
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
|
|
|
|
namespace BBWY.Server.API.Controllers
|
|
|
|
{
|
|
|
|
|
|
|
|
public class ServiceOrderSyncController : BaseApiController
|
|
|
|
{
|
|
|
|
private JDServiceOrderSyncBusiness jdServiceOrderSyncBusiness;
|
|
|
|
|
|
|
|
public ServiceOrderSyncController(JDServiceOrderSyncBusiness jdServiceOrderSyncBusiness, IHttpContextAccessor httpContextAccessor) : base(httpContextAccessor)
|
|
|
|
{
|
|
|
|
this.jdServiceOrderSyncBusiness = jdServiceOrderSyncBusiness;
|
|
|
|
}
|
|
|
|
|
|
|
|
[Consumes("application/x-www-form-urlencoded")]
|
|
|
|
[HttpPost]
|
|
|
|
public void KuaiDi100Callback()
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 指定服务单同步
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="shopId"></param>
|
|
|
|
/// <param name="serviceId"></param>
|
|
|
|
[HttpPost("{shopId}/{serviceId}")]
|
|
|
|
public void SyncServiceOrder([FromRoute] long shopId, [FromRoute] string serviceId)
|
|
|
|
{
|
|
|
|
jdServiceOrderSyncBusiness.SyncServiceOrder(shopId, serviceId);
|
|
|
|
}
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 全店服务单同步
|
|
|
|
/// </summary>
|
|
|
|
[HttpPost]
|
|
|
|
public void SyncServiceOrder()
|
|
|
|
{
|
|
|
|
jdServiceOrderSyncBusiness.SyncServiceOrder();
|
|
|
|
}
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 指定店铺订阅快递100
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="shopId"></param>
|
|
|
|
[HttpPost("{shopId}")]
|
|
|
|
public void SubscribeKuaiDi100([FromRoute] long shopId)
|
|
|
|
{
|
|
|
|
jdServiceOrderSyncBusiness.SubscribeKuaiDi100(shopId);
|
|
|
|
}
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 全店订阅快递100
|
|
|
|
/// </summary>
|
|
|
|
[HttpPost]
|
|
|
|
public void SubscribeKuaiDi100()
|
|
|
|
{
|
|
|
|
jdServiceOrderSyncBusiness.SubscribeKuaiDi100();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|