From 3916e1dc284e7a17b3cb2ab96baa0d8295aa27a7 Mon Sep 17 00:00:00 2001 From: Qiu Jian Date: Mon, 4 Sep 2023 22:47:07 +0800 Subject: [PATCH] fix: struct sub field tag --- pkg/cloudcommon/db/infraresource.go | 2 +- pkg/cloudcommon/db/sharablevirtual.go | 2 +- pkg/keystone/models/policies.go | 2 +- pkg/keystone/models/roles.go | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/cloudcommon/db/infraresource.go b/pkg/cloudcommon/db/infraresource.go index 8959a1c2dd..2f5acc62b9 100644 --- a/pkg/cloudcommon/db/infraresource.go +++ b/pkg/cloudcommon/db/infraresource.go @@ -47,7 +47,7 @@ func NewInfrasResourceBaseManager( type SInfrasResourceBase struct { SDomainLevelResourceBase - SSharableBaseResource `"is_public=>create":"domain_optional" "public_scope=>create":"domain_optional"` + SSharableBaseResource `"is_public->create":"domain_optional" "public_scope->create":"domain_optional"` } func (manager *SInfrasResourceBaseManager) GetIInfrasModelManager() IInfrasModelManager { diff --git a/pkg/cloudcommon/db/sharablevirtual.go b/pkg/cloudcommon/db/sharablevirtual.go index de530d16ee..750763bda1 100644 --- a/pkg/cloudcommon/db/sharablevirtual.go +++ b/pkg/cloudcommon/db/sharablevirtual.go @@ -30,7 +30,7 @@ import ( type SSharableVirtualResourceBase struct { SVirtualResourceBase - SSharableBaseResource `"is_public=>create":"optional" "public_scope=>create":"optional"` + SSharableBaseResource `"is_public->create":"optional" "public_scope->create":"optional"` // IsPublic bool `default:"false" nullable:"false" create:"domain_optional" list:"user" json:"is_public"` // PublicScope string `width:"16" charset:"ascii" nullable:"false" default:"system" create:"domain_optional" list:"user" json:"public_scope"` } diff --git a/pkg/keystone/models/policies.go b/pkg/keystone/models/policies.go index bf523371f6..477760f90d 100644 --- a/pkg/keystone/models/policies.go +++ b/pkg/keystone/models/policies.go @@ -76,7 +76,7 @@ func init() { type SPolicy struct { SEnabledIdentityBaseResource - db.SSharableBaseResource `"is_public=>create":"domain_optional" "public_scope=>create":"domain_optional"` + db.SSharableBaseResource `"is_public->create":"domain_optional" "public_scope->create":"domain_optional"` // swagger:ignore // Deprecated diff --git a/pkg/keystone/models/roles.go b/pkg/keystone/models/roles.go index 9d402f4e13..43ddced072 100644 --- a/pkg/keystone/models/roles.go +++ b/pkg/keystone/models/roles.go @@ -72,7 +72,7 @@ func init() { type SRole struct { SIdentityBaseResource `"name->update":""` - db.SSharableBaseResource `"is_public=>create":"domain_optional" "public_scope=>create":"domain_optional"` + db.SSharableBaseResource `"is_public->create":"domain_optional" "public_scope->create":"domain_optional"` } func (manager *SRoleManager) GetContextManagers() [][]db.IModelManager {