mirror of
https://github.com/fastapiadmin/FastapiAdmin.git
synced 2026-09-24 05:26:58 +00:00
- 移除了多个组件中的 max-width 属性,使布局更加灵活 - 统一了状态选择框的样式和提示文本 - 调整了部分字段的标签和占位符文本 - 优化了表格列的标题 - 修复了部分组件的样式问题
24 lines
647 B
Python
24 lines
647 B
Python
# -*- coding: utf-8 -*-
|
|
|
|
from typing import Optional
|
|
from fastapi import Query
|
|
|
|
class NoticeQueryParams:
|
|
"""字典管理查询参数"""
|
|
|
|
def __init__(
|
|
self,
|
|
notice_title: Optional[str] = Query(None, description="公告标题"),
|
|
available: Optional[bool] = Query(None, description="是否可用"),
|
|
creator: Optional[int] = Query(None, description="创建人"),
|
|
) -> None:
|
|
super().__init__()
|
|
|
|
# 模糊查询字段
|
|
self.notice_title = ("like", notice_title)
|
|
|
|
# 精确查询字段
|
|
self.creator_id = creator
|
|
self.available = available
|
|
|