package com.ai.da.common.RabbitMQ;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "rabbitmq")
@Data
public class RabbitMQProperties {

    private Queues queues;
    private Exchange exchange;
    private DeadLetter deadLetter; // 新增死信配置

    @Data
    public static class Queues {
        private String generate;
        private String sr;
        private String srResult;
        private String generateResult;
        private String toProductImageResult;
        private String relightResult;
        private String poseTransform;
        private String emailRetry;
        private String designBatch;
        private String relightBatch;
        private String toProductImageBatch;
        private String poseTransformBatch;
    }

    @Data
    public static class Exchange {
        private String generate;
    }

    // 新增死信配置内部类
    @Data
    public static class DeadLetter {
        private String exchange;
        private String queue;
        private String routingKey;
    }
}

