mirror of
https://github.com/cekis/swg-api
synced 2026-01-16 19:05:10 -05:00
23 lines
512 B
Java
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);
|
|
}
|
|
}
|