package com.hzs.common.core.constant;

/**
 * RabbitMq 静态变量
 **/
public class RabbitMqConstants {

    /**
     * 统一mq前缀
     */
    public final static String PREFIX = "global.";

    /**
     * 奖金秒接 exchange
     */
    public static final String ORDER_SECOND_EXCHANGE = PREFIX + "order.second.exchange";
    /**
     * 奖金秒接 queue
     */
    public static final String ORDER_SECOND_QUEUE = PREFIX + "order.second.queue";
    /**
     * 奖金秒接 key
     */
    public static final String ORDER_SECOND_KEY = PREFIX + "order.second.key";

    /**
     * 活动 exchange
     */
    public static final String ACTIVITY_EXCHANGE = PREFIX + "activity.exchange";
    /**
     * 活动 queue
     */
    public static final String ACTIVITY_QUEUE = PREFIX + "activity.queue";
    /**
     * 活动 key
     */
    public static final String ACTIVITY_KEY = PREFIX + "activity.key";

    /**
     * 延迟队列 TTL 名称
     */
    public static final String DELAY_QUEUE = PREFIX + "delay.queue";
    /**
     * DLX，dead letter发送到的 exchange
     * 延时消息就是发送到该交换机的
     */
    public static final String DELAY_EXCHANGE = PREFIX + "delay.exchange";
    /**
     * routing key 名称
     * 具体消息发送在该 routingKey 的
     */
    public static final String DELAY_ROUTING_KEY = PREFIX + "delay.key";

    public static final String EFFECT_QUEUE_NAME = PREFIX + "effect.queue";
    public static final String EFFECT_EXCHANGE_NAME = PREFIX + "effect.exchange";
    public static final String EFFECT_ROUTING_KEY = PREFIX + "effect.key";

    /**
     * 退款MQ exchange（在线支付回调处理业务失败，进行退款）
     */
    public static final String REFUND_ORDER_EXCHANGE = PREFIX + "refund.exchange";
    /**
     * 退款MQ queue（在线支付回调处理业务失败，进行退款）
     */
    public static final String REFUND_ORDER_QUEUE = PREFIX + "refund.queue";
    /**
     * 退款MQ key（在线支付回调处理业务失败，进行退款）
     */
    public static final String REFUND_ORDER_KEY = PREFIX + "refund.key";

    /**
     * 业务操作日志 exchange
     */
    public static final String BUSINESS_LOG_EXCHANGE = PREFIX + "business.log.exchange";
    /**
     * 业务操作日志 queue
     */
    public static final String BUSINESS_LOG_QUEUE = PREFIX + "business.log.queue";
    /**
     * 业务操作日志 key
     */
    public static final String BUSINESS_LOG_KEY = PREFIX + "business.log.key";

//    /**
//     * 会员续约 exchange
//     */
//    public static final String MEMBER_CONTINUE_EXCHANGE = PREFIX + "member.continue.exchange";
//    /**
//     * 会员续约 queue
//     */
//    public static final String MEMBER_CONTINUE_QUEUE = PREFIX + "member.continue.queue";
//
//    /**
//     * 会员续约 key
//     */
//    public static final String MEMBER_CONTINUE_KEY = PREFIX + "member.continue.key";

    ////////////////////////////// 会员撤单统一推送 EXCHANGE 和 KEY //////////////////////////////
    /**
     * 撤单 exchange
     */
    public static final String ORDER_CANCEL_EXCHANGE = PREFIX + "order.cancel.exchange";
    /**
     * 撤单 key
     */
    public static final String ORDER_CANCEL_KEY = PREFIX + "order.cancel.key";

    ////////////////////////////// 会员撤单各消息 QUEUE //////////////////////////////
    /**
     * 撤单 - 活动回写 queue
     */
    public static final String ORDER_CANCEL_ACTIVITY_BACK_QUEUE = PREFIX + "order.cancel.activity.back.queue";

}
