package com.usky.ai.dto;

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

import java.util.List;

@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class RepositoriesInfoResponseDTO {
    @JsonProperty("BoardId")
    private String boardId;

    @JsonProperty("BoardIp")
    private String boardIp;

    @JsonProperty("Event")
    private String event;

    @JsonProperty("Result")
    private Result result;

    @JsonProperty("data")
    private List<Album> data;

    @JsonProperty("totalCount")
    private int totalCount;

    @Data
    public static class Album {
        @JsonProperty("albumId")
        private int albumId;

        @JsonProperty("albumName")
        private String albumName;

        @JsonProperty("pictureNo")
        private int pictureNo;
    }

    @Data
    public static class Result {
        @JsonProperty("Code")
        private Integer code;

        @JsonProperty("Desc")
        private String desc;
    }

    private long time = System.currentTimeMillis();
}