From 2881ddf3a26f00537f40103e6131a3915e66c5c1 Mon Sep 17 00:00:00 2001
From: Helius <wangdoubleone@gmail.com>
Date: Mon, 25 Jan 2021 15:41:56 +0800
Subject: [PATCH] modify
---
zq-erp/src/main/java/com/matrix/system/app/dto/AddVipDto.java | 25 ++++++++++++++++++++++++-
1 files changed, 24 insertions(+), 1 deletions(-)
diff --git a/zq-erp/src/main/java/com/matrix/system/app/dto/AddVipDto.java b/zq-erp/src/main/java/com/matrix/system/app/dto/AddVipDto.java
index 901729b..cbacf14 100644
--- a/zq-erp/src/main/java/com/matrix/system/app/dto/AddVipDto.java
+++ b/zq-erp/src/main/java/com/matrix/system/app/dto/AddVipDto.java
@@ -4,6 +4,7 @@
import com.matrix.core.tools.DateUtil;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
+import org.hibernate.validator.constraints.Length;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
@@ -16,8 +17,10 @@
**/
@ApiModel(value = "AddVipDto", description = "添加会员接收参数类")
public class AddVipDto {
+ @ApiModelProperty(value = "头像")
+ private String photo;
- @NotBlank(message = "会员编号不能为空")
+ @Length(max = 10, min = 1)
@ApiModelProperty(value = "会员编号")
private String vipNo;
@@ -37,6 +40,10 @@
@ApiModelProperty(value = "生日")
@JsonFormat(pattern = DateUtil.DATE_FORMAT_DD, timezone = "GMT+8")
private Date birthday;
+
+ @Length(max = 6,message = "资金密码为6位数")
+ @ApiModelProperty(value = "资金密码", example = "123456")
+ private String password;
@ApiModelProperty(value = "省市区", example = "湖南省,长沙市,岳麓区")
private String areas;
@@ -143,4 +150,20 @@
public void setLabels(List<String> labels) {
this.labels = labels;
}
+
+ public String getPassword() {
+ return password;
+ }
+
+ public void setPassword(String password) {
+ this.password = password;
+ }
+
+ public String getPhoto() {
+ return photo;
+ }
+
+ public void setPhoto(String photo) {
+ this.photo = photo;
+ }
}
--
Gitblit v1.9.1