/// <summary> /// 成本中心服务实现的构造函数 /// </summary> public ValidateCodeService( IUnitOfWork unitOfWork, IValidateCodeRepository ValidateCodeRepository, IcoreUserRepository coreUserRepository, IDbContext dbContext) { _unitOfWork = unitOfWork; _ValidateCodeRepository = ValidateCodeRepository; _coreUserRepository = coreUserRepository; SMOSECDbContext = (SMOSECDbContext)dbContext; }
/// <summary> /// 用户服务实现的构造函数 /// </summary> public UserService(IUnitOfWork unitOfWork, IUserRepository userRepository, IDepartmentRepository departmentRepository, IUserRoleRepository userRoleRepository, IRoleRepository roleRepository, IMenuRepository menuRepository, IValidateCodeRepository validateCodeRepository, IRoleMenuRepository roleMenuRepository) { _unitOfWork = unitOfWork; _userRepository = userRepository; _departmentRepository = departmentRepository; _userRoleRepository = userRoleRepository; _roleRepository = roleRepository; _menuRepository = menuRepository; _validateCodeRepository = validateCodeRepository; _roleMenuRepository = roleMenuRepository; }