package com.xxfc.platform.order.config;

import com.github.wxiaoqi.security.common.config.RabbitCommonConfig;
import com.github.wxiaoqi.security.common.config.rabbit.BindDTO;
import org.springframework.context.annotation.Configuration;

import java.util.ArrayList;

import static com.github.wxiaoqi.security.common.config.rabbit.RabbitConstant.*;


/**
 * rabbitmq配置类
 * 包含： 不知道什么orderWater队列
 * @author zhoujw
 * @date 2019/7/15
 */
@Configuration
public class RabbitOrderConfig extends RabbitCommonConfig {

    //退款队列 绑定订单完成
    public static final String ORDER_DEPOSIT_REFUND_QUEUE = "order.deposit.refund.queue";

    static {
        myQueue = new ArrayList<BindDTO>(){{
            add(new BindDTO(ORDER_DEPOSIT_REFUND_QUEUE, ORDER_TOPIC, KEY_ORDER_FINLISH));
        }};
    }

}

