【优化】优化代码

This commit is contained in:
痴货 2024-09-14 19:15:42 +08:00
parent c77a66967b
commit 0496ac237c
2 changed files with 10 additions and 6 deletions

View File

@ -75,7 +75,7 @@ public interface RewardActivityService {
/**
* 获取指定 spu 编号最近参加的活动每个 spuId 只返回一条记录
*
* @param spuIds spu 编号
* @param spuIds SPU 编号数组
* @param status 状态
* @param dateTime 当前日期时间
* @return 满减送活动列表

View File

@ -13,13 +13,13 @@ import java.util.List;
@Builder
public class AppTradeProductSettlementRespVO {
@Schema(description = "商品编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
@Schema(description = "spu 商品编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
private Long id;
@Schema(description = "满减活动对象", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
private Reward reward;
@Schema(description = "sku活动信息", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
@Schema(description = "sku 活动信息", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
private List<Sku> skus;
/**
@ -28,11 +28,13 @@ public class AppTradeProductSettlementRespVO {
@Data
@Builder
public static class Reward implements Serializable {
@Schema(description = "满减活动编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
private Long rewardId;
private Long id;
@Schema(description = "满减活动信息", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
private String rewardActivity;
}
/**
@ -41,19 +43,21 @@ public class AppTradeProductSettlementRespVO {
@Data
@Builder
public static class Sku implements Serializable {
@Schema(description = "商品 SKU 编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
private Long skuId;
@Schema(description = "价格", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
private Integer price;
@Schema(description = "营销类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") //PromotionTypeEnum
private Integer type;
@Schema(description = "营销类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
private Integer type; // 对应 PromotionTypeEnum 枚举
@Schema(description = "限时优惠id", requiredMode = Schema.RequiredMode.REQUIRED)
private Long discountId;
@Schema(description = "活动结束时间", requiredMode = Schema.RequiredMode.REQUIRED)
private LocalDateTime endTime;
}
}