package com.ycwl.basic.integration.scenic.dto.config;

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

@Data
public class BatchUpdateResponse {
    @JsonProperty("updatedCount")
    private Integer updatedCount;
    
    @JsonProperty("createdCount")
    private Integer createdCount;
    
    @JsonProperty("message")
    private String message;
    
    public Integer getSuccess() {
        return (updatedCount != null ? updatedCount : 0) + (createdCount != null ? createdCount : 0);
    }
    
    public Integer getFailed() {
        return 0; // 当前响应格式不包含失败计数，返回0作为默认值
    }
}