/// <summary> /// 构造方法 /// </summary> /// <param name="codes"></param> public AuthorityFilter(params string[] codes) { _codes = codes; if (ServiceProvider == null) { return; } _userService = (IUserService)ServiceProvider.GetService(typeof(IUserService)); _apiAuthorityService = (IAPIAuthorityService)ServiceProvider.GetService(typeof(IAPIAuthorityService)); }
public ResourceOwnerPasswordValidator(IUserService userService, IAPIAuthorityService apiAuthorityService) { _userService = userService; _apiAuthorityService = apiAuthorityService; }
/// <summary> /// 构造方法 /// </summary> public APIAuthorityController(IAPIAuthorityService apiAuthorityService, IMapper mapper) { _apiAuthorityService = apiAuthorityService; _mapper = mapper; }