package com.spring.common.support;

import java.time.LocalDateTime;

import lombok.Builder;
import lombok.Getter;

@Getter
public class ApiResponse<T> {
    
    private final LocalDateTime timestamp = LocalDateTime.now();
    private int statusCode;
    private String path;
    private T data;
    private String message;

	@Builder
    private ApiResponse(int statusCode, String path, T data, String message) {
        this.statusCode = statusCode;
        this.path = path;
        this.data = data;
        this.message = message;
    }

}
