- 开始添加casbin做角色,权限管理

This commit is contained in:
gazebo
2019-08-06 11:26:08 +08:00
parent 407844aa81
commit 438879ac4f
11 changed files with 427 additions and 0 deletions

10
business/authz/authz.go Normal file
View File

@@ -0,0 +1,10 @@
package authz
type IAuthz interface {
AddStoreRole4User(userID string, storeID int) (err error)
DelStoreRole4User(userID string, storeID int) (err error)
AddRole4User(userID, roleName string) (err error)
DelRole4User(userID, roleName string) (err error)
GetUserRoleList(userID string) (roleList []string, err error)
GetRoleUserList(roleName string) (userIDList []string, err error)
}