/// <summary> /// 构造函数 /// </summary> public PurchaseRecordAppService(IRepository <PurchaseRecord, Guid> 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 ) { _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; }
public YiBinWXController(IWechatAppConfigAppService wechatAppConfigAppService, IOptions <WeChatTenantSetting> settings, IWeChatOAuthAppService weChatOAuthAppService, IWeChatUserAppService weChatUserAppService, IActivityAppService activityAppService, IActivityGoodsAppService activityGoodsAppService, IRepository <WeChatUser, Guid> wechatuserRepository, IActivityFormAppService activityFormAppService, IActivityBanquetAppService activityBanquetAppService, IActivityDeliveryInfoAppService activityDeliveryInfoAppService, IActivityFormLogAppService activityFormLogAppService, IHostingEnvironment env) : base(wechatAppConfigAppService) { _settings = settings.Value; tenantId = _settings.YiBin; InitAppConfigSetting(); _weChatOAuthAppService = weChatOAuthAppService; _weChatUserAppService = weChatUserAppService; _activityAppService = activityAppService; _activityGoodsAppService = activityGoodsAppService; _weChatOAuthAppService.WechatAppConfig = WechatAppConfig;//注入配置 _appConfiguration = env.GetAppConfiguration(); _wechatuserRepository = wechatuserRepository; _activityFormAppService = activityFormAppService; _activityBanquetAppService = activityBanquetAppService; _activityDeliveryInfoAppService = activityDeliveryInfoAppService; _activityFormLogAppService = activityFormLogAppService; }
public GuangAnWeChatController(IMessageHandlerAppServer messageHandlerAppServer, IWechatAppConfigAppService wechatAppConfigAppService, IOptions <WeChatTenantSetting> settings) : base(messageHandlerAppServer, wechatAppConfigAppService) { _settings = settings.Value; tenantId = _settings.GuangAn; InitAppConfigSetting(); }
/// <summary> /// 构造函数 /// </summary> public WeChatGroupAppService(IRepository <WeChatGroup, int> wechatgroupRepository , IWeChatGroupManager wechatgroupManager, IWechatAppConfigAppService wechatAppConfigAppService , IRepository <WeChatUser, Guid> wechatuserRepository ) { _wechatgroupRepository = wechatgroupRepository; _wechatgroupManager = wechatgroupManager; _wechatAppConfigAppService = wechatAppConfigAppService; TenantId = null; AppConfig = _wechatAppConfigAppService.GetWechatAppConfig(TenantId).Result; _wechatuserRepository = wechatuserRepository; }
public SYQWXController(IWechatAppConfigAppService wechatAppConfigAppService, IWeChatOAuthAppService weChatOAuthAppService, IWeChatUserAppService weChatUserAppService, IOrderAppService orderAppService, IActivityAppService activityAppService ) : base(wechatAppConfigAppService) { InitAppConfigSetting(); _weChatOAuthAppService = weChatOAuthAppService; _weChatOAuthAppService.WechatAppConfig = WechatAppConfig;//注入配置 _weChatUserAppService = weChatUserAppService; _orderAppService = orderAppService; _activityAppService = activityAppService; }
/// <summary> /// 构造函数 /// </summary> public WeChatUserAppService(IRepository <WeChatUser, Guid> wechatuserRepository, IWeChatUserManager wechatuserManager, IRepository <WeChatGroup, int> wechatgroupRepository, IWechatAppConfigAppService wechatAppConfigAppService, IRepository <WechatAppConfig, int> wechatappconfigRepository , IHostingEnvironment hostingEnvironment ) { _hostingEnvironment = hostingEnvironment; _wechatuserRepository = wechatuserRepository; _wechatuserManager = wechatuserManager; _wechatgroupRepository = wechatgroupRepository; _wechatAppConfigAppService = wechatAppConfigAppService; TenantId = null; AppConfig = _wechatAppConfigAppService.GetWechatAppConfig(TenantId).Result; _wechatappconfigRepository = wechatappconfigRepository; }
public GAWXController(IWechatAppConfigAppService wechatAppConfigAppService, //IOptions<WeChatTenantSetting> settings, IWeChatOAuthAppService weChatOAuthAppService, IWeChatUserAppService weChatUserAppService, IShopAppService shopAppService //IHostingEnvironment env //IHostingEnvironment env ) : base(wechatAppConfigAppService) { //_settings = settings.Value; //tenantId = _settings.GuangAn; InitAppConfigSetting(); _weChatOAuthAppService = weChatOAuthAppService; _weChatOAuthAppService.WechatAppConfig = WechatAppConfig;//注入配置 //_appConfiguration = env.GetAppConfiguration(); _weChatUserAppService = weChatUserAppService; _shopAppService = shopAppService; }
/// <summary> /// 构造函数 /// </summary> public ExhibitionShopAppService( IRepository <ExhibitionShop, Guid> exhibitionshopRepository , IExhibitionShopManager exhibitionshopManager , IRepository <Shop, Guid> shopRepository , IRepository <Retailer, Guid> retailerRepository , IRepository <Exhibition, Guid> exhibitionRepository , IHostingEnvironment hostingEnvironment , IWeChatOAuthAppService weChatOAuthAppService , IWechatAppConfigAppService wechatAppConfigAppService ) { _retailerRepository = retailerRepository; _shopRepository = shopRepository; _exhibitionshopRepository = exhibitionshopRepository; _exhibitionshopManager = exhibitionshopManager; _exhibitionRepository = exhibitionRepository; _hostingEnvironment = hostingEnvironment; _weChatOAuthAppService = weChatOAuthAppService; _wechatAppConfigAppService = wechatAppConfigAppService; _weChatOAuthAppService.WechatAppConfig = _wechatAppConfigAppService.GetWechatAppConfig(null).Result; }
public WeChatMessageHandlerControllerBase(IMessageHandlerAppServer messageHandlerAppServer, IWechatAppConfigAppService wechatAppConfigAppService) : base() { _messageHandlerAppServer = messageHandlerAppServer; _wechatAppConfigAppService = wechatAppConfigAppService; //InitAppConfigSetting(); }
public WeChatWebControllerBase(IWechatAppConfigAppService wechatAppConfigAppService) : base() { _wechatAppConfigAppService = wechatAppConfigAppService; //InitAppConfigSetting(); }
public WeChatMenuAppService(IWechatAppConfigAppService wechatAppConfigAppService) { _wechatAppConfigAppService = wechatAppConfigAppService; TenantId = 2; AppConfig = _wechatAppConfigAppService.GetWechatAppConfig(TenantId).Result; }
public GuangAnWeChatController(IMessageHandlerAppServer messageHandlerAppServer, IWechatAppConfigAppService wechatAppConfigAppService ) : base(messageHandlerAppServer, wechatAppConfigAppService) { InitAppConfigSetting(); }