1- package com .booking .backend .controller ;
1+ package com .booking .backend .controllers ;
22
33
4- import com .booking .backend .dto . OrganizationDto ;
5- import com .booking .backend .entity . TypeOrganization ;
6- import com .booking .backend .service .OrganizationService ;
4+ import com .booking .backend .entities . TypeOrganization ;
5+ import com .booking .backend .usecases . OrganizationDto ;
6+ import com .booking .backend .usecases .OrganizationService ;
77import lombok .RequiredArgsConstructor ;
88import org .springframework .data .domain .Page ;
99import org .springframework .data .domain .Pageable ;
@@ -18,18 +18,18 @@ public class OrganizationController {
1818 private final OrganizationService organizationService ;
1919
2020 @ GetMapping ("/organization" )
21- Page <OrganizationDto > getAllOrganizations (Pageable pageable ) {
21+ Page <OrganizationDto > findAll (Pageable pageable ) {
2222 return organizationService .getAllOrganizations (pageable );
2323 }
2424
2525 @ GetMapping ("/organization/type/{type}" )
26- Page <OrganizationDto > getAllOrganizationsByType (@ PathVariable TypeOrganization type ,
27- Pageable pageable ) {
26+ Page <OrganizationDto > findAllByType (@ PathVariable TypeOrganization type ,
27+ Pageable pageable ) {
2828 return organizationService .getOrganizationsByType (pageable , type );
2929 }
3030
3131 @ GetMapping ("/organization/type" )
32- List <TypeOrganization > getAllTypesOrganizations () {
32+ List <TypeOrganization > findAllTypes () {
3333 return organizationService .getAllTypesOrganizations ();
3434 }
3535
0 commit comments