Beispiel #1
0
 /// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="sysUserInfoServices"></param>
 /// <param name="userRoleServices"></param>
 /// <param name="roleServices"></param>
 /// <param name="user"></param>
 public UserController(ISysUserInfoServices sysUserInfoServices, IUserRoleServices userRoleServices, IRoleServices roleServices, IUser user)
 {
     _sysUserInfoServices = sysUserInfoServices;
     _userRoleServices    = userRoleServices;
     _roleServices        = roleServices;
     _user = user;
 }
Beispiel #2
0
 /// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="sysUserInfoServices"></param>
 /// <param name="userRoleServices"></param>
 /// <param name="mapper"></param>
 /// <param name="roleServices"></param>
 public UserRoleController(ISysUserInfoServices sysUserInfoServices, IUserRoleServices userRoleServices, IMapper mapper, IRoleServices roleServices)
 {
     _sysUserInfoServices = sysUserInfoServices;
     _userRoleServices    = userRoleServices;
     _roleServices        = roleServices;
     _mapper = mapper;
 }
Beispiel #3
0
 /// <summary>
 /// 构造函数注入
 /// </summary>
 /// <param name="sysUserInfoServices"></param>
 /// <param name="userRoleServices"></param>
 /// <param name="roleServices"></param>
 /// <param name="requirement"></param>
 public LoginController(ISysUserInfoServices sysUserInfoServices, IUserRoleServices userRoleServices, IRoleServices roleServices, PermissionRequirement requirement)
 {
     this._sysUserInfoServices = sysUserInfoServices;
     this._userRoleServices    = userRoleServices;
     this._roleServices        = roleServices;
     _requirement = requirement;
 }
 public WeatherForecastController(ISysUserInfoServices sysUserInfoServices, ILogger <WeatherForecastController> logger, IDemoServ demoServ, IRoleModulePermissionServices roleModulePermissionServices
                                  )
 {
     _sysUserInfoServices = sysUserInfoServices;
     _logger   = logger;
     _demoServ = demoServ;
     _roleModulePermissionServices = roleModulePermissionServices;
 }
Beispiel #5
0
 /// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="unitOfWork"></param>
 /// <param name="sysUserInfoServices"></param>
 /// <param name="userRoleServices"></param>
 /// <param name="roleServices"></param>
 /// <param name="user"></param>
 public UserController(IUnitOfWork unitOfWork, ISysUserInfoServices sysUserInfoServices, IUserRoleServices userRoleServices, IRoleServices roleServices, IUser user)
 {
     _unitOfWork          = unitOfWork;
     _sysUserInfoServices = sysUserInfoServices;
     _userRoleServices    = userRoleServices;
     _roleServices        = roleServices;
     _user = user;
 }
Beispiel #6
0
        public LoginController_Should()
        {
            var container = dI_Test.DICollections();

            _sysUserInfoServices = container.Resolve <ISysUserInfoServices>();
            _userRoleServices    = container.Resolve <IUserRoleServices>();
            _roleServices        = container.Resolve <IRoleServices>();
            _requirement         = container.Resolve <PermissionRequirement>();
            loginController      = new LoginController(_sysUserInfoServices, _userRoleServices, _roleServices, _requirement);
        }
 public UserBehaviorService(IUser user
                            , ISysUserInfoServices sysUserInfoServices
                            , ILogger <UserBehaviorService> logger)
 {
     _user = user;
     _sysUserInfoServices = sysUserInfoServices;
     _logger = logger;
     _uid    = _user.ID.ObjToString();
     _token  = _user.GetToken();
 }
Beispiel #8
0
 /// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="unitOfWork"></param>
 /// <param name="sysUserInfoServices"></param>
 /// <param name="userRoleServices"></param>
 /// <param name="roleServices"></param>
 /// <param name="user"></param>
 /// <param name="mapper"></param>
 /// <param name="logger"></param>
 public UserController(IUnitOfWork unitOfWork, ISysUserInfoServices sysUserInfoServices,
                       IUserRoleServices userRoleServices, IRoleServices roleServices,
                       IUser user, IMapper mapper, ILogger <UserController> logger)
 {
     _unitOfWork          = unitOfWork;
     _sysUserInfoServices = sysUserInfoServices;
     _userRoleServices    = userRoleServices;
     _roleServices        = roleServices;
     _user   = user;
     _mapper = mapper;
     _logger = logger;
 }
 public blogarticleController(IblogarticleServices blogarticleServices,
                              ISysUserInfoServices sysUserInfoServices,
                              ILogger <blogarticleController> logger,
                              IUser user,
                              Iblogarticle_tagsServices blogarticle_TagsServices, IMapper mapper)
 {
     _blogarticleServices = blogarticleServices;
     _logger = logger;
     _user   = user;
     _mapper = mapper;
     _blogarticle_TagsServices = blogarticle_TagsServices;
     _sysUserInfoServices      = sysUserInfoServices;
 }
Beispiel #10
0
 public PM_INSPECTServices(IPM_INSPECTRepository dal,
                           ISysUserInfoServices sysUserInfoServices,
                           IADD_SUPERVISEPLANRepository addSuperviserPlanDal,
                           IDEPARTMENTSRepository departmentsDal,
                           IDIVISIONSRepository divisionsDal)
 {
     this._dal = dal;
     this._SysUserInfoServices = sysUserInfoServices;
     base.BaseDal = dal;
     this._AddSuperviserPlanDal = addSuperviserPlanDal;
     this._DepartmentsDal       = departmentsDal;
     this._DivisionsDal         = divisionsDal;
 }
Beispiel #11
0
 public InspectAcceptanceServices(
     IORDERSRepository orderDal,
     IFOLDERSRepository foldersDal,
     IPREORDERSRepository preOrdersDal,
     IUnitOfWork unitOfWork,
     ISysUserInfoServices sysUserInfoServices,
     IRASCLIENTSRepository rasClientsDal)
 {
     this._OrderDal            = orderDal;
     this._FoldersDal          = foldersDal;
     this._PreOrdersDal        = preOrdersDal;
     this._UnitOfWork          = unitOfWork;
     this._SysUserInfoServices = sysUserInfoServices;
     this._RasClientsDal       = rasClientsDal;
     base.BaseDal = foldersDal;
 }
 public LoginController(ISysUserInfoServices sysUserInfoServices)
 {
     this._sysUserInfoServices = sysUserInfoServices;
 }
 /// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="sysUserInfoServices"></param>
 /// <param name="userRoleServices"></param>
 /// <param name="roleServices"></param>
 public UserRoleController(ISysUserInfoServices sysUserInfoServices, IUserRoleServices userRoleServices, IRoleServices roleServices)
 {
     this._sysUserInfoServices = sysUserInfoServices;
     this._userRoleServices    = userRoleServices;
     this._roleServices        = roleServices;
 }
 public UserInfoController(ISysUserInfoServices iSysUserInfoServices)
 {
     _ISysUserInfoServices = iSysUserInfoServices;
 }
Beispiel #15
0
 public blogarticle_commentsController(Iblogarticle_commentsServices blogarticle_commentsServices, ISysUserInfoServices sysUserInfoServices, IUser user)
 {
     _sysUserInfoServices          = sysUserInfoServices;
     _blogarticle_commentsServices = blogarticle_commentsServices;
     _user = user;
 }
Beispiel #16
0
 public UserController(ISysUserInfoServices sysUserInfoServices)
 {
     _sysUserInfoServices = sysUserInfoServices;
 }