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

import com.yuchen.saas.park.api.entity.park.PmgBatPointLocationInfo;
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;

@FeignClient(
        value = AppNameConstant.SAAS_PARK,
        fallbackFactory = PointLocationInfoFeignServiceFallback.class
)
public interface PointLocationInfoFeignService {

    /**
     * 点位信息
     */
    @GetMapping("/pointLocation/selectOne")
    R<PmgBatPointLocationInfo> selectOne(@RequestParam Long id);

    /**
     * 点位列表
     */
    @GetMapping("/pointLocation/listAll")
    R<List<PmgBatPointLocationInfo>> listAll();
}
