|
@@ -2,6 +2,8 @@ package com.chelvc.cloud.maintain.controller;
|
|
|
|
|
|
import com.chelvc.cloud.maintain.copier.CouponCopier;
|
|
|
import com.chelvc.cloud.maintain.vo.CouponVO;
|
|
|
+import com.chelvc.cloud.vehicle.api.constant.CouponClaimType;
|
|
|
+import com.chelvc.cloud.vehicle.api.constant.CouponStatus;
|
|
|
import com.chelvc.cloud.vehicle.api.dto.CouponDTO;
|
|
|
import com.chelvc.cloud.vehicle.api.param.CouponModifyParam;
|
|
|
import com.chelvc.cloud.vehicle.api.param.CouponPagingParam;
|
|
@@ -120,16 +122,6 @@ public class CouponController {
|
|
|
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * 用户领取优惠券
|
|
|
- *
|
|
|
- * @param id 优惠券主键
|
|
|
- */
|
|
|
- @GetMapping("/coupon/{id}/claim")
|
|
|
- public void claimCoupon(@PathVariable("id") @Min(value = 1, message = "优惠券主键不能小于1") Long id) {
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
/**
|
|
|
* 查询可领取优惠券列表
|
|
|
*
|
|
@@ -138,7 +130,9 @@ public class CouponController {
|
|
|
*/
|
|
|
@GetMapping("/coupon/availablePaging")
|
|
|
public Pagination<CouponVO> getAvailableCouponPaging(@Valid CouponPagingParam param) {
|
|
|
- return null;
|
|
|
+ param.setCouponStatus(CouponStatus.ONLINE);
|
|
|
+ param.setCouponClaimType(CouponClaimType.FREE);
|
|
|
+ return this.getCouponPaging(param);
|
|
|
}
|
|
|
|
|
|
/**
|