ru.foodtechlab.lib.auth.service.domain.roleAccess.usecase.FindAccessesByRoleIdsUseCase Maven / Gradle / Ivy
package ru.foodtechlab.lib.auth.service.domain.roleAccess.usecase;
import com.rcore.domain.commons.usecase.UseCase;
import com.rcore.domain.commons.usecase.model.SingleInput;
import com.rcore.domain.commons.usecase.model.SingleOutput;
import lombok.RequiredArgsConstructor;
import ru.foodtechlab.lib.auth.service.domain.roleAccess.entity.RoleAccessEntity;
import ru.foodtechlab.lib.auth.service.domain.roleAccess.port.RoleAccessRepository;
import java.util.List;
@RequiredArgsConstructor
public class FindAccessesByRoleIdsUseCase extends UseCase>, SingleOutput>> {
private final RoleAccessRepository repository;
@Override
public SingleOutput> execute(SingleInput> input) {
return SingleOutput.of(repository.findAccessesByRoles(input.getValue()));
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy