add casbin rbac

This commit is contained in:
landaiqing
2024-08-23 11:36:41 +08:00
parent e0f0c4c466
commit 014abca8f8
17 changed files with 210 additions and 11 deletions

View File

@@ -229,7 +229,7 @@ func wechatLoginHandler(openId string, clientId string) bool {
return false
}
userRole := model.ScaAuthUserRole{
UserID: addUser.ID,
UserID: uidStr,
RoleID: enum.User,
}
e := userRoleService.AddUserRole(userRole)