Created
April 21, 2018 16:35
-
-
Save Gwoks/9943808d52d30efb7461a9ad215c7ced to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Service | |
public class RestServiceImp implements RestService{ | |
@Autowired | |
private RestDao restDao; | |
@Override | |
public List<RestResult> getAll() { | |
return restDao.getAll(); | |
} | |
@Override | |
public RestResult getRestById(int id) { | |
return restDao.getRestById(id); | |
} | |
@Override | |
public void addRest(Rest rest) { | |
restDao.addRest(rest); | |
} | |
@Override | |
public void updateRest(Rest rest, int id) { | |
restDao.updateRest(rest, id); | |
} | |
@Override | |
public void deleteRestById(int id) { | |
restDao.deleteRestById(id); | |
} | |
@Override | |
public int lastestInput() { | |
return restDao.lastestInput(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment