示例#1
0
 public CustomerController(IOrderService orderService,
                           ICacheManager cacheManager,
                           ICustomerAttributeService customerAttributeService,
                           ICustomerService customerService,
                           IShopppingCartService cartService,
                           IFavoriteService favoriteService,
                           ICustomerRewardService rewardService,
                           IProductReviewService reviewService,
                           IApplyPromoterService applyService,
                           ISettingService settingService,
                           ICouponService couponService,
                           ISMSMessageService messageService,
                           ILoanService loanService,
                           IApplyCashService applyCashService,
                           ICommissionService commissionServicer,
                           IWishOrderService wishService,
                           ISignLogService signService,
                           IUnitOfWorkManager unitOfWorkManager)
 {
     this._orderService             = orderService;
     this._cacheManager             = cacheManager;
     this._customerAttributeService = customerAttributeService;
     this._cartService        = cartService;
     this._customerService    = customerService;
     this._messageService     = messageService;
     this._favoriteService    = favoriteService;
     this._reviewService      = reviewService;
     this._rewardService      = rewardService;
     this._settingService     = settingService;
     this._couponService      = couponService;
     this._applyService       = applyService;
     this._loanService        = loanService;
     this._applyCashService   = applyCashService;
     this._commissionServicer = commissionServicer;
     this._wishService        = wishService;
     this._signService        = signService;
     this._unitOfWorkManager  = unitOfWorkManager;
 }
示例#2
0
 /// <summary>
 /// 手机验证码
 /// </summary>
 /// <param name="_messageService"></param>
 /// <param name="content"></param>
 /// <param name="mobile"></param>
 /// <returns></returns>
 public static bool SendMobileCode(this ISMSMessageService _messageService, string content, string mobile)
 {
     return(_messageService.SendMessage(mobile, "贴身保膘", "SMS_75885084", "{\"code\":\"" + content + "\"}"));
 }