| | |
| | | package com.ruoyi.order.feignClient; |
| | | |
| | | import com.ruoyi.account.api.model.AppUser; |
| | | import com.ruoyi.common.core.constant.ServiceNameConstants; |
| | | import com.ruoyi.common.core.domain.R; |
| | | import com.ruoyi.order.factory.OrderClientFallbackFactory; |
| | | import org.springframework.cloud.openfeign.FeignClient; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | |
| | | import java.util.List; |
| | | import java.util.Set; |
| | | |
| | | /** |
| | | * @author zhibing.pu |
| | |
| | | /** |
| | | * 获取商品销售数量 |
| | | * @param goodsId |
| | | * @param type 购买类型(1=普通商品,2=秒杀商品) |
| | | * @return |
| | | */ |
| | | @PostMapping("/order/getGoodsSaleNum") |
| | |
| | | */ |
| | | @PostMapping("/order/getShopSaleNum") |
| | | R<Integer> getShopSaleNum(@RequestParam("shopId") Integer shopId, @RequestParam("type") Integer type); |
| | | |
| | | |
| | | /** |
| | | * 获取所有在指定门店消费的用户id |
| | | * @param shopId |
| | | * @return |
| | | */ |
| | | @PostMapping("/order/getAppUserByShoppingShop") |
| | | R<Set<Long>> getAppUserByShoppingShop(@RequestParam("shopId") Integer shopId); |
| | | } |