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

import com.yuchen.saas.park.api.dto.park.AddSubSiteNumReqDTO;
import com.yuchen.saas.park.api.entity.park.PmgBatParkInfo;
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.cloud.openfeign.SpringQueryMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @Author: 肖润飞
 * @CreateTime: 2022/11/25 11:02
 * @Description: TODO
 * @Version: 1.0
 */
@FeignClient(
        value = AppNameConstant.SAAS_PARK,
        fallbackFactory = PmgBatParkInfoFeignFallback.class
)
public interface PmgBatParkInfoFeignServer {

    @GetMapping("/parkInfo/detail")
    R<PmgBatParkInfo> detail(@SpringQueryMap PmgBatParkInfo pmgBatParkInfo);

    @PostMapping("/parkInfo/addSubSiteNum")
    R addSubSiteNum(@RequestBody AddSubSiteNumReqDTO reqDTO);
}
