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

import io.swagger.annotations.ApiParam;
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.RequestParam;

import java.util.List;

/**
 * @Author 蔡文强
 * @Date 2024/3/21 10:56
 * @Description 个人房产feign接口
 */
@FeignClient(
        value = AppNameConstant.SAAS_PARK,
        fallback = PropertyUserHouseFeignServiceFallback.class
)
public interface PropertyUserHouseFeignService {

    /**
     * 获取用户房产园区列表
     * @param userDetailId 平台用户ID
     * @return 用户房产园区列表
     */
    @GetMapping("/propertyUserHouse/getUserHouseParkList")
    R<List<Long>> getUserHouseParkList(@ApiParam(value = "平台用户ID", required = true) @RequestParam Long userDetailId);

}
