| | |
| | | |
| | | import com.xiaopeng.api.factory.operation.XpTestPointClientFallbackFactory; |
| | | import com.xiaopeng.api.model.map.XpTestPoint; |
| | | import com.xiaopeng.api.vo.map.QueryTestPoint; |
| | | import com.xiaopeng.common.core.domain.R; |
| | | import com.xiaopeng.common.core.dto.ServiceNameConstantsEnum; |
| | | import org.springframework.cloud.openfeign.FeignClient; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | |
| | | @FeignClient(contextId = "XpTestPointClient", value = ServiceNameConstantsEnum.XP_OPERATION_SERVICE, fallbackFactory = XpTestPointClientFallbackFactory.class) |
| | | import java.util.List; |
| | | |
| | | @FeignClient(contextId = "XpTestPointClient", value = ServiceNameConstantsEnum.XP_MAP_SERVICE, fallbackFactory = XpTestPointClientFallbackFactory.class) |
| | | public interface XpTestPointClient { |
| | | |
| | | |
| | |
| | | R<XpTestPoint> queryById(@RequestParam Long id); |
| | | |
| | | |
| | | /** |
| | | * 点位详情 |
| | | */ |
| | | @PostMapping("/api/v1/testPoint/queryPointByIds") |
| | | R<List<XpTestPoint>> queryPointByIds(@RequestBody QueryTestPoint query); |
| | | |
| | | |
| | | |
| | | /** |
| | | * 判断点位是在有效期内 |
| | |
| | | * @param pointId |
| | | * @return |
| | | */ |
| | | @GetMapping("/inner/v1/testPoint/nowInTimePoint") |
| | | @GetMapping("/logan/inner/v1/testPoint/nowInTimePoint") |
| | | R<Boolean> nowInTimePoint(@RequestParam Long pointId); |
| | | } |