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.
39 lines
1.2 KiB
39 lines
1.2 KiB
using BBWYB.Common.Models;
|
|
using U.Models;
|
|
using System.Collections.Generic;
|
|
using System.Net.Http;
|
|
using BBWYB.Common.Http;
|
|
|
|
namespace U.APIServices
|
|
{
|
|
public class ShopService : BaseApiService, IDenpendency
|
|
{
|
|
public ShopService(RestApiService restApiService, GlobalContext globalContext) : base(restApiService, globalContext) { }
|
|
|
|
|
|
/// <summary>
|
|
/// 获取部门及下属店铺
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public ApiResponse<IList<DepartmentResponse>> GetDepartmentList()
|
|
{
|
|
return SendRequest<IList<DepartmentResponse>>(globalContext.BBYWApiHost, "api/vender/GetDeparmentList", null,
|
|
new Dictionary<string, string>()
|
|
{
|
|
{ "bbwyTempKey", "21jfhayu27q" }
|
|
}, HttpMethod.Get);
|
|
}
|
|
|
|
public ApiResponse<IList<ShopResponse>> GetShopListByIds(IList<string> shopIds)
|
|
{
|
|
return SendRequest<IList<ShopResponse>>(globalContext.BBYWApiHost, "api/vender/GetShopListByShopIds", new
|
|
{
|
|
shopIds
|
|
}, new Dictionary<string, string>()
|
|
{
|
|
{ "bbwyTempKey", "21jfhayu27q" }
|
|
}, HttpMethod.Post);
|
|
}
|
|
|
|
}
|
|
}
|
|
|