package com.yuchen.saas.park.api.feign.property;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yuchen.saas.park.api.dto.property.PropertyHousesQryDto;
import com.yuchen.saas.park.api.entity.property.PropertyHouses;
import org.nest.springwrap.core.launch.app.AppNameConstant;
import org.nest.springwrap.core.tool.api.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;

@FeignClient(
        value = AppNameConstant.SAAS_PARK,
        fallback = PropertyHousesFeignServiceFallback.class
)
public interface PropertyHousesFeignService {

    @PostMapping("/propertyHouses/save")
    R save(PropertyHouses propertyHouses);

    @PostMapping("/propertyHouses/list")
    R<Page<PropertyHouses>> list(PropertyHousesQryDto propertyHousesQryDTO);

    @GetMapping("/propertyHouses/detail")
    R detail(Long id);
}
