Skip to content

Commit d906a10

Browse files
authored
Fix the code generation delete schema template (#708)
1 parent 4ed49d2 commit d906a10

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

backend/plugin/code_generator/templates/python/schema.jinja

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,11 @@ class Update{{ schema_name }}Param({{ schema_name }}SchemaBase):
2323
"""更新{{ doc_comment }}参数"""
2424

2525

26-
class Delete{{ schema_name }}Param({{ schema_name }}SchemaBase):
26+
class Delete{{ schema_name }}Param(SchemaBase):
2727
"""删除{{ doc_comment }}参数"""
2828

29+
pks: list[int] = Field(description='{{ doc_comment }} ID 列表')
30+
2931

3032
class Get{{ schema_name }}Detail({{ schema_name }}SchemaBase):
3133
"""{{ doc_comment }}详情"""

0 commit comments

Comments
 (0)