package com.writeoff.module.system.model;

public class SystemUser {
    private Long id;
    private String userName;
    private String phone;
    private String email;
    private String status;
    private String validFrom;
    private String validTo;
    private String roleCodes;
    private String roleNames;
    private boolean deleted;

    public SystemUser(Long id, String userName, String phone, String email, String status, String validFrom, String validTo) {
        this(id, userName, phone, email, status, validFrom, validTo, "", "");
    }

    public SystemUser(Long id, String userName, String phone, String email, String status, String validFrom, String validTo, String roleCodes, String roleNames) {
        this(id, userName, phone, email, status, validFrom, validTo, roleCodes, roleNames, false);
    }

    public SystemUser(Long id, String userName, String phone, String email, String status, String validFrom, String validTo, String roleCodes, String roleNames, boolean deleted) {
        this.id = id;
        this.userName = userName;
        this.phone = phone;
        this.email = email;
        this.status = status;
        this.validFrom = validFrom;
        this.validTo = validTo;
        this.roleCodes = roleCodes;
        this.roleNames = roleNames;
        this.deleted = deleted;
    }

    public Long getId() {
        return id;
    }

    public String getUserName() {
        return userName;
    }

    public String getPhone() {
        return phone;
    }

    public String getEmail() {
        return email;
    }

    public String getStatus() {
        return status;
    }

    public String getValidFrom() {
        return validFrom;
    }

    public String getValidTo() {
        return validTo;
    }

    public String getRoleCodes() {
        return roleCodes;
    }

    public String getRoleNames() {
        return roleNames;
    }

    public boolean isDeleted() {
        return deleted;
    }
}
