revert: 因fastapi查询参数模型底层存在bug,回滚查询参数模型声明方式为as_query
This commit is contained in:
@@ -3,6 +3,7 @@ from pydantic import BaseModel, ConfigDict, Field
|
||||
from pydantic.alias_generators import to_camel
|
||||
from pydantic_validation_decorator import NotBlank, Size
|
||||
from typing import Literal, Optional
|
||||
from module_admin.annotation.pydantic_annotation import as_query
|
||||
|
||||
|
||||
class PostModel(BaseModel):
|
||||
@@ -52,6 +53,7 @@ class PostQueryModel(PostModel):
|
||||
end_time: Optional[str] = Field(default=None, description='结束时间')
|
||||
|
||||
|
||||
@as_query
|
||||
class PostPageQueryModel(PostQueryModel):
|
||||
"""
|
||||
岗位管理分页查询模型
|
||||
|
Reference in New Issue
Block a user