mirror of
https://gitee.com/XM-GO/PandaX.git
synced 2026-04-27 07:09:36 +08:00
【新增】部门岗位租户功能
This commit is contained in:
@@ -113,3 +113,11 @@ func (p *SysTenantsApi) DeleteSysTenants(rc *ctx.ReqCtx) {
|
||||
tenantIds := utils.IdsStrToIdsIntGroup(tenantId)
|
||||
p.SysTenantsApp.Delete(tenantIds)
|
||||
}
|
||||
|
||||
// IsTenantAdmin 是否为主租户
|
||||
func IsTenantAdmin(tenantId int64) bool {
|
||||
if tenantId == 1 {
|
||||
return true
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user