| | |
| | | import com.mzl.flower.dto.response.coupon.CouponTemplatePointVO; |
| | | import com.mzl.flower.dto.response.coupon.CouponTemplateVO; |
| | | import com.mzl.flower.entity.coupon.CouponTemplateDO; |
| | | import com.mzl.flower.enums.CouponCategoryEnum; |
| | | import com.mzl.flower.enums.CouponGetUserTypeEnum; |
| | | import com.mzl.flower.enums.CouponTypeEnum; |
| | | import com.mzl.flower.enums.CouponUsageTypeEnum; |
| | | import com.mzl.flower.enums.*; |
| | | import com.mzl.flower.service.coupon.CouponTemplateService2; |
| | | import com.mzl.flower.utils.ConverterUtil; |
| | | import io.swagger.annotations.Api; |
| | |
| | | throw new ValidationException("领取后有效时间整数需要大于0"); |
| | | } |
| | | } |
| | | |
| | | // 用户获取的类型是首页领取的话 |
| | | if(StringUtils.isNotBlank(dto.getGetType()) && dto.getGetType().equals(dto.getGetType().equals(CouponGetTypeEnum.HOME.getType())) |
| | | ){ |
| | | // 优惠券图片校验 |
| | | if(StringUtils.isBlank(dto.getImageUrl())){ |
| | | throw new ValidationException("优惠券图片不能为空"); |
| | | } |
| | | } |
| | | |
| | | } |
| | | |
| | | } |