forked from zhengwei223/web2017
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fc995d7
commit 0f2a4ae
Showing
10 changed files
with
852 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
188 changes: 188 additions & 0 deletions
188
rbac-api/src/main/java/org/lanqiao/rbac/entity/Account.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,188 @@ | ||
package org.lanqiao.rbac.entity; | ||
|
||
import java.util.Date; | ||
|
||
@Table(name = "rbac_account") | ||
public class Account { | ||
@Id | ||
@GeneratedValue(strategy = GenerationType.IDENTITY) | ||
private Integer id; | ||
|
||
/** | ||
* 用户信息id | ||
*/ | ||
@Column(name = "user_profile_id") | ||
private Integer userProfileId; | ||
|
||
/** | ||
* 账户标识 | ||
*/ | ||
private String account; | ||
|
||
private String password; | ||
|
||
/** | ||
* 账户类型:邮箱,手机,微信,qq | ||
*/ | ||
private Short type; | ||
|
||
@Column(name = "login_time") | ||
private Date loginTime; | ||
|
||
@Column(name = "last_login_time") | ||
private Date lastLoginTime; | ||
|
||
@Column(name = "gmt_create") | ||
private Date gmtCreate; | ||
|
||
@Column(name = "gmt_modified") | ||
private Date gmtModified; | ||
@Column(name="token") | ||
private String token; | ||
|
||
/** | ||
* @return id | ||
*/ | ||
public Integer getId() { | ||
return id; | ||
} | ||
|
||
/** | ||
* @param id | ||
*/ | ||
public void setId(Integer id) { | ||
this.id = id; | ||
} | ||
|
||
/** | ||
* 获取用户信息id | ||
* | ||
* @return user_profile_id - 用户信息id | ||
*/ | ||
public Integer getUserProfileId() { | ||
return userProfileId; | ||
} | ||
|
||
/** | ||
* 设置用户信息id | ||
* | ||
* @param userProfileId 用户信息id | ||
*/ | ||
public void setUserProfileId(Integer userProfileId) { | ||
this.userProfileId = userProfileId; | ||
} | ||
|
||
/** | ||
* 获取账户标识 | ||
* | ||
* @return account - 账户标识 | ||
*/ | ||
public String getAccount() { | ||
return account; | ||
} | ||
|
||
/** | ||
* 设置账户标识 | ||
* | ||
* @param account 账户标识 | ||
*/ | ||
public void setAccount(String account) { | ||
this.account = account == null ? null : account.trim(); | ||
} | ||
|
||
/** | ||
* @return password | ||
*/ | ||
public String getPassword() { | ||
return password; | ||
} | ||
|
||
/** | ||
* @param password | ||
*/ | ||
public void setPassword(String password) { | ||
this.password = password == null ? null : password.trim(); | ||
} | ||
|
||
/** | ||
* 获取账户类型:邮箱,手机,微信,qq | ||
* | ||
* @return type - 账户类型:邮箱,手机,微信,qq | ||
*/ | ||
public Short getType() { | ||
return type; | ||
} | ||
|
||
/** | ||
* 设置账户类型:邮箱,手机,微信,qq | ||
* | ||
* @param type 账户类型:邮箱,手机,微信,qq | ||
*/ | ||
public void setType(Short type) { | ||
this.type = type; | ||
} | ||
|
||
/** | ||
* @return login_time | ||
*/ | ||
public Date getLoginTime() { | ||
return loginTime; | ||
} | ||
|
||
/** | ||
* @param loginTime | ||
*/ | ||
public void setLoginTime(Date loginTime) { | ||
this.loginTime = loginTime; | ||
} | ||
|
||
/** | ||
* @return last_login_time | ||
*/ | ||
public Date getLastLoginTime() { | ||
return lastLoginTime; | ||
} | ||
|
||
/** | ||
* @param lastLoginTime | ||
*/ | ||
public void setLastLoginTime(Date lastLoginTime) { | ||
this.lastLoginTime = lastLoginTime; | ||
} | ||
|
||
/** | ||
* @return gmt_create | ||
*/ | ||
public Date getGmtCreate() { | ||
return gmtCreate; | ||
} | ||
|
||
/** | ||
* @param gmtCreate | ||
*/ | ||
public void setGmtCreate(Date gmtCreate) { | ||
this.gmtCreate = gmtCreate; | ||
} | ||
|
||
/** | ||
* @return gmt_modified | ||
*/ | ||
public Date getGmtModified() { | ||
return gmtModified; | ||
} | ||
|
||
/** | ||
* @param gmtModified | ||
*/ | ||
public void setGmtModified(Date gmtModified) { | ||
this.gmtModified = gmtModified; | ||
} | ||
|
||
public String getToken() { | ||
return this.token; | ||
} | ||
|
||
public void setToken(String token) { | ||
this.token = token; | ||
} | ||
} |
122 changes: 122 additions & 0 deletions
122
rbac-api/src/main/java/org/lanqiao/rbac/entity/Log.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,122 @@ | ||
package org.lanqiao.rbac.entity; | ||
|
||
import java.util.Date; | ||
|
||
@Table(name = "rbac_log") | ||
public class Log { | ||
@Id | ||
@GeneratedValue(strategy = GenerationType.IDENTITY) | ||
private Integer id; | ||
|
||
@Column(name = "user_id") | ||
private Integer userId; | ||
|
||
/** | ||
* 操作类型 | ||
*/ | ||
@Column(name = "opt_type") | ||
private Byte optType; | ||
|
||
/** | ||
* 记录内容 | ||
*/ | ||
private String content; | ||
|
||
@Column(name = "gmt_created") | ||
private Date gmtCreated; | ||
|
||
@Column(name = "gmt_modified") | ||
private Date gmtModified; | ||
|
||
/** | ||
* @return id | ||
*/ | ||
public Integer getId() { | ||
return id; | ||
} | ||
|
||
/** | ||
* @param id | ||
*/ | ||
public void setId(Integer id) { | ||
this.id = id; | ||
} | ||
|
||
/** | ||
* @return user_id | ||
*/ | ||
public Integer getUserId() { | ||
return userId; | ||
} | ||
|
||
/** | ||
* @param userId | ||
*/ | ||
public void setUserId(Integer userId) { | ||
this.userId = userId; | ||
} | ||
|
||
/** | ||
* 获取操作类型 | ||
* | ||
* @return opt_type - 操作类型 | ||
*/ | ||
public Byte getOptType() { | ||
return optType; | ||
} | ||
|
||
/** | ||
* 设置操作类型 | ||
* | ||
* @param optType 操作类型 | ||
*/ | ||
public void setOptType(Byte optType) { | ||
this.optType = optType; | ||
} | ||
|
||
/** | ||
* 获取记录内容 | ||
* | ||
* @return content - 记录内容 | ||
*/ | ||
public String getContent() { | ||
return content; | ||
} | ||
|
||
/** | ||
* 设置记录内容 | ||
* | ||
* @param content 记录内容 | ||
*/ | ||
public void setContent(String content) { | ||
this.content = content == null ? null : content.trim(); | ||
} | ||
|
||
/** | ||
* @return gmt_created | ||
*/ | ||
public Date getGmtCreated() { | ||
return gmtCreated; | ||
} | ||
|
||
/** | ||
* @param gmtCreated | ||
*/ | ||
public void setGmtCreated(Date gmtCreated) { | ||
this.gmtCreated = gmtCreated; | ||
} | ||
|
||
/** | ||
* @return gmt_modified | ||
*/ | ||
public Date getGmtModified() { | ||
return gmtModified; | ||
} | ||
|
||
/** | ||
* @param gmtModified | ||
*/ | ||
public void setGmtModified(Date gmtModified) { | ||
this.gmtModified = gmtModified; | ||
} | ||
} |
Oops, something went wrong.