Skip to content

Instantly share code, notes, and snippets.

@Gwoks
Created April 21, 2018 16:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Gwoks/9943808d52d30efb7461a9ad215c7ced to your computer and use it in GitHub Desktop.
Save Gwoks/9943808d52d30efb7461a9ad215c7ced to your computer and use it in GitHub Desktop.
@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