|  |  |  | 
|---|
|  |  |  | import com.ruoyi.other.api.factory.CouponFallbackFactory; | 
|---|
|  |  |  | import org.springframework.cloud.openfeign.FeignClient; | 
|---|
|  |  |  | import org.springframework.web.bind.annotation.GetMapping; | 
|---|
|  |  |  | import org.springframework.web.bind.annotation.PathVariable; | 
|---|
|  |  |  | import org.springframework.web.bind.annotation.PostMapping; | 
|---|
|  |  |  | import org.springframework.web.bind.annotation.RequestBody; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import java.util.List; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * @author zhibing.pu | 
|---|
|  |  |  | 
|---|
|  |  |  | * @param id | 
|---|
|  |  |  | * @return | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @PostMapping("/t-coupon/getCouponById") | 
|---|
|  |  |  | R<TCoupon> getCouponById(Integer id); | 
|---|
|  |  |  | @PostMapping("/t-coupon/getCouponById1/{id}") | 
|---|
|  |  |  | R<TCoupon> getCouponById1(@PathVariable("id") Integer id); | 
|---|
|  |  |  | @PostMapping("/t-coupon/getCouponIdsByName/{name}") | 
|---|
|  |  |  | R<List<Integer>> getCouponIdsByName(@PathVariable("name")String name); | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 修改优惠券 | 
|---|
|  |  |  | * @param coupon | 
|---|
|  |  |  | * @return | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @PostMapping("/t-coupon/updateCoupon") | 
|---|
|  |  |  | R updateCoupon(@RequestBody TCoupon coupon); | 
|---|
|  |  |  | } | 
|---|