Skip to content

Commit

Permalink
尝试分模块
Browse files Browse the repository at this point in the history
  • Loading branch information
lanqiao2016 committed Sep 2, 2017
1 parent fc995d7 commit 0f2a4ae
Show file tree
Hide file tree
Showing 10 changed files with 852 additions and 3 deletions.
3 changes: 2 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,11 @@
</licenses>
<modules>
<module>rbac-service</module>
<module>sso-service</module>
<module>http-rest-demo</module>
<module>commons</module>
<module>showcase</module>
<module>rbac-api</module>
<module>rbac-web</module>
<!--<module>ssm-xml-crud</module>-->
</modules>

Expand Down
4 changes: 2 additions & 2 deletions sso-service/pom.xml → rbac-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
<groupId>org.lanqiao</groupId>
<version>1.0-SNAPSHOT</version>
</parent>

<modelVersion>4.0.0</modelVersion>
<artifactId>sso-service</artifactId>

<artifactId>rbac-api</artifactId>
<packaging>jar</packaging>

</project>
188 changes: 188 additions & 0 deletions rbac-api/src/main/java/org/lanqiao/rbac/entity/Account.java
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 rbac-api/src/main/java/org/lanqiao/rbac/entity/Log.java
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;
}
}
Loading

0 comments on commit 0f2a4ae

Please sign in to comment.