| | |
| | | |
| | | |
| | | import com.xiaopeng.api.factory.operation.XpCouponClientFallbackFactory; |
| | | import com.xiaopeng.api.model.operation.XpActicityStrategy; |
| | | import com.xiaopeng.api.model.operation.XpActivity; |
| | | import com.xiaopeng.common.core.domain.R; |
| | | import com.xiaopeng.common.core.dto.ServiceNameConstantsEnum; |
| | | import org.springframework.cloud.openfeign.FeignClient; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | |
| | |
| | | |
| | | @PostMapping("/logan/inner/acticity/findListToIds") |
| | | R<List<String>> findListToIds(@RequestParam("acticityName") String acticityName); |
| | | |
| | | |
| | | |
| | | /** |
| | | * 根据活动id和优惠券id获取活动策略 |
| | | * @param activityId |
| | | * @param couponId |
| | | * @return |
| | | */ |
| | | @PostMapping("/logan/inner/acticity/getXpActicityStrategy") |
| | | R<XpActicityStrategy> getXpActicityStrategy(@RequestParam("activityId") Long activityId, @RequestParam("couponId") Long couponId); |
| | | |
| | | |
| | | /** |
| | | * 获取当前所有有效活动 |
| | | * @return |
| | | */ |
| | | @GetMapping("/logan/inner/acticity/getAllEffectiveActivity") |
| | | R<List<XpActivity>> getAllEffectiveActivity(); |
| | | |
| | | } |