优惠券:完善APP优惠券查询接口

This commit is contained in:
owen
2023-09-26 20:44:22 +08:00
parent a431bccc02
commit 0a3a6825d5
17 changed files with 169 additions and 106 deletions

View File

@ -68,7 +68,7 @@ public class RewardActivityMatchRespDTO {
*/
private List<Long> couponIds;
/**
* 赠送的优惠数量的数组
* 赠送的优惠数量的数组
*/
private List<Integer> couponCounts;

View File

@ -15,9 +15,9 @@ import java.util.Arrays;
@AllArgsConstructor
public enum PromotionProductScopeEnum implements IntArrayValuable {
ALL(1, "通用"), // 全部商品
SPU(2, "商品"), // 指定商品
CATEGORY(3, "品类"), // 指定
ALL(1, "通用"), // 全部商品
SPU(2, "商品"), // 指定商品
CATEGORY(3, "品类"), // 指定品
;
public static final int[] ARRAYS = Arrays.stream(values()).mapToInt(PromotionProductScopeEnum::getScope).toArray();