From 0a9e89a052663fbaee67e59f7b070ad6b110df44 Mon Sep 17 00:00:00 2001
From: gongzuming <gongzuming>
Date: 星期二, 03 九月 2024 09:04:18 +0800
Subject: [PATCH] 当前用户积分

---
 src/main/java/com/mzl/flower/dto/request/menber/MemberDTO.java |   27 +++++++++++++++++++--------
 1 files changed, 19 insertions(+), 8 deletions(-)

diff --git a/src/main/java/com/mzl/flower/dto/request/menber/MemberDTO.java b/src/main/java/com/mzl/flower/dto/request/menber/MemberDTO.java
index 4f5fc92..c1c6724 100644
--- a/src/main/java/com/mzl/flower/dto/request/menber/MemberDTO.java
+++ b/src/main/java/com/mzl/flower/dto/request/menber/MemberDTO.java
@@ -3,6 +3,7 @@
 import io.swagger.annotations.ApiModelProperty;
 import lombok.Data;
 
+import javax.validation.constraints.NotNull;
 import java.math.BigDecimal;
 
 @Data
@@ -11,29 +12,39 @@
     private Long id;
 
     @ApiModelProperty("会员等级名称")
-    private String levelName;
+    @NotNull
+    private String name;
 
-    @ApiModelProperty("该等级所需的最低成长值")
-    private int minGrowthValue;
+    @ApiModelProperty("成长点-区间-开始")
+    @NotNull
+    private int startPoint;
 
-    @ApiModelProperty("该等级所需的最高成长值")
-    private int maxGrowthValue;
+    @ApiModelProperty("成长点-区间-结束")
+    @NotNull
+    private int endPoint;
 
     @ApiModelProperty("会员折扣类型(百分比、固定金额)")
-    private int discountType;
+    @NotNull
+    private String discountType;
 
     @ApiModelProperty("会员折扣百分比")
+    @NotNull
     private BigDecimal discountRatio;
 
     @ApiModelProperty("会员折扣固定金额")
+    @NotNull
     private BigDecimal discountAmount;
 
     @ApiModelProperty("消费金额(元)")
+    @NotNull
     private int consumptionAmount;
 
     @ApiModelProperty("已消费产生的成长值")
-    private int upGrowthValue;
+    @NotNull
+    private int growthValue;
 
     @ApiModelProperty("未消费产生的下降值")
-    private int downGrowthValue;
+    @NotNull
+    private int downgradeValue;
+
 }

--
Gitblit v1.9.3