📄 user.java
字号:
/*
* Created on 2005-1-27
*
* TODO To change the template for this generated file go to
* Window - Preferences - Java - Code Style - Code Templates
*/
package com.book.domain;
/**
* @author Administrator
*
* TODO To change the template for this generated type comment go to Window -
* Preferences - Java - Code Style - Code Templates
*/
public class User {
// String 登录用户名
private String username = "";
// String 口令
private String password = "";
// String 权限 管理员:A 普通用户:R
private String authority = "";
public User() {
}
public User(String username, String password, String authority) {
//super();
// TODO Auto-generated constructor stub
this.username = username;
this.password = password;
this.authority = authority;
}
/**
* @return Returns the authority.
*/
public String getAuthority() {
return authority;
}
/**
* @param authority
* The authority to set.
*/
public void setAuthority(String authority) {
this.authority = authority;
}
/**
* @return Returns the password.
*/
public String getPassword() {
return password;
}
/**
* @param password
* The password to set.
*/
public void setPassword(String password) {
this.password = password;
}
/**
* @return Returns the username.
*/
public String getUsername() {
return username;
}
/**
* @param username
* The username to set.
*/
public void setUsername(String username) {
this.username = username;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -