package com.mindskip.xzs.viewmodel.admin.user; import com.mindskip.xzs.domain.User; import com.mindskip.xzs.domain.enums.DepartmentExamineEnum; import com.mindskip.xzs.domain.enums.UserConditionEnum; import com.mindskip.xzs.domain.enums.UserConditionExamineEnum; import com.mindskip.xzs.utility.DateTimeUtil; import com.mindskip.xzs.viewmodel.BaseVM; import java.util.List; public class UserResponseVM extends BaseVM { private Integer id; private String userUuid; private String userName; private String realName; private Integer age; private Integer role; private Integer sex; private String birthDay; private String phone; private String lastActiveTime; private String createTime; private String modifyTime; private Integer status; private Integer userLevel; private String imagePath; private String deptIds; private String deptNames; private List tagIds; private List tagNames; private UserConditionEnum condition; private String conditionDetail; private List deptIdList; private String password; private DepartmentExamineEnum departmentExamineResult; private UserConditionExamineEnum conditionExamineResult; public DepartmentExamineEnum getDepartmentExamineResult() { return departmentExamineResult; } public void setDepartmentExamineResult(DepartmentExamineEnum departmentExamineResult) { this.departmentExamineResult = departmentExamineResult; } public UserConditionExamineEnum getConditionExamineResult() { return conditionExamineResult; } public void setConditionExamineResult(UserConditionExamineEnum conditionExamineResult) { this.conditionExamineResult = conditionExamineResult; } public String getPassword() { return password; } public void setPassword(String password) { this.password = password; } public List getDeptIdList() { return deptIdList; } public void setDeptIdList(List deptIdList) { this.deptIdList = deptIdList; } public String getConditionDetail() { return conditionDetail; } public void setConditionDetail(String conditionDetail) { this.conditionDetail = conditionDetail; } public static UserResponseVM from(User user) { UserResponseVM vm = modelMapper.map(user, UserResponseVM.class); vm.setBirthDay(DateTimeUtil.dateFormat(user.getBirthDay())); vm.setLastActiveTime(DateTimeUtil.dateFormat(user.getLastActiveTime())); vm.setCreateTime(DateTimeUtil.dateFormat(user.getCreateTime())); vm.setModifyTime(DateTimeUtil.dateFormat(user.getModifyTime())); vm.setPassword(null); return vm; } public UserConditionEnum getCondition() { return condition; } public void setCondition(UserConditionEnum condition) { this.condition = condition; } public Integer getId() { return id; } public void setId(Integer id) { this.id = id; } public String getUserUuid() { return userUuid; } public void setUserUuid(String userUuid) { this.userUuid = userUuid; } public String getUserName() { return userName; } public void setUserName(String userName) { this.userName = userName; } public String getRealName() { return realName; } public void setRealName(String realName) { this.realName = realName; } public Integer getAge() { return age; } public void setAge(Integer age) { this.age = age; } public Integer getRole() { return role; } public void setRole(Integer role) { this.role = role; } public Integer getSex() { return sex; } public void setSex(Integer sex) { this.sex = sex; } public String getBirthDay() { return birthDay; } public void setBirthDay(String birthDay) { this.birthDay = birthDay; } public String getPhone() { return phone; } public void setPhone(String phone) { this.phone = phone; } public String getLastActiveTime() { return lastActiveTime; } public void setLastActiveTime(String lastActiveTime) { this.lastActiveTime = lastActiveTime; } public String getCreateTime() { return createTime; } public void setCreateTime(String createTime) { this.createTime = createTime; } public String getModifyTime() { return modifyTime; } public void setModifyTime(String modifyTime) { this.modifyTime = modifyTime; } public Integer getStatus() { return status; } public void setStatus(Integer status) { this.status = status; } public Integer getUserLevel() { return userLevel; } public void setUserLevel(Integer userLevel) { this.userLevel = userLevel; } public String getImagePath() { return imagePath; } public void setImagePath(String imagePath) { this.imagePath = imagePath; } public String getDeptIds() { return deptIds; } public void setDeptIds(String deptIds) { this.deptIds = deptIds; } public String getDeptNames() { return deptNames; } public void setDeptNames(String deptNames) { this.deptNames = deptNames; } public List getTagIds() { return tagIds; } public void setTagIds(List tagIds) { this.tagIds = tagIds; } public List getTagNames() { return tagNames; } public void setTagNames(List tagNames) { this.tagNames = tagNames; } }