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.

46 lines
2.0 KiB

using BBWYB.Client.Models;
using BBWYB.Common.Http;
using BBWYB.Common.Models;
using System;
using System.Net.Http;
namespace BBWYB.Client.APIServices
{
public class OrderService : BaseApiService, IDenpendency
{
public OrderService(RestApiService restApiService, GlobalContext globalContext) : base(restApiService, globalContext)
{
}
public ApiResponse<OrderListResponse> GetOrderList(string orderId,
DateTime startDate,
DateTime endDate,
OrderState? orderState,
string productId,
string skuId,
string clientOrderId,
string sourceShopName,
string sourceSku,
int pageIndex,
int pageSize,
long? shopId,
bool excludeCanceled)
{
return SendRequest<OrderListResponse>(globalContext.BBYWApiHost, "api/order/getorderlist", new
{
OrderId = orderId,
ShopId = shopId,
StartDate = startDate,
EndDate = endDate,
OrderState = orderState,
PageIndex = pageIndex,
PageSize = pageSize,
ProductId = productId,
Sku = skuId,
ClientOrderId = clientOrderId,
SourceShopName = sourceShopName,
SourceSku = sourceSku
}, null, HttpMethod.Post);
}
}
}