| | |
| | | |
| | | 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; |
| | | |
| | | import java.util.List; |
| | | |
| | | @FeignClient(contextId = "XpTestPointClient", value = ServiceNameConstantsEnum.XP_OPERATION_SERVICE, fallbackFactory = XpTestPointClientFallbackFactory.class) |
| | | @FeignClient(contextId = "XpTestPointClient", value = ServiceNameConstantsEnum.XP_MAP_SERVICE, fallbackFactory = XpTestPointClientFallbackFactory.class) |
| | | public interface XpTestPointClient { |
| | | |
| | | |
| | |
| | | /** |
| | | * 点位详情 |
| | | */ |
| | | @GetMapping("/api/v1/testPoint/queryPointById") |
| | | R<List<XpTestPoint>> queryByIds(@RequestParam List<Long> ids); |
| | | @PostMapping("/api/v1/testPoint/queryPointByIds") |
| | | R<List<XpTestPoint>> queryPointByIds(@RequestBody QueryTestPoint query); |
| | | |
| | | |
| | | |