| 1234567891011121314151617181920212223242526 |
- package nju.seec.helper.vo;
- import lombok.Data;
- import lombok.NonNull;
- import nju.seec.helper.entity.User;
- import nju.seec.helper.util.enums.UserType;
- /**
- * @author cst
- */
- @Data
- public class UserVO {
- private Integer id;
- private String name;
- private String email;
- private String phone;
- private UserType type;
- public UserVO(@NonNull User user) {
- this.id = user.getId();
- this.name = user.getName();
- this.email = user.getEmail();
- this.phone = user.getPhone();
- this.type = user.getType();
- }
- }
|