| | |
| | | import com.dsh.account.model.dto.Coupon; |
| | | import com.dsh.account.model.vo.sourceDetail.CouponStuAvailableVo; |
| | | import org.springframework.cloud.openfeign.FeignClient; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.List; |
| | | |
| | | @FeignClient(value = "mb-cloud-activity") |
| | | public interface UserConponClient { |
| | | |
| | | /** |
| | | * 查询注册赠送优惠券 判断当前优惠券限领数量 |
| | | */ |
| | | @PostMapping("/coupon/queryCouponByUser/{userId}") |
| | | public List<Long> queryCouponByUser(@PathVariable("userId") Integer userId); |
| | | |
| | | @PostMapping("/base/userConpon/getStuOfConpons") |
| | | public List<CouponStuAvailableVo> queryUserWithConponList(@RequestParam("appUserId") Integer appUserId); |
| | | |
| | | @PostMapping("/coupon/queryCouponById") |
| | | Coupon queryCouponById(Integer id); |
| | | |
| | | @PostMapping("/base/coupon/getAllCoupons") |
| | | public List<Coupon> getAllCoupons(@RequestBody CommodityRequest request); |
| | |
| | | |
| | | @PostMapping("/userCoupon/queryCouponOfStore") |
| | | List<Integer> getCouponStoreIds(@RequestBody Integer couponId); |
| | | |
| | | |
| | | @PostMapping("/userCoupon/queryCounts") |
| | | Integer queryCounts(@RequestBody List<Integer> queryIds); |
| | | |
| | | |
| | | @PostMapping("/userCoupon/queryCounts1") |
| | | Integer queryCounts1(@RequestBody List<Integer> queryIds); |
| | | } |