use of com.ganster.cms.admin.dto.InformationObject in project Ganster-CMS by Gangster-trio.
the class InformationController method findInformation.
@GetMapping("/{UserId}")
public Message findInformation(@PathVariable("UserId") Integer userId) {
Message message = new Message();
InformationObject informationObject = new InformationObject();
User user = userService.selectByPrimaryKey(userId);
informationObject.setUserName(user.getUserName());
informationObject.setUserPhone(user.getUserPhone());
informationObject.setUserEmail(user.getUserEmail());
informationObject.setUserStatus(user.getUserStatus());
informationObject.setUserCreateTime(user.getUserCreateTime());
informationObject.setUserOrg(user.getUserOrg());
List<String> groupName = groupService.selectByUserId(userId).stream().map(group -> "<input type='text' disabled='disabled' value='" + group.getGroupName() + "'" + "class='layui-input'" + "/>").collect(Collectors.toList());
informationObject.setUserGroup(groupName);
message.setData(informationObject);
return message;
}
Aggregations