From a14a434952f5a69cd3ca30e943761a5fa9f27d94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B1=88=E8=BD=A9?= Date: Sun, 16 May 2021 14:07:40 +0800 Subject: [PATCH] fix(region): project mapping optional --- pkg/compute/models/project_mapping_resource.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/compute/models/project_mapping_resource.go b/pkg/compute/models/project_mapping_resource.go index dc40e0b442..6330b9782a 100644 --- a/pkg/compute/models/project_mapping_resource.go +++ b/pkg/compute/models/project_mapping_resource.go @@ -32,7 +32,7 @@ import ( ) type SProjectMappingResourceBase struct { - ProjectMappingId string `width:"36" charset:"ascii" nullable:"false" create:"required" index:"true" list:"user" json:"project_mapping_id"` + ProjectMappingId string `width:"36" charset:"ascii" nullable:"false" create:"optional" index:"true" list:"user" json:"project_mapping_id"` } type SProjectMappingResourceBaseManager struct{}