/// <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;
 }
Example #2
0
        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;
 }
Example #7
0
        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;
 }
Example #9
0
 public WeChatMessageHandlerControllerBase(IMessageHandlerAppServer messageHandlerAppServer, IWechatAppConfigAppService wechatAppConfigAppService) : base()
 {
     _messageHandlerAppServer   = messageHandlerAppServer;
     _wechatAppConfigAppService = wechatAppConfigAppService;
     //InitAppConfigSetting();
 }
Example #10
0
 public WeChatWebControllerBase(IWechatAppConfigAppService wechatAppConfigAppService) : base()
 {
     _wechatAppConfigAppService = wechatAppConfigAppService;
     //InitAppConfigSetting();
 }
Example #11
0
 public WeChatMenuAppService(IWechatAppConfigAppService wechatAppConfigAppService)
 {
     _wechatAppConfigAppService = wechatAppConfigAppService;
     TenantId  = 2;
     AppConfig = _wechatAppConfigAppService.GetWechatAppConfig(TenantId).Result;
 }
Example #12
0
 public GuangAnWeChatController(IMessageHandlerAppServer messageHandlerAppServer,
                                IWechatAppConfigAppService wechatAppConfigAppService
                                ) : base(messageHandlerAppServer, wechatAppConfigAppService)
 {
     InitAppConfigSetting();
 }