UserVO.java 561 B

1234567891011121314151617181920212223242526
  1. package nju.seec.helper.vo;
  2. import lombok.Data;
  3. import lombok.NonNull;
  4. import nju.seec.helper.entity.User;
  5. import nju.seec.helper.util.enums.UserType;
  6. /**
  7. * @author cst
  8. */
  9. @Data
  10. public class UserVO {
  11. private Integer id;
  12. private String name;
  13. private String email;
  14. private String phone;
  15. private UserType type;
  16. public UserVO(@NonNull User user) {
  17. this.id = user.getId();
  18. this.name = user.getName();
  19. this.email = user.getEmail();
  20. this.phone = user.getPhone();
  21. this.type = user.getType();
  22. }
  23. }