package com.buy507.mall.dto;

import lombok.Getter;

/**
 * 自动确认收货消息队列枚举配置
 */
@Getter
public enum ReceivingQueueEnum {
    /**
     * 消息通知队列
     */
    QUEUE_RECEIVING_CONFIRM("mall.receiving.direct", "mall.receiving.confirm", "mall.receiving.confirm"),
    /**
     * 消息通知ttl队列
     */
    QUEUE_TTL_RECEIVING_CONFIRM("mall.receiving.direct.ttl", "mall.receiving.confirm.ttl", "mall.receiving.confirm.ttl");

    /**
     * 交换名称
     */
    private String exchange;
    /**
     * 队列名称
     */
    private String name;
    /**
     * 路由键
     */
    private String routeKey;

    ReceivingQueueEnum(String exchange, String name, String routeKey) {
        this.exchange = exchange;
        this.name = name;
        this.routeKey = routeKey;
    }
}
