package org.springblade.community.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

@FeignClient(value = "cyzh-community",path = "/feign/sync")
public interface ITimedTaskClient {

	/**
	 * 同步小区
	 */
	@GetMapping("/syncResidential")
	void syncResidential();

	/**
	 * 同步单元
	 */
	@PostMapping("/syncUnit/{residentialOldId}")
	void syncUnit(@PathVariable("residentialOldId")Long residentialOldId);

	/**
	 * 同步楼层
	 */
	@PostMapping("/syncFloor/{residentialOldId}")
	void syncFloor(@PathVariable("residentialOldId")Long residentialOldId);

	/**
	 * 定时同步房间
	 */
	@PostMapping("/syncRoom/{residentialOldId}")
	void syncRoom(@PathVariable("residentialOldId")Long residentialOldId);
}
