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 MenuModel(BaseModel):
|
||||
@@ -67,6 +68,7 @@ class MenuModel(BaseModel):
|
||||
self.get_perms()
|
||||
|
||||
|
||||
@as_query
|
||||
class MenuQueryModel(MenuModel):
|
||||
"""
|
||||
菜单管理不分页查询模型
|
||||
|
Reference in New Issue
Block a user