package org.agt.module.license.controller.admin.license.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Builder;
import lombok.Data;

import java.util.List;
import java.util.Map;

@Schema(description = "管理后台 - 导入 Response VO")
@Data
@Builder
public class ImportRespVO {

    @Schema(description = "创建成功的数组", requiredMode = Schema.RequiredMode.REQUIRED)
    private List<String> creates;

    @Schema(description = "更新成功的数组", requiredMode = Schema.RequiredMode.REQUIRED)
    private List<String> updates;

    @Schema(description = "导入失败的集合，key 为导入关键字段，value 为失败原因", requiredMode = Schema.RequiredMode.REQUIRED)
    private Map<String, String> failures;

    @Schema(description = "导入失败的集合，key 为失败原因，value 为sn", requiredMode = Schema.RequiredMode.REQUIRED)
    private Map<String, String> failureMap;

    @Schema(description = "总条数", requiredMode = Schema.RequiredMode.REQUIRED)
    private Integer total;
}
