Browse Source

修改bug

yjp 4 months ago
parent
commit
22b60c3042
1 changed files with 1 additions and 1 deletions
  1. 1 1
      framework/core/domain/entity/field.go

+ 1 - 1
framework/core/domain/entity/field.go

@@ -64,7 +64,7 @@ const (
 
 // TenantIDField 租户ID字段
 type TenantIDField struct {
-	TenantID string `sqlmapping:"column:tenant_id;" sqlresult:"column:tenant_id;" check:"required,len=32,when=create/delete/update"`
+	TenantID string `sqlmapping:"column:tenant_id;" sqlresult:"column:tenant_id;" check:"required,len=32,when=create"`
 }
 
 // UserIDFields 用户ID相关字段