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.
41 lines
1.5 KiB
41 lines
1.5 KiB
using BBWYB.Client.Models;
|
|
using BBWYB.Common.Http;
|
|
using BBWYB.Common.Models;
|
|
using System.Collections.Generic;
|
|
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);
|
|
}
|
|
|
|
/// <summary>
|
|
/// 获取部门及下属店铺
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public ApiResponse<IList<DepartmentResponse>> GetDepartmentList()
|
|
{
|
|
return SendRequest<IList<DepartmentResponse>>(globalContext.BBWYCApiHost, "api/vender/GetDeparmentList", null,
|
|
new Dictionary<string, string>()
|
|
{
|
|
{ "bbwyTempKey", "21jfhayu27q" }
|
|
}, HttpMethod.Get);
|
|
}
|
|
}
|
|
}
|
|
|