package com.xxfc.platform.universal.config;

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

import java.util.ArrayList;

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

/**
 * @author libin
 * @version 1.0
 * @description
 * @data 2019/10/17 17:23
 */
@Configuration
public class RabbitUniversalConfig extends RabbitCommonConfig {
    /**
     * 提现支付
     */
    public static final String WITH_DRAW_QUEUE = "withdraw.wallet.queue";

    static {
        myQueue = new ArrayList<BindDTO>() {{
            //钱包提现
            add(new BindDTO(WITH_DRAW_QUEUE, ADMIN_TOPIC, KEY_WALLET_WITH_DRAW));
        }};
    }
}


