package com.smyhub.infogenie.infogeniebackendjava.dto.response;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

/**
 * Response for GET /api/auth/check.
 * { "success": true, "logged_in": true/false, "user": {...} }
 */
@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
public class AuthCheckResponse {

    private boolean success = true;
    private boolean loggedIn;
    private UserInfo user;

    @Data
    public static class UserInfo {
        private String account;
        private String username;
        private String email;
    }
}
