- Timestamp:
- 01/03/23 23:14:33 (23 months ago)
- Branches:
- main
- Children:
- ae042f4
- Parents:
- 60de3eb
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/com/example/autopartz/controller/UserController.java
r60de3eb r6832924 15 15 public class UserController { 16 16 private final UserService userService; 17 private final RepairShopReviewSummaryRepository repairShopReviewSummaryRepository;18 19 17 private final OrdersForUserRepository ordersForUserRepository; 20 18 private final RepairsForUserRepository repairsForUserRepository; 21 19 private final ReviewsForUserRepository reviewsForUserRepository; 22 public UserController(UserService userService, RepairShopReviewSummaryRepository repairShopReviewSummaryRepository,OrdersForUserRepository ordersForUserRepository, RepairsForUserRepository repairsForUserRepository, ReviewsForUserRepository reviewsForUserRepository) {20 public UserController(UserService userService, OrdersForUserRepository ordersForUserRepository, RepairsForUserRepository repairsForUserRepository, ReviewsForUserRepository reviewsForUserRepository) { 23 21 this.userService = userService; 24 this.repairShopReviewSummaryRepository = repairShopReviewSummaryRepository;25 22 this.ordersForUserRepository = ordersForUserRepository; 26 23 this.repairsForUserRepository = repairsForUserRepository; 27 24 this.reviewsForUserRepository = reviewsForUserRepository; 28 }29 @GetMapping("reportTest")30 public List<RepairShopReviewsSummary> getRepairShopReport(){31 return repairShopReviewSummaryRepository.findAll();32 25 } 33 26 @GetMapping("usersTest")
Note:
See TracChangeset
for help on using the changeset viewer.