From c2d382d3404c54591f71cccd537d9c934b1ffdf9 Mon Sep 17 00:00:00 2001 From: Wu Clan Date: Tue, 1 Jul 2025 22:27:13 +0800 Subject: [PATCH] Fix the code generation delete schema template --- backend/plugin/code_generator/templates/python/schema.jinja | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/backend/plugin/code_generator/templates/python/schema.jinja b/backend/plugin/code_generator/templates/python/schema.jinja index 6a555096..e4e81dd0 100644 --- a/backend/plugin/code_generator/templates/python/schema.jinja +++ b/backend/plugin/code_generator/templates/python/schema.jinja @@ -23,9 +23,11 @@ class Update{{ schema_name }}Param({{ schema_name }}SchemaBase): """更新{{ doc_comment }}参数""" -class Delete{{ schema_name }}Param({{ schema_name }}SchemaBase): +class Delete{{ schema_name }}Param(SchemaBase): """删除{{ doc_comment }}参数""" + pks: list[int] = Field(description='{{ doc_comment }} ID 列表') + class Get{{ schema_name }}Detail({{ schema_name }}SchemaBase): """{{ doc_comment }}详情"""