mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2024-11-22 15:21:53 +08:00
【优化】优化代码
This commit is contained in:
parent
c77a66967b
commit
0496ac237c
@ -75,7 +75,7 @@ public interface RewardActivityService {
|
||||
/**
|
||||
* 获取指定 spu 编号最近参加的活动,每个 spuId 只返回一条记录
|
||||
*
|
||||
* @param spuIds spu 编号
|
||||
* @param spuIds SPU 编号数组
|
||||
* @param status 状态
|
||||
* @param dateTime 当前日期时间
|
||||
* @return 满减送活动列表
|
||||
|
@ -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;
|
||||
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user