-
Notifications
You must be signed in to change notification settings - Fork 701
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
Showing
20 changed files
with
696 additions
and
132 deletions.
There are no files selected for viewing
55 changes: 55 additions & 0 deletions
55
saturn-console-api/src/main/java/com/vip/saturn/job/console/mybatis/entity/CommonFields.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,55 @@ | ||
package com.vip.saturn.job.console.mybatis.entity; | ||
|
||
import java.util.Date; | ||
|
||
/** | ||
* @author hebelala | ||
*/ | ||
public class CommonFields { | ||
|
||
private String createdBy; | ||
private Date createTime; | ||
private String lastUpdatedBy; | ||
private Date lastUpdateTime; | ||
private Boolean isDeleted; | ||
|
||
public String getCreatedBy() { | ||
return createdBy; | ||
} | ||
|
||
public void setCreatedBy(String createdBy) { | ||
this.createdBy = createdBy; | ||
} | ||
|
||
public Date getCreateTime() { | ||
return createTime; | ||
} | ||
|
||
public void setCreateTime(Date createTime) { | ||
this.createTime = createTime; | ||
} | ||
|
||
public String getLastUpdatedBy() { | ||
return lastUpdatedBy; | ||
} | ||
|
||
public void setLastUpdatedBy(String lastUpdatedBy) { | ||
this.lastUpdatedBy = lastUpdatedBy; | ||
} | ||
|
||
public Date getLastUpdateTime() { | ||
return lastUpdateTime; | ||
} | ||
|
||
public void setLastUpdateTime(Date lastUpdateTime) { | ||
this.lastUpdateTime = lastUpdateTime; | ||
} | ||
|
||
public Boolean getDeleted() { | ||
return isDeleted; | ||
} | ||
|
||
public void setDeleted(Boolean deleted) { | ||
isDeleted = deleted; | ||
} | ||
} |
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
44 changes: 44 additions & 0 deletions
44
...n-console-api/src/main/java/com/vip/saturn/job/console/mybatis/entity/RolePermission.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,44 @@ | ||
package com.vip.saturn.job.console.mybatis.entity; | ||
|
||
/** | ||
* @author hebelala | ||
*/ | ||
public class RolePermission extends CommonFields { | ||
|
||
private String roleKey; | ||
private String permissionKey; | ||
private Role role; | ||
private Permission permission; | ||
|
||
public String getRoleKey() { | ||
return roleKey; | ||
} | ||
|
||
public void setRoleKey(String roleKey) { | ||
this.roleKey = roleKey; | ||
} | ||
|
||
public String getPermissionKey() { | ||
return permissionKey; | ||
} | ||
|
||
public void setPermissionKey(String permissionKey) { | ||
this.permissionKey = permissionKey; | ||
} | ||
|
||
public Role getRole() { | ||
return role; | ||
} | ||
|
||
public void setRole(Role role) { | ||
this.role = role; | ||
} | ||
|
||
public Permission getPermission() { | ||
return permission; | ||
} | ||
|
||
public void setPermission(Permission permission) { | ||
this.permission = permission; | ||
} | ||
} |
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
59 changes: 59 additions & 0 deletions
59
saturn-console-api/src/main/java/com/vip/saturn/job/console/mybatis/entity/UserRole.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,59 @@ | ||
package com.vip.saturn.job.console.mybatis.entity; | ||
|
||
public class UserRole extends CommonFields { | ||
|
||
private String userName; | ||
private String roleKey; | ||
private String namespace; | ||
private Boolean approval; | ||
private User user; | ||
private Role role; | ||
|
||
public String getUserName() { | ||
return userName; | ||
} | ||
|
||
public void setUserName(String userName) { | ||
this.userName = userName; | ||
} | ||
|
||
public String getRoleKey() { | ||
return roleKey; | ||
} | ||
|
||
public void setRoleKey(String roleKey) { | ||
this.roleKey = roleKey; | ||
} | ||
|
||
public String getNamespace() { | ||
return namespace; | ||
} | ||
|
||
public void setNamespace(String namespace) { | ||
this.namespace = namespace; | ||
} | ||
|
||
public Boolean getApproval() { | ||
return approval; | ||
} | ||
|
||
public void setApproval(Boolean approval) { | ||
this.approval = approval; | ||
} | ||
|
||
public User getUser() { | ||
return user; | ||
} | ||
|
||
public void setUser(User user) { | ||
this.user = user; | ||
} | ||
|
||
public Role getRole() { | ||
return role; | ||
} | ||
|
||
public void setRole(Role role) { | ||
this.role = role; | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
...api/src/main/java/com/vip/saturn/job/console/mybatis/repository/PermissionRepository.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,20 @@ | ||
package com.vip.saturn.job.console.mybatis.repository; | ||
|
||
import com.vip.saturn.job.console.mybatis.entity.Permission; | ||
import org.springframework.stereotype.Repository; | ||
|
||
import java.util.List; | ||
|
||
/** | ||
* @author hebelala | ||
*/ | ||
@Repository | ||
public interface PermissionRepository { | ||
|
||
int insert(Permission permission); | ||
|
||
List<Permission> selectAll(); | ||
|
||
Permission selectByKey(String key); | ||
|
||
} |
20 changes: 20 additions & 0 deletions
20
...src/main/java/com/vip/saturn/job/console/mybatis/repository/RolePermissionRepository.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,20 @@ | ||
package com.vip.saturn.job.console.mybatis.repository; | ||
|
||
import com.vip.saturn.job.console.mybatis.entity.RolePermission; | ||
import org.springframework.stereotype.Repository; | ||
|
||
import java.util.List; | ||
|
||
/** | ||
* @author hebelala | ||
*/ | ||
@Repository | ||
public interface RolePermissionRepository { | ||
|
||
int insert(RolePermission rolePermission); | ||
|
||
List<RolePermission> selectAll(); | ||
|
||
List<RolePermission> selectByRoleKey(String roleKey); | ||
|
||
} |
20 changes: 20 additions & 0 deletions
20
...nsole-api/src/main/java/com/vip/saturn/job/console/mybatis/repository/RoleRepository.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,20 @@ | ||
package com.vip.saturn.job.console.mybatis.repository; | ||
|
||
import com.vip.saturn.job.console.mybatis.entity.Role; | ||
import org.springframework.stereotype.Repository; | ||
|
||
import java.util.List; | ||
|
||
/** | ||
* @author hebelala | ||
*/ | ||
@Repository | ||
public interface RoleRepository { | ||
|
||
int insert(Role role); | ||
|
||
List<Role> selectAll(); | ||
|
||
Role selectByKey(String key); | ||
|
||
} |
14 changes: 0 additions & 14 deletions
14
...onsole-api/src/main/java/com/vip/saturn/job/console/mybatis/repository/ShiroResitory.java
This file was deleted.
Oops, something went wrong.
24 changes: 24 additions & 0 deletions
24
...nsole-api/src/main/java/com/vip/saturn/job/console/mybatis/repository/UserRepository.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,24 @@ | ||
package com.vip.saturn.job.console.mybatis.repository; | ||
|
||
import com.vip.saturn.job.console.mybatis.entity.User; | ||
import org.springframework.stereotype.Repository; | ||
|
||
import java.util.List; | ||
|
||
/** | ||
* @author hebelala | ||
*/ | ||
@Repository | ||
public interface UserRepository { | ||
|
||
int insert(User user); | ||
|
||
int update(User user); | ||
|
||
List<User> selectAll(); | ||
|
||
User select(String name); | ||
|
||
User selectWithNotFilterDeleted(String name); | ||
|
||
} |
Oops, something went wrong.