Пример #1
0
 /// <summary>
 ///
 /// </summary>
 public WXController(IUserRepository userRepository,
                     IWeiXinUserRepository weiXinUserRepository,
                     IOwnerCertificationRecordRepository ownerCertificationRecordRepository,
                     IVipOwnerCertificationRecordRepository vipOwnerCertificationRecordRepository,
                     IVipOwnerApplicationRecordRepository vipOwnerApplicationRecordRepository,
                     IVipOwnerRepository vipOwnerRepository,
                     ITokenRepository tokenRepository,
                     IOrderRepository orderRepository)
 {
     _userRepository       = userRepository;
     _weiXinUserRepository = weiXinUserRepository;
     _ownerCertificationRecordRepository    = ownerCertificationRecordRepository;
     _vipOwnerCertificationRecordRepository = vipOwnerCertificationRecordRepository;
     _vipOwnerApplicationRecordRepository   = vipOwnerApplicationRecordRepository;
     _vipOwnerRepository = vipOwnerRepository;
     _tokenRepository    = tokenRepository;
     _orderRepository    = orderRepository;
 }
Пример #2
0
 /// <summary>
 ///
 /// </summary>
 public OrderController(
     IOwnerCertificationRecordRepository ownerCertificationRecordRepository,
     IOrderRepository orderRepository,
     IShopUserAddressRepository shopUserAddressRepository,
     IOrdeItemRepository ordeItemRepository,
     IUserRepository userRepository,
     ISmallDistrictRepository smallDistrictRepository,
     ITokenRepository tokenRepository,
     IIndustryRepository industryRepository,
     IWeiXinUserRepository weiXinUserRepository,
     IActivityRepository activityRepository)
 {
     _tokenRepository = tokenRepository;
     _orderRepository = orderRepository;
     _ownerCertificationRecordRepository = ownerCertificationRecordRepository;
     _shopUserAddressRepository          = shopUserAddressRepository;
     _ordeItemRepository      = ordeItemRepository;
     _userRepository          = userRepository;
     _smallDistrictRepository = smallDistrictRepository;
     _industryRepository      = industryRepository;
     _weiXinUserRepository    = weiXinUserRepository;
     _activityRepository      = activityRepository;
 }
Пример #3
0
 public WeiXinUserService(IWeiXinUserRepository repo)
 {
     this.repo = repo;
 }
Пример #4
0
 /// <summary>
 /// 构造子
 /// </summary>
 /// <param name="inputStream"></param>
 /// <param name="postModel"></param>
 /// <param name="maxRecordCount"></param>
 /// <param name="developerInfo"></param>
 public WXCustomMessageHandler(Stream inputStream, PostModel postModel = null, int maxRecordCount = 0, DeveloperInfo developerInfo = null) : base(inputStream, postModel, maxRecordCount)
 {
     _weiXinUserRepository = new WeiXinUserRepository();
 }