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

import com.yuchen.saas.park.api.dto.property.PropertyBuildingsQryDto;
import com.yuchen.saas.park.api.entity.property.PropertyBuildings;
import org.nest.springwrap.core.launch.app.AppNameConstant;
import org.nest.springwrap.core.mp.support.NestPage;
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 = PropertyBuildingsFeignServiceFallback.class
)
public interface PropertyBuildingsFeignService {

    @PostMapping("/propertyBuildings/save")
    R save(PropertyBuildings PropertyBuildings);

    @PostMapping("/propertyBuildings/list")
    R<NestPage<PropertyBuildings>> list(PropertyBuildingsQryDto propertyBuildingsQryDTO);

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