initial commit

This commit is contained in:
2026-04-21 06:25:33 +07:00
commit 85efdb7714
214 changed files with 6821 additions and 0 deletions

View File

@ -0,0 +1,19 @@
package id.iptek.utms.api;
import java.time.Instant;
public record ApiResponse<T>(
boolean success,
String message,
T data,
Instant timestamp
) {
public static <T> ApiResponse<T> ok(String message, T data) {
return new ApiResponse<>(true, message, data, Instant.now());
}
public static ApiResponse<Void> fail(String message) {
return new ApiResponse<>(false, message, null, Instant.now());
}
}