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

import cn.superdesk.uniorder.common.rest.response.R;
import cn.superdesk.uniorder.dto.receive.consumer.superdeskappservices.meetingroomreservation.MeetingRoomReservationOrderReceiveParam;
import cn.superdesk.uniorder.dubbo.facade.order.receive.DubboReceiveMeetingRoomReservationOrderService;
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 ReceiveMeetingRoomReservationOrderDubboConsumerService {

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

	/****************************************** kafka 服务之窗 会议室预约 start ******************************************/

	public R<String> httpMeetingRoomReservationOrderMergeReceive(MeetingRoomReservationOrderReceiveParam meetingRoomReservationOrderReceiveParam) {
		return dubboReceiveMeetingRoomReservationOrderService.httpMeetingRoomReservationOrderMergeReceive(meetingRoomReservationOrderReceiveParam);
	}

	public void kafkaMeetingRoomReservationOrderMergeReceive(String message) {
		dubboReceiveMeetingRoomReservationOrderService.kafkaMeetingRoomReservationOrderMergeReceive(message);
	}

	public void kafkaMeetingRoomReservationOrderDeleteReceive(String message) {
		dubboReceiveMeetingRoomReservationOrderService.kafkaMeetingRoomReservationOrderDeleteReceive(message);
	}
	/****************************************** kafka 服务之窗 会议室预约   end ******************************************/
}
