| | |
| | | |
| | | import com.ruoyi.common.core.constant.ServiceNameConstants; |
| | | import com.ruoyi.other.api.domain.ShopPoint; |
| | | import com.ruoyi.other.api.domain.ShopPointCopy; |
| | | import com.ruoyi.other.api.factory.ShopPointClientFallbackFactory; |
| | | import org.springframework.cloud.openfeign.FeignClient; |
| | | import org.springframework.web.bind.annotation.DeleteMapping; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | |
| | | /** |
| | | * @author zhibing.pu |
| | |
| | | @FeignClient(contextId = "ShopPointClient", value = ServiceNameConstants.OTHER_SERVICE, fallbackFactory = ShopPointClientFallbackFactory.class) |
| | | public interface ShopPointClient { |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * 保存门店积分流水 |
| | | * @param shopPoint |
| | | */ |
| | | @PostMapping("/shop-point/saveShopPoint") |
| | | void saveShopPoint(@RequestBody ShopPoint shopPoint); |
| | | |
| | | @PostMapping("/shop-point/saveShopPointCopy") |
| | | void saveShopPoint(@RequestBody ShopPointCopy shopPoint); |
| | | |
| | | @DeleteMapping("/shop-point/deleteShopPointCopy") |
| | | void deleteShopPointCopy(@RequestParam("orderId") Long orderId); |
| | | } |