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

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yuchen.saas.park.api.dto.property.PropertyAdsPositionQryDto;
import com.yuchen.saas.park.api.entity.property.PropertyAdsPosition;
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 = PropertyAdsPositionFeignServiceFallback.class
)
public interface PropertyAdsPositionFeignService {

    @PostMapping("/propertyAdsPosition/save")
    R save(PropertyAdsPosition propertyAdsPosition);

    @PostMapping("/propertyAdsPosition/list")
    R<Page<PropertyAdsPosition>> list(PropertyAdsPositionQryDto propertyAdsPositionQryDto);

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