Ver Fonte

修改bug

yjp há 2 meses atrás
pai
commit
d251854cc1
1 ficheiros alterados com 6 adições e 0 exclusões
  1. 6 0
      convenient/gwtools/entity_crud/entity_crud.go

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

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