| | |
| | | package com.xiaopeng.api.feignClient.operation; |
| | | |
| | | import com.xiaopeng.api.factory.operation.XpOpenCityClientFallbackFactory; |
| | | import com.xiaopeng.api.model.operation.XpOpenCity; |
| | | 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.RequestParam; |
| | | |
| | | import java.util.List; |
| | |
| | | @FeignClient(contextId = "XpOpenCityClient", value = ServiceNameConstantsEnum.XP_OPERATION_SERVICE, fallbackFactory = XpOpenCityClientFallbackFactory.class) |
| | | public interface XpOpenCityClient { |
| | | |
| | | @GetMapping("/base/v1/mini-program/api/v1/openCity/nameList") |
| | | |
| | | |
| | | @GetMapping("/base/v1/openCity/nameList") |
| | | R<List<String>> pageList(@RequestParam String cityIds); |
| | | |
| | | |
| | | /** |
| | | * 根据省市区获取开通城市数据 |
| | | * @param provinceCode |
| | | * @param cityCode |
| | | * @param districtCode |
| | | * @return |
| | | */ |
| | | @PostMapping("/logan/inner/v1/openCity/getXpOpenCity") |
| | | R<XpOpenCity> getXpOpenCity(@RequestParam("provinceCode") String provinceCode, |
| | | @RequestParam("cityCode") String cityCode, |
| | | @RequestParam("districtCode") String districtCode); |
| | | |
| | | |
| | | /** |
| | | * 根据id查询开通城市 |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @PostMapping("/logan/inner/v1/openCity/getXpOpenCityById") |
| | | R<XpOpenCity> getXpOpenCityById(@RequestParam("id") Long id); |
| | | } |