diff --git a/src/main/java/com/example/e2eminimax/service/MinimaxService.java b/src/main/java/com/example/e2eminimax/service/MinimaxService.java new file mode 100644 index 0000000..0167221 --- /dev/null +++ b/src/main/java/com/example/e2eminimax/service/MinimaxService.java @@ -0,0 +1,18 @@ +package com.example.e2eminimax.service; + +import org.springframework.stereotype.Service; + +@Service +public class MinimaxService { + + public String processRequest(String input) { + if (input == null || input.isBlank()) { + throw new IllegalArgumentException("Input cannot be null or blank"); + } + return "Processed: " + input; + } + + public boolean validateInput(String input) { + return input != null && !input.isBlank(); + } +}