package com.github.wxiaoqi.security.common.config.rabbit;

import java.util.HashSet;
import java.util.Set;

public class RabbitConstant {
    public static Set<String> exchangeTopicSet;
    public static Set<String> exchangeDirectSet;
    public static String TOPIC_EXC = "_topic_exchange";
    public static String DIRECT_EXC = "_direct_exchange";

    /**************************admin公用主题*********************************/
    public static final String ADMIN = "admin";
    public static final String ADMIN_TOPIC = ADMIN+ TOPIC_EXC;

    /**************************数据中心公用主题*********************************/
    public static final String DATACENTER = "datacenter";
    public static final String DATACENTER_TOPIC = DATACENTER+ TOPIC_EXC;

    /**************************key*********************************/

    //数据中心
    //入库
    public static final String KEY_IMAGE_INPUT_SUCC = "image.input.succ";

    //用户
    public static final String KEY_APPUSER_REGISTER = "appUser.register";
    public static final String KEY_APPUSER_AUTH = "appUser.auth";

    //积分
    public static final String INTEGRAL_ROUTING_KEY = "integral_routing_key";

    //订单
    public static final String KEY_ORDER_PAY = "order.pay";
    public static final String KEY_ORDER_FINLISH = "order.finlish";
    public static final String KEY_ORDER_CANCEL = "order.cancel";
    public static final String KEY_ORDER_PART_DEPOSIT = "order.partDeposit";

    static {
        exchangeTopicSet = new HashSet<String>() {{
           add(ADMIN_TOPIC);
        }};
    }
}
