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) { } /// /// 获取部门及下属店铺 /// /// public ApiResponse> GetDepartmentList() { return SendRequest>(globalContext.BBYWApiHost, "api/vender/GetDeparmentList", null, new Dictionary() { { "bbwyTempKey", "21jfhayu27q" } }, HttpMethod.Get); } public ApiResponse> GetShopListByIds(IList shopIds) { return SendRequest>(globalContext.BBYWApiHost, "api/vender/GetShopListByShopIds", new { shopIds }, new Dictionary() { { "bbwyTempKey", "21jfhayu27q" } }, HttpMethod.Post); } } }