Browse Source

查询规则添加选项

yjp 1 month ago
parent
commit
40670db38d
1 changed files with 6 additions and 1 deletions
  1. 6 1
      convenient/domain/query_rule/query_rule.go

+ 6 - 1
convenient/domain/query_rule/query_rule.go

@@ -23,11 +23,16 @@ import (
 type Simple struct {
 	// schema
 	Schema string
+
+	// 关闭记录查询规则
+	DisableRecordRule bool
 }
 
 func (simple *Simple) bind(binder *binding.Binder) {
 	(&definition.Simple{Schema: simple.Schema}).Bind(binder)
-	(&rule.Simple{Schema: simple.Schema}).Bind(binder)
+	if !simple.DisableRecordRule {
+		(&rule.Simple{Schema: simple.Schema}).Bind(binder)
+	}
 }
 
 func Bind(app *application.App, simple *Simple) {