source: src/main/java/com/example/fooddeliverysystem/service/impl/TotalCouponsByCustomerServiceImpl.java@ 8d11f8c

Last change on this file since 8d11f8c was 8d11f8c, checked in by jovanmanchev <jovanmanchev3003@…>, 20 months ago

code added, trial 2

  • Property mode set to 100644
File size: 899 bytes
Line 
1package com.example.fooddeliverysystem.service.impl;
2
3import com.example.fooddeliverysystem.model.views.TotalCouponsByCustomer;
4import com.example.fooddeliverysystem.repository.viewsrepos.TotalCouponsByCustomerRepository;
5import com.example.fooddeliverysystem.service.TotalCouponsByCustomerService;
6import org.springframework.stereotype.Service;
7
8import java.util.List;
9
10@Service
11public class TotalCouponsByCustomerServiceImpl implements TotalCouponsByCustomerService {
12
13 private final TotalCouponsByCustomerRepository totalCouponsByCustomerRepository;
14
15 public TotalCouponsByCustomerServiceImpl(TotalCouponsByCustomerRepository totalCouponsByCustomerRepository) {
16 this.totalCouponsByCustomerRepository = totalCouponsByCustomerRepository;
17 }
18
19 @Override
20 public List<TotalCouponsByCustomer> listAll() {
21 return this.totalCouponsByCustomerRepository.findAll();
22 }
23}
Note: See TracBrowser for help on using the repository browser.