/**
|
* Copyright 2018-2020 stylefeng & fengshuonan (https://gitee.com/stylefeng)
|
* <p>
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
* you may not use this file except in compliance with the License.
|
* You may obtain a copy of the License at
|
* <p>
|
* http://www.apache.org/licenses/LICENSE-2.0
|
* <p>
|
* Unless required by applicable law or agreed to in writing, software
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
* See the License for the specific language governing permissions and
|
* limitations under the License.
|
*/
|
package cn.stylefeng.guns.sys.modular.system.model;
|
|
import lombok.Data;
|
import org.springframework.format.annotation.DateTimeFormat;
|
|
import javax.validation.constraints.NotBlank;
|
import javax.validation.constraints.NotNull;
|
import java.util.Date;
|
|
/**
|
* 用户传输bean
|
*
|
* @author stylefeng
|
* @Date 2017/5/5 22:40
|
*/
|
@Data
|
public class UserDto {
|
|
private Long userId;
|
|
@NotBlank
|
private String account;
|
|
@NotBlank
|
private String password;
|
|
public Long getUserId() {
|
return userId;
|
}
|
|
public void setUserId(Long userId) {
|
this.userId = userId;
|
}
|
|
public String getAccount() {
|
return account;
|
}
|
|
public void setAccount(String account) {
|
this.account = account;
|
}
|
|
public String getPassword() {
|
return password;
|
}
|
|
public void setPassword(String password) {
|
this.password = password;
|
}
|
|
public String getName() {
|
return name;
|
}
|
|
public void setName(String name) {
|
this.name = name;
|
}
|
|
public Date getBirthday() {
|
return birthday;
|
}
|
|
public void setBirthday(Date birthday) {
|
this.birthday = birthday;
|
}
|
|
public String getSex() {
|
return sex;
|
}
|
|
public void setSex(String sex) {
|
this.sex = sex;
|
}
|
|
public String getEmail() {
|
return email;
|
}
|
|
public void setEmail(String email) {
|
this.email = email;
|
}
|
|
public String getPhone() {
|
return phone;
|
}
|
|
public void setPhone(String phone) {
|
this.phone = phone;
|
}
|
|
public String getRoleId() {
|
return roleId;
|
}
|
|
public void setRoleId(String roleId) {
|
this.roleId = roleId;
|
}
|
|
public Long getDeptId() {
|
return deptId;
|
}
|
|
public void setDeptId(Long deptId) {
|
this.deptId = deptId;
|
}
|
|
public String getStatus() {
|
return status;
|
}
|
|
public void setStatus(String status) {
|
this.status = status;
|
}
|
|
public String getAvatar() {
|
return avatar;
|
}
|
|
public void setAvatar(String avatar) {
|
this.avatar = avatar;
|
}
|
|
public String getPosition() {
|
return position;
|
}
|
|
public void setPosition(String position) {
|
this.position = position;
|
}
|
|
@NotBlank
|
private String name;
|
|
@DateTimeFormat(pattern = "yyyy-MM-dd")
|
private Date birthday;
|
|
private String sex;
|
|
// @NotBlank
|
private String email;
|
|
private String phone;
|
|
private String roleId;
|
|
@NotNull
|
private Long deptId;
|
|
private String status;
|
|
private String avatar;
|
|
@NotBlank
|
private String position;
|
|
}
|