/// <summary>
 /// 构造函数注入
 /// </summary>
 /// <param name="SysAdminRepository"></param>
 /// <param name="userRoleRepository"></param>
 /// <param name="roleRepository"></param>
 /// <param name="requirement"></param>
 public LoginController(ISysAdminRepository SysAdminRepository, IUserRoleRepository userRoleRepository, IRoleRepository roleRepository, PermissionRequirement requirement, ITeacherRepository iTeacherRepository)
 {
     this._SysAdminRepository = SysAdminRepository;
     this._userRoleRepository = userRoleRepository;
     this._roleRepository     = roleRepository;
     this._requirement        = requirement;
     this._iTeacherRepository = iTeacherRepository;
 }
Beispiel #2
0
 public UserController(ISysAdminRepository SysAdminRepository, IUserRoleRepository userRoleRepository, IRoleRepository roleRepository, IUser user, IModuleRepository moduleRepository, IPermissionRepository permissionRepository, IRoleModulePermissionRepository roleModulePermissionRepository, IUser iUser, ITeacherRepository iTeacherRepository)
 {
     _SysAdminRepository = SysAdminRepository;
     _userRoleRepository = userRoleRepository;
     _roleRepository     = roleRepository;
     _user = user;
     this.moduleRepository               = moduleRepository;
     this.permissionRepository           = permissionRepository;
     this.roleModulePermissionRepository = roleModulePermissionRepository;
     this._iTeacherRepository            = iTeacherRepository;
     this._iUser = iUser;
 }
        public systemAdminController(
            IAuthenticate authenticate,
            IServiceRepository serviceRepository,
            ISysAdminRepository sysAdminRepository,
            IGarageRepository garageRepository,
            ILogtimeRepository logtimeRepository)
        {
            this.authenticate       = authenticate;
            this.sysAdminRepository = sysAdminRepository;
            this.serviceRepository  = serviceRepository;
            this.garageRepository   = garageRepository;
            this.logtimeRepository  = logtimeRepository;

            ah  = new authenticateHandler(this.authenticate, this.logtimeRepository);
            sh  = new serviceHandler(this.serviceRepository, this.garageRepository);
            sah = new systemAdminHandler(this.sysAdminRepository);
        }
Beispiel #4
0
 /// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="SysAdminRepository"></param>
 /// <param name="userRoleRepository"></param>
 /// <param name="roleRepository"></param>
 public UserRoleController(ISysAdminRepository SysAdminRepository, IUserRoleRepository userRoleRepository, IRoleRepository roleRepository)
 {
     this._SysAdminRepository = SysAdminRepository;
     this._userRoleRepository = userRoleRepository;
     this._roleRepository     = roleRepository;
 }
 public systemAdminHandler(ISysAdminRepository sysAdminRepository)
 {
     this.sysAdminRepository = sysAdminRepository;
 }
Beispiel #6
0
 public SysAdminService(ISysAdminRepository SysAdminRepository, IRedisCachingService redisCachingService)
     : base(SysAdminRepository, redisCachingService)
 {
     _SysAdminRepository  = SysAdminRepository;
     _redisCachingService = redisCachingService;
 }