| | |
| | | package com.dsh.activity.feignclient; |
| | | |
| | | import com.dsh.activity.entity.Coupon; |
| | | import com.dsh.activity.entity.UserCoupon; |
| | | import com.dsh.activity.feignclient.model.CouponStuAvailableVo; |
| | | import com.dsh.activity.model.request.CommodityRequest; |
| | | 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 java.util.List; |
| | | import java.util.Map; |
| | | |
| | | @FeignClient(value = "mb-cloud-activity") |
| | | public interface UserConponClient { |
| | | |
| | | |
| | | @PostMapping("/userConpon/getStuOfConpons") |
| | | public List<CouponStuAvailableVo> queryUserWithConponList(@RequestBody Integer appUserId); |
| | | @PostMapping("/base/userConpon/getStuOfConpons") |
| | | public List<CouponStuAvailableVo> queryUserWithConponList(@RequestParam("appUserId") Integer appUserId); |
| | | |
| | | @PostMapping("/base/coupon/getAllCoupons") |
| | | public List<Coupon> getAllCoupons(@RequestBody CommodityRequest request); |
| | | |
| | | |
| | | @PostMapping("/base/coupon/getRedeemedNums") |
| | | public int getRedeemedQuantity(@RequestBody Integer id); |
| | | |
| | | |
| | | @PostMapping("/base/coupon/insertToAppuserCoupon") |
| | | public void insertToAppuserCoupon(@RequestBody UserCoupon coupon); |
| | | |
| | | |
| | | @PostMapping("/userCoupon/queryCouponOfStore") |
| | | List<Integer> getCouponStoreIds(@RequestBody Integer couponId); |
| | | |
| | | |
| | | @PostMapping("/base/userConpon/queryCouponRules") |
| | | Map<String, Object> getCouponRules(@RequestBody Integer couponId); |
| | | } |