瀏覽代碼

修改bug

yjp 1 年之前
父節點
當前提交
22b60c3042
共有 1 個文件被更改,包括 1 次插入1 次删除
  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相关字段