All checks were successful
CI - Build & Test (develop) / build-and-test (pull_request) Successful in 30s
29 lines
1.0 KiB
Java
Executable File
29 lines
1.0 KiB
Java
Executable File
package io.gmss.fiscad.interfaces.decoupage;
|
|
|
|
import io.gmss.fiscad.entities.decoupage.Quartier;
|
|
import io.gmss.fiscad.exceptions.BadRequestException;
|
|
import io.gmss.fiscad.exceptions.NotFoundException;
|
|
import io.gmss.fiscad.paylaods.request.crudweb.QuartierPaylaodWeb;
|
|
import org.springframework.data.domain.Page;
|
|
import org.springframework.data.domain.Pageable;
|
|
|
|
import java.util.List;
|
|
import java.util.Optional;
|
|
|
|
public interface QuartierService {
|
|
|
|
Quartier createQuartier(Quartier quartier) throws BadRequestException;
|
|
|
|
Quartier updateQuartier(Long id, Quartier quartier) throws NotFoundException;
|
|
|
|
void deleteQuartier(Long id) throws NotFoundException;
|
|
|
|
|
|
Page<QuartierPaylaodWeb> getQuartierList(Pageable pageable);
|
|
List<QuartierPaylaodWeb> getQuartierList();
|
|
List<QuartierPaylaodWeb> getQuartierListByArrondissementId(Long arrondissementId);
|
|
Page<QuartierPaylaodWeb> getQuartierListByArrondissementId(Long arrondissementId,Pageable pageable);
|
|
|
|
Optional<QuartierPaylaodWeb> getQuartierById(Long id);
|
|
}
|