更新密码找回uniapp
This commit is contained in:
1 parent
7f9a66da0f
commit
3fdda89833
1304 files changed
+3503
-26132
No files matched your search
@@ -4,14 +4,6 @@ import (
|
||||
"github.com/beego/beego/v2/client/orm"
|
||||
)
|
||||
|
||||
// GetTenantAdminRole 返回全局「租户管理员」角色(cid=2, tenant_id=0)的 ID。
|
||||
//
|
||||
// 角色模型:租户端的「租户管理员 / 租户用户」为全局共用角色(tenant_id=0),
|
||||
// 所有租户共享同一批记录,由平台端角色管理统一维护;
|
||||
// 角色数据走 SQL(docs/sql/update_role_system.sql),代码不做自动补建。
|
||||
//
|
||||
// 租户的第一个账号即租户管理员,绑定此角色以获得 backend 全权限。
|
||||
// 任何失败返回 (0, err)。
|
||||
func GetTenantAdminRole() (uint64, error) {
|
||||
if Orm == nil {
|
||||
return 0, orm.ErrNoRows
|
||||
@@ -27,8 +19,6 @@ func GetTenantAdminRole() (uint64, error) {
|
||||
return role.ID, nil
|
||||
}
|
||||
|
||||
// GetTenantUserRole 返回全局「租户用户」角色(cid=2, tenant_id=0)的 ID。
|
||||
// 自助注册通过企业编码加入企业时默认绑定此角色(受限权限)。
|
||||
func GetTenantUserRole() (uint64, error) {
|
||||
if Orm == nil {
|
||||
return 0, orm.ErrNoRows
|
||||
|
||||
Reference in new issue
Block a user