content: package cn.abel.user.models;
  
  
  import com.fasterxml.jackson.annotation.JsonIgnore;
  
  import java.io.Serializable;
  import java.util.List;
  
  public class User implements Serializable {
  
      private static final long serialVersionUID = -4523695542426439365L;
      private Integer id;
      private String cnname;
      private String username;
  
      @JsonIgnore
      private String password;
      private String email;
      private String mobilePhone;
  
  
      private List<Role> roles;
  
      public Integer getId() {
          return id;
      }
  
      public void setId(Integer id) {
          this.id = id;
      }
  
      public String getCnname() {
          return cnname;
      }
  
      public void setCnname(String cnname) {
          this.cnname = cnname;
      }
  
      public String getUsername() {
          return username;
      }
  
      public String getPassword() {
          return password;
      }
  
      public void setPassword(String password) {
          this.password = password;
      }
  
      public String getEmail() {
          return email;
      }
  
      public void setEmail(String email) {
          this.email = email;
      }
  
  
      public String getMobilePhone() {
          return mobilePhone;
      }
  
      public void setMobilePhone(String mobilePhone) {
          this.mobilePhone = mobilePhone;
      }
  
      public List<Role> getRoles() {
          return roles;
      }
  
      public void setRoles(List<Role> roles) {
          this.roles = roles;
      }
  
      @Override
      public String toString() {
          return "User{" +
                  "id=" + id +
                  ", cnname=" + cnname +
                  ", username=" + username +
                  ", password=" + password +
                  ", email=" + email +
                  ", mobilePhone=" + mobilePhone +
                  '}';
      }
  }