public ProductSpuAppService(
            IGuidGenerator guidGenerator,
            IRepository <ProductSpu, Guid> repository,
            IRepository <ProductSku, Guid> skuRepository,
            IRepository <ProductCategory, Guid> categoryRepository,
            IRepository <AppProductSpu> appProductRepository,
            IRepository <QrDetail, Guid> qrDetailRepository,
            IMallShopRepository mallShopRepository,
            IMallShopLookupService mallShopLookupService,
            IAppDefinitionManager appDefinitionManager,
            IMediator mediator) : base(repository)
        {
            base.GetListPolicyName = MallPermissions.Products.Default;
            base.CreatePolicyName  = MallPermissions.Products.Create;
            base.UpdatePolicyName  = MallPermissions.Products.Update;
            base.DeletePolicyName  = MallPermissions.Products.Delete;

            _guidGenerator         = guidGenerator;
            _skuRepository         = skuRepository;
            _categoryRepository    = categoryRepository;
            _appProductRepository  = appProductRepository;
            _qrDetailRepository    = qrDetailRepository;
            _mallShopRepository    = mallShopRepository;
            _mallShopLookupService = mallShopLookupService;
            _appDefinitionManager  = appDefinitionManager;
            _mediator = mediator;
        }
Exemple #2
0
 public ClientAppService(
     IGuidGenerator guidGenerator,
     IWeixinAppService weixinAppService,
     IMallShopLookupService shopLookupService,
     IMallShopRepository shopRepository,
     IReadOnlyRepository <Address, Guid> addressRepository,
     IRepository <ProductOrder, Guid> orderRepository,
     IRepository <TenPayNotify, Guid> tenpayRepository,
     IPayOrderRepository payOrderRepository,
     ISettingProvider setting,
     IAppProvider appProvider,
     IHttpContextAccessor httpContextAccessor,
     ILocalEventBus eventBus,
     ICapPublisher capBus
     )
 {
     _guidGenerator       = guidGenerator;
     _weixinAppService    = weixinAppService;
     _shopLookupService   = shopLookupService;
     _shopRepository      = shopRepository;
     _addressRepository   = addressRepository;
     _orderRepository     = orderRepository;
     _tenpayRepository    = tenpayRepository;
     _payOrderRepository  = payOrderRepository;
     _setting             = setting;
     _appProvider         = appProvider;
     _httpContextAccessor = httpContextAccessor;
     _eventBus            = eventBus;
     _capBus = capBus;
 }
Exemple #3
0
 public MallModuleTests()
 {
     _ShopLookupService = GetRequiredService <IMallShopLookupService>();
     _ShopRepository    = GetRequiredService <IMallShopRepository>();
     _shopAppService    = GetRequiredService <IMallShopAppService>();
     _spuAppService     = GetRequiredService <IProductSpuAppService>();
     _currentUser       = GetRequiredService <ICurrentUser>();
 }
Exemple #4
0
 public MallShopAppService(
     IMallShopLookupService mallShopLookupService,
     IMallShopRepository mallShopRepository
     )
 {
     _mallShopLookupService = mallShopLookupService;
     _mallShopRepository    = mallShopRepository;
 }
Exemple #5
0
 public ClientAppService(
     IWeixinAppService weixinAppService,
     IMallShopLookupService shopLookupService,
     IMallShopRepository shopRepository,
     IReadOnlyRepository <Address, Guid> addressRepository,
     ISettingProvider setting)
 {
     _weixinAppService  = weixinAppService;
     _shopLookupService = shopLookupService;
     _shopRepository    = shopRepository;
     _addressRepository = addressRepository;
     _setting           = setting;
 }
 public ProductSpuAppService(
     IGuidGenerator guidGenerator,
     IRepository <ProductSpu, Guid> repository,
     IRepository <ProductSku, Guid> skuRepository,
     IRepository <ProductCategory, Guid> categoryRepository,
     IMallShopRepository mallShopRepository,
     IMallShopLookupService mallShopLookupService
     ) : base(repository)
 {
     _guidGenerator         = guidGenerator;
     _skuRepository         = skuRepository;
     _categoryRepository    = categoryRepository;
     _mallShopRepository    = mallShopRepository;
     _mallShopLookupService = mallShopLookupService;
 }
Exemple #7
0
 public ClientAppService(
     IGuidGenerator guidGenerator,
     IWeixinAppService weixinAppService,
     IMallShopLookupService shopLookupService,
     IMallShopRepository shopRepository,
     IReadOnlyRepository <Address, Guid> addressRepository,
     IRepository <ProductOrder, Guid> orderRepository,
     ISettingProvider setting)
 {
     _guidGenerator     = guidGenerator;
     _weixinAppService  = weixinAppService;
     _shopLookupService = shopLookupService;
     _shopRepository    = shopRepository;
     _addressRepository = addressRepository;
     _orderRepository   = orderRepository;
     _setting           = setting;
 }
Exemple #8
0
        public ClientAppService(
            //其它模块
            IGuidGenerator guidGenerator,
            ICapPublisher capBus,
            ISignatureGenerator signatureGenerator,
            IWeixinAppService weixinAppService,
            IAppDefinitionManager appDefinitionManager,
            IAppProvider appProvider,

            //本模块
            IMallShopLookupService shopLookupService,
            IMallShopRepository shopRepository,
            IReadOnlyRepository <Address, Guid> addressRepository,
            IRepository <ProductOrder, Guid> orderRepository,
            IRepository <TenPayNotify, Guid> tenpayRepository,
            IProductCategoryRepository categoryRepository,
            IRepository <ProductSpu, Guid> spuRepository,
            IPayOrderRepository payOrderRepository,

            //系统
            ISettingProvider setting,
            IHttpContextAccessor httpContextAccessor,
            ILocalEventBus eventBus,
            IMediator mediator
            )
        {
            _guidGenerator       = guidGenerator;
            _weixinAppService    = weixinAppService;
            _shopLookupService   = shopLookupService;
            _shopRepository      = shopRepository;
            _addressRepository   = addressRepository;
            _orderRepository     = orderRepository;
            _tenpayRepository    = tenpayRepository;
            _categoryRepository  = categoryRepository;
            _spuRepository       = spuRepository;
            _payOrderRepository  = payOrderRepository;
            _setting             = setting;
            _appProvider         = appProvider;
            _httpContextAccessor = httpContextAccessor;
            _eventBus            = eventBus;
            _mediator            = mediator;
            _capBus = capBus;
            _appDefinitionManager = appDefinitionManager;
            _signatureGenerator   = signatureGenerator;
        }
Exemple #9
0
 public MallModuleTests()
 {
     _ShopLookupService = GetRequiredService <IMallShopLookupService>();
     _ShopRepository    = GetRequiredService <IMallShopRepository>();
     _shopAppService    = GetRequiredService <IMallShopAppService>();
 }