feat(platform-ops): 增加平台只读统计接口与超管入口
This commit is contained in:
@@ -5,6 +5,7 @@ import (
|
||||
"strings"
|
||||
|
||||
"hfb_sys/backend/internal/config"
|
||||
"hfb_sys/backend/internal/platformscope"
|
||||
"hfb_sys/backend/internal/sitecode"
|
||||
"hfb_sys/backend/internal/tenancy"
|
||||
"hfb_sys/backend/pkg/response"
|
||||
@@ -34,6 +35,10 @@ func TenantContext(resolver TenantResolver, appEnv string, logger *zap.Logger, d
|
||||
defaultTenantCode = strings.TrimSpace(defaultTenantCodes[0])
|
||||
}
|
||||
return func(c *gin.Context) {
|
||||
if platformscope.IsScope(c.Request.Context()) {
|
||||
c.Next()
|
||||
return
|
||||
}
|
||||
var (
|
||||
scope *tenancy.Scope
|
||||
err error
|
||||
|
||||
Reference in New Issue
Block a user