-
Notifications
You must be signed in to change notification settings - Fork 34
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
25 changed files
with
660 additions
and
53 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
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
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
36 changes: 36 additions & 0 deletions
36
security/src/main/java/com/tuacy/security/entity/model/RoleDetailBo.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,36 @@ | ||
package com.tuacy.security.entity.model; | ||
|
||
import org.springframework.security.core.GrantedAuthority; | ||
|
||
/** | ||
* @name: RoleDetailBo | ||
* @author: tuacy. | ||
* @date: 2019/12/2. | ||
* @version: 1.0 | ||
* @Description: | ||
*/ | ||
public class RoleDetailBo implements GrantedAuthority { | ||
private String id; | ||
private String name; | ||
|
||
public String getId() { | ||
return id; | ||
} | ||
|
||
public void setId(String id) { | ||
this.id = id; | ||
} | ||
|
||
public String getName() { | ||
return name; | ||
} | ||
|
||
public void setName(String name) { | ||
this.name = name; | ||
} | ||
|
||
@Override | ||
public String getAuthority() { | ||
return name; | ||
} | ||
} |
31 changes: 31 additions & 0 deletions
31
security/src/main/java/com/tuacy/security/entity/model/RolePermisson.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,31 @@ | ||
package com.tuacy.security.entity.model; | ||
|
||
/** | ||
* @name: RolePermisson | ||
* @author: tuacy. | ||
* @date: 2019/12/2. | ||
* @version: 1.0 | ||
* @Description: | ||
*/ | ||
public class RolePermisson { | ||
|
||
private String url; | ||
private String roleName; | ||
|
||
public String getUrl() { | ||
return url; | ||
} | ||
|
||
public void setUrl(String url) { | ||
this.url = url; | ||
} | ||
|
||
public String getRoleName() { | ||
return roleName; | ||
} | ||
|
||
public void setRoleName(String roleName) { | ||
this.roleName = roleName; | ||
} | ||
|
||
} |
19 changes: 19 additions & 0 deletions
19
security/src/main/java/com/tuacy/security/mapper/PermissionMapper.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,19 @@ | ||
package com.tuacy.security.mapper; | ||
|
||
import com.tuacy.security.entity.model.RolePermisson; | ||
|
||
import java.util.List; | ||
|
||
/** | ||
* @name: UserManageMapper | ||
* @author: tuacy. | ||
* @date: 2019/11/28. | ||
* @version: 1.0 | ||
* @Description: | ||
*/ | ||
public interface PermissionMapper { | ||
|
||
|
||
List<RolePermisson> getRolePermissions(); | ||
|
||
} |
19 changes: 19 additions & 0 deletions
19
security/src/main/java/com/tuacy/security/mapper/RoleMapper.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,19 @@ | ||
package com.tuacy.security.mapper; | ||
|
||
import com.tuacy.security.entity.model.RoleDetailBo; | ||
import org.apache.ibatis.annotations.Param; | ||
|
||
import java.util.List; | ||
|
||
/** | ||
* @name: RoleMapper | ||
* @author: tuacy. | ||
* @date: 2019/12/2. | ||
* @version: 1.0 | ||
* @Description: | ||
*/ | ||
public interface RoleMapper { | ||
|
||
List<RoleDetailBo> getRolesByUserId(@Param("userId") Long userId); | ||
|
||
} |
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
Oops, something went wrong.