package org.springblade.community.feign;

import org.springblade.community.entity.Building;
import org.springblade.community.vo.BuildingVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Created By lidexi in 2021/4/27
 **/
@FeignClient(value = "cyzh-community",path = "/feign/community")
public interface ICommunityClient {

	/**
	 * 新增住户时为园区-小区-楼栋-单元-楼层-房间加人数1
	 */
	@GetMapping("/addPersonNum")
	boolean addPersonNum(@RequestParam(value = "agencyId", required = false) Long agencyId,@RequestParam(value = "residentialId", required = false) Long residentialId,@RequestParam(value = "buildingId", required = false) Long buildingId,@RequestParam(value = "unitId", required = false) Long unitId,@RequestParam(value = "floorId", required = false) Long floorId,@RequestParam(value = "roomId") Long roomId);

	/**
	 * 删除住户时为园区-小区-楼栋-单元-楼层-房间减人数1
	 */
	@GetMapping("/subPersonNum")
	boolean subPersonNum(@RequestParam(value = "agencyId", required = false) Long agencyId,@RequestParam(value = "residentialId", required = false) Long residentialId,@RequestParam(value = "buildingId", required = false) Long buildingId,@RequestParam(value = "unitId", required = false) Long unitId,@RequestParam(value = "floorId", required = false) Long floorId,@RequestParam(value = "roomId") Long roomId);
}
