|  |  |  | 
|---|
|  |  |  | * */ | 
|---|
|  |  |  | public static final String EMAIL_INVALID = "-3"; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | private String code; | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public static AccountUpdateVO convert(AccountUpdateDTO dto){ | 
|---|
|  |  |  | AccountUpdateVO vo = new AccountUpdateVO(); | 
|---|
|  |  |  | if(dto.getCode()== AccountUpdateDTO.SUCCESS){ | 
|---|
|  |  |  | 
|---|
|  |  |  | String email = dto.getAccount().getEmail(); | 
|---|
|  |  |  | String mobile = dto.getAccount().getMobile(); | 
|---|
|  |  |  | String wechat = dto.getAccount().getWechat(); | 
|---|
|  |  |  | String isDelete = dto.getAccount().getIsDelete(); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | //转换成角色名集合 | 
|---|
|  |  |  | List<ManageRole> roles = dto.getRoles(); | 
|---|
|  |  |  | 
|---|
|  |  |  | vo.setEmail(email); | 
|---|
|  |  |  | vo.setMobile(mobile); | 
|---|
|  |  |  | vo.setWechat(wechat); | 
|---|
|  |  |  | vo.setIsDelete(isDelete); | 
|---|
|  |  |  | vo.setRoleNames(roleNames); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|