/// <summary> /// 构造函数 /// </summary> public PurchaseRecordAppService(IPurchaserecordRepository purchaserecordRepository , IRepository <IntegralDetail, Guid> integralDetailRepository , IRepository <WeChatUser, Guid> weChatUserRepository , IRepository <MemberConfig, Guid> memberConfigRepository , IRepository <Shop, Guid> shopRepository , IRepository <Product, Guid> productRepository , IPurchaseRecordManager purchaserecordManager , IRepository <ShopEvaluation, Guid> shopevaluationRepository , IWechatAppConfigAppService wechatAppConfigAppService , IRepository <WechatAppConfig, int> wechatappconfigRepository , IRepository <StatisticalDetail, Guid> statisticaldetailRepository , IHostingEnvironment hostingEnvironment) { _purchaserecordRepository = purchaserecordRepository; _integralDetailRepository = integralDetailRepository; _weChatUserRepository = weChatUserRepository; _memberConfigRepository = memberConfigRepository; _shopRepository = shopRepository; _productRepository = productRepository; _purchaserecordManager = purchaserecordManager; _shopevaluationRepository = shopevaluationRepository; _wechatAppConfigAppService = wechatAppConfigAppService; TenantId = null; AppConfig = _wechatAppConfigAppService.GetWechatAppConfig(TenantId).Result; _wechatappconfigRepository = wechatappconfigRepository; _statisticaldetailRepository = statisticaldetailRepository; _hostingEnvironment = hostingEnvironment; }
/// <summary> /// 构造函数 /// </summary> public RetailerAppService(IRetailerRepository retailerRepository , IRetailerManager retailerManager , IHostingEnvironment hostingEnvironment , IRepository <Shop, Guid> shopRepository , IPurchaserecordRepository purchaserecordRepository , IRepository <IntegralDetail, Guid> integraldetailRepository , IRepository <Product, Guid> productRepository , IRepository <WeChatUser, Guid> wechatuserRepository ) { _hostingEnvironment = hostingEnvironment; _retailerRepository = retailerRepository; _retailerManager = retailerManager; _shopRepository = shopRepository; _purchaserecordRepository = purchaserecordRepository; _integraldetailRepository = integraldetailRepository; _productRepository = productRepository; _wechatuserRepository = wechatuserRepository; }