diff --git a/Bibliotheksverwaltung/src/ServiceLayer/LibraryService.java b/Bibliotheksverwaltung/src/ServiceLayer/LibraryService.java new file mode 100644 index 0000000..d8198af --- /dev/null +++ b/Bibliotheksverwaltung/src/ServiceLayer/LibraryService.java @@ -0,0 +1,24 @@ +package ServiceLayer; + +import java.util.List; +import java.util.Map; + +import DomainLayer.LibraryItem; +import DomainLayer.User; + +public class LibraryService { + private Map items; // ID -> Medien + private Map users; // Kartennummer -> Benutzer + + public void borrowItem(String itemId, String userId) { + // Prüfen, ob verfügbar, und Ausleihe durchführen + } + + public void returnItem(String itemId) { + // Rückgabe-Logik und Gebührenberechnung + } + + public List searchItems(String query) { + // Suchfunktion für Medien + } +} \ No newline at end of file