package cn.superdesk.uniorder.dubbo.consumer.order.receive;

import cn.superdesk.uniorder.common.rest.response.R;
import cn.superdesk.uniorder.dto.receive.consumer.superdeskmall.unified.mix.UnifiedMixOrderReceiveParam;
import cn.superdesk.uniorder.dto.receive.consumer.superdeskmall.unified.mix.refund.UnifiedMixRefundOrderReceiveParam;
import cn.superdesk.uniorder.dubbo.facade.order.receive.DubboReceiveMallMixOrderService;
import com.alibaba.dubbo.config.annotation.Reference;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @Description: Java类作用描述
 * @Author: linjinyu
 * @CreateDate: 2021/11/30 下午5:07
 * @UpdateUser: linjinyu
 * @UpdateDate: 2021/11/30 下午5:07
 * @UpdateRemark: 修改内容
 * @Version: 1.0
 */
@Slf4j
@Component
public class ReceiveMallMixOrderDubboConsumerService {

	@Reference(version = "1.0.0", timeout = 180000, retries = -1)
	private DubboReceiveMallMixOrderService dubboReceiveMallMixOrderService;

	/****************************************** kafka 一般订单 福利商城 start ******************************************/

	public R<String> httpUnifiedMixOrderReceive(UnifiedMixOrderReceiveParam unifiedMixOrderReceiveParam) {
		return dubboReceiveMallMixOrderService.httpUnifiedMixOrderReceive(unifiedMixOrderReceiveParam);
	}

	public R<String> httpUnifiedMixRefundOrderReceive(UnifiedMixRefundOrderReceiveParam unifiedMixRefundOrderReceiveParam) {
		return dubboReceiveMallMixOrderService.httpUnifiedMixRefundOrderReceive(unifiedMixRefundOrderReceiveParam);
	}

	public void kafkaUnifiedMixOrderReceive(String message) {

		dubboReceiveMallMixOrderService.kafkaUnifiedMixOrderReceive(message);
	}

	public void kafkaUnifiedMixRefundOrderReceive(String message) {
		dubboReceiveMallMixOrderService.kafkaUnifiedMixRefundOrderReceive(message);
	}

	/****************************************** kafka 一般订单 福利商城   end ******************************************/
}
