mirror of
https://gitee.com/XM-GO/PandaX.git
synced 2026-04-23 02:48:34 +08:00
@@ -1,10 +1,5 @@
|
||||
package api
|
||||
|
||||
/**
|
||||
* @Description
|
||||
* @Author 熊猫
|
||||
* @Date 2022/7/14 17:55
|
||||
**/
|
||||
import (
|
||||
"pandax/apps/system/entity"
|
||||
"pandax/apps/system/services"
|
||||
@@ -70,8 +65,5 @@ func (p *SysTenantsApi) DeleteSysTenants(rc *restfulx.ReqCtx) {
|
||||
|
||||
// IsTenantAdmin 是否为主租户
|
||||
func IsTenantAdmin(tenantId int64) bool {
|
||||
if tenantId == 1 {
|
||||
return true
|
||||
}
|
||||
return false
|
||||
return tenantId == 1
|
||||
}
|
||||
|
||||
@@ -344,10 +344,7 @@ func (u *UserApi) ExportUser(rc *restfulx.ReqCtx) {
|
||||
// Build 构建前端路由
|
||||
func Build(menus []entity.SysMenu) []vo.RouterVo {
|
||||
equals := func(a string, b string) bool {
|
||||
if a == b {
|
||||
return true
|
||||
}
|
||||
return false
|
||||
return a == b
|
||||
}
|
||||
rvs := make([]vo.RouterVo, 0)
|
||||
for _, ms := range menus {
|
||||
|
||||
Reference in New Issue
Block a user