package com.zksy.visualization.domain.response;

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

@Data
public class AuthResponse {
    private boolean success;
    private Data data;
    private String code;
    private String errMsg;

    @lombok.Data
    public static class Data {
        @JsonProperty("access_token")
        private String accessToken;
        @JsonProperty("refresh_token")
        private String refreshToken;
        private String magicId;
        private String scope;
        private Integer remainderDays;
        @JsonProperty("token_type")
        private String tokenType;
        @JsonProperty("expires_in")
        private Integer expiresIn;
        private String userId;
    }
}
