package kr.co.accura.wbx.spring.approval;

public record ApprovalResult(boolean success, String message, Object data) {

    public static ApprovalResult success(String message) {
        return new ApprovalResult(true, message, null);
    }

    public static ApprovalResult success(String message, Object data) {
        return new ApprovalResult(true, message, data);
    }

    public static ApprovalResult failure(String message) {
        return new ApprovalResult(false, message, null);
    }
}
