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.
27 lines
962 B
27 lines
962 B
using BBWYB.Client.Models;
|
|
using BBWYB.Common.Http;
|
|
using BBWYB.Common.Models;
|
|
using System.Net.Http;
|
|
|
|
namespace BBWYB.Client.APIServices
|
|
{
|
|
public class ShopService : BaseApiService, IDenpendency
|
|
{
|
|
public ShopService(RestApiService restApiService, GlobalContext globalContext) : base(restApiService, globalContext) { }
|
|
|
|
public ApiResponse<long> SaveShopSetting(long shopId,
|
|
PurchaseAccount purchaseAccount)
|
|
{
|
|
return SendRequest<long>(globalContext.BBWYApiHost, "api/vender/SaveShopSetting", new
|
|
{
|
|
shopId,
|
|
PurchaseAccountId = purchaseAccount.Id,
|
|
purchaseAccount.AccountName,
|
|
purchaseAccount.AppKey,
|
|
purchaseAccount.AppSecret,
|
|
purchaseAccount.AppToken,
|
|
purchaseAccount.PurchasePlatformId
|
|
}, null, HttpMethod.Post);
|
|
}
|
|
}
|
|
}
|
|
|