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

import cn.superdesk.uniorder.common.rest.response.R;
import cn.superdesk.uniorder.dto.receive.consumer.superdeskmall.score.ScoreOrderReceiveParam;
import cn.superdesk.uniorder.dto.receive.consumer.superdeskmall.score.refund.ScoreOrderRefundReceiveParam;
import cn.superdesk.uniorder.dubbo.facade.order.receive.DubboReceiveMallFlscQchOrderService;
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 ReceiveMallFlscQchOrderDubboConsumerService {


	@Reference(version = "1.0.0", timeout = 180000, retries = -1)
	private DubboReceiveMallFlscQchOrderService dubboReceiveMallFlscQchOrderService;
	
	/****************************************** kafka 积分订单 福利商城_侨城汇 start ******************************************/

	/**
	 * http 积分订单 mark by linjinyu at 20210308
	 *
	 * @param scoreOrderReceiveParam
	 * @return
	 */
	public R<String> httpScoreOrderReceive(ScoreOrderReceiveParam scoreOrderReceiveParam) {
		return dubboReceiveMallFlscQchOrderService.httpScoreOrderReceive(scoreOrderReceiveParam);
	}

	/**
	 * http 积分订单 mark by linjinyu at 20210308
	 *
	 * @param scoreOrderRefundReceiveParam
	 * @return
	 */
	public R<String> httpScoreOrderRefundReceive(ScoreOrderRefundReceiveParam scoreOrderRefundReceiveParam) {
		return dubboReceiveMallFlscQchOrderService.httpScoreOrderRefundReceive(scoreOrderRefundReceiveParam);
	}

	/**
	 * 商城 订单 侨城汇(积分订单)
	 *
	 * @param message
	 */
	public void kafkaScoreOrderReceive(String message) {
		dubboReceiveMallFlscQchOrderService.kafkaScoreOrderReceive(message);
	}

	public void kafkaScoreOrderRefundReceive(String message) {
		dubboReceiveMallFlscQchOrderService.kafkaScoreOrderRefundReceive(message);
	}

	/****************************************** kafka 积分订单 福利商城_侨城汇  end ******************************************/
}
