1
0
mirror of https://github.com/cekis/swg-api synced 2026-01-16 19:05:10 -05:00
Files
swg-api/src/main/java/swg/service/AccountService.java
2021-02-27 18:00:49 -08:00

23 lines
512 B
Java

package swg.service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import swg.dao.AccountDao;
import swg.entity.Account;
import java.util.List;
@Service
public class AccountService {
@Autowired
AccountDao accountDao;
public List<Account> getAllAccounts() {
return this.accountDao.findAll();
}
public Account getAccountByStationId(Long stationId) {
return this.accountDao.findByStationId(stationId);
}
}