Browse Source

修改bug

yjp 2 months ago
parent
commit
e600106aae
1 changed files with 6 additions and 0 deletions
  1. 6 0
      convenient/gwtools/entity_crud/entity_crud.go

+ 6 - 0
convenient/gwtools/entity_crud/entity_crud.go

@@ -479,6 +479,12 @@ func WithGlobalMiddlewares(middlewares ...gateway.Handler) GlobalOption {
 	}
 	}
 }
 }
 
 
+func WithDisableCreate() CreateOption {
+	return func(options *CreateOptions) {
+		options.disable = true
+	}
+}
+
 func WithBeforeCreateBuilderCallback(callbacks RequestBuilderCallback) CreateOption {
 func WithBeforeCreateBuilderCallback(callbacks RequestBuilderCallback) CreateOption {
 	return func(options *CreateOptions) {
 	return func(options *CreateOptions) {
 		options.beforeBuilderCallback = callbacks
 		options.beforeBuilderCallback = callbacks