| | |
| | | package com.dsh.course.feignclient.other; |
| | | |
| | | import com.dsh.course.entity.OperatorUser; |
| | | import com.dsh.course.feignclient.other.model.GetDistanceVo; |
| | | import com.dsh.course.feignclient.other.model.Store; |
| | | import org.springframework.cloud.openfeign.FeignClient; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | |
| | | import java.util.List; |
| | | |
| | |
| | | */ |
| | | @FeignClient("mb-cloud-other") |
| | | public interface StoreClient { |
| | | |
| | | /** |
| | | * 根据运营商id获取对应运营商分账比例 返回格式: 微信分账比例,支付宝分账比例 |
| | | * @return |
| | | */ |
| | | @PostMapping("/base/getProportionByOperatorId") |
| | | String getProportionByOperatorId(Integer id); |
| | | |
| | | /** |
| | | * 根据运营商id获取对应运营商商户号 |
| | | * @return |
| | | */ |
| | | @PostMapping("/base/getSMIDByOperatorId") |
| | | String getSMIDByOperatorId(Integer id); |
| | | /** |
| | | * 根据名称模糊搜索门店 |
| | | * |
| | | * @param name |
| | | * @return |
| | | */ |
| | |
| | | |
| | | /** |
| | | * 根据门店id获取门店信息 |
| | | * |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @PostMapping("/store/queryStoreById") |
| | | Store queryStoreById(Integer id); |
| | | |
| | | @PostMapping("/base/protocol/storeDetail/distanceCal") |
| | | String calculateDistance(@RequestBody GetDistanceVo distanceVo); |
| | | |
| | | //查询运营商 |
| | | @PostMapping("/store/queryByStoreId") |
| | | OperatorUser queryByStoreId(Integer storeId); |
| | | |
| | | @PostMapping("/store/querySiteId") |
| | | List<Integer> querySiteId(Integer storeId); |
| | | |
| | | } |