From e72ab00dc418e3179e5c3ba3076d5fa6f5ef6931 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E7=9A=93=E9=9B=AF?= <18868469283@qq.com> Date: Fri, 11 Jan 2019 20:08:37 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=A8=E6=88=B7=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/sock/mall/dto/UmsAdminLoginParam.java | 32 +++++++++++++++++++ .../java/com/sock/mall/dto/UmsAdminParam.java | 30 +++++++++++++++++ 2 files changed, 62 insertions(+) create mode 100644 代码库/mall-admin/src/main/java/com/sock/mall/dto/UmsAdminLoginParam.java create mode 100644 代码库/mall-admin/src/main/java/com/sock/mall/dto/UmsAdminParam.java diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/dto/UmsAdminLoginParam.java b/代码库/mall-admin/src/main/java/com/sock/mall/dto/UmsAdminLoginParam.java new file mode 100644 index 0000000..10a1fa1 --- /dev/null +++ b/代码库/mall-admin/src/main/java/com/sock/mall/dto/UmsAdminLoginParam.java @@ -0,0 +1,32 @@ +package com.macro.mall.dto; + +import io.swagger.annotations.ApiModelProperty; +import org.hibernate.validator.constraints.NotEmpty; + +/** + * û¼ + */ +public class UmsAdminLoginParam { + @ApiModelProperty(value = "û", required = true) + @NotEmpty(message = "ûΪ") + private String username; + @ApiModelProperty(value = "", required = true) + @NotEmpty(message = "벻Ϊ") + private String password; + + public String getUsername() { + return username; + } + + public void setUsername(String username) { + this.username = username; + } + + public String getPassword() { + return password; + } + + public void setPassword(String password) { + this.password = password; + } +} diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/dto/UmsAdminParam.java b/代码库/mall-admin/src/main/java/com/sock/mall/dto/UmsAdminParam.java new file mode 100644 index 0000000..ab39b5d --- /dev/null +++ b/代码库/mall-admin/src/main/java/com/sock/mall/dto/UmsAdminParam.java @@ -0,0 +1,30 @@ +package com.macro.mall.dto; + +import io.swagger.annotations.ApiModelProperty; +import lombok.Getter; +import lombok.Setter; +import org.hibernate.validator.constraints.Email; +import org.hibernate.validator.constraints.NotEmpty; + +/** + * û¼ + */ +@Getter +@Setter +public class UmsAdminParam { + @ApiModelProperty(value = "û", required = true) + @NotEmpty(message = "ûΪ") + private String username; + @ApiModelProperty(value = "", required = true) + @NotEmpty(message = "벻Ϊ") + private String password; + @ApiModelProperty(value = "ûͷ") + private String icon; + @ApiModelProperty(value = "") + @Email(message = "ʽϷ") + private String email; + @ApiModelProperty(value = "ûdz") + private String nickName; + @ApiModelProperty(value = "ע") + private String note; +}