mirror of
https://github.com/fastapiadmin/FastapiAdmin.git
synced 2026-09-25 21:57:48 +00:00
refactor: 重构配置管理相关代码,包括模型、参数和CRUD操作 docs: 更新README文档中的图片引用 style: 统一前端表格样式和布局,优化暗色模式背景色 fix: 修复日志记录中用户信息泄露问题 perf: 优化前端路由和组件性能 chore: 更新依赖和脚本文件 ``` 这个提交消息涵盖了以下主要变更: 1. 新增了配置中心功能模块 2. 重构了后端配置管理相关代码 3. 更新了文档中的图片引用 4. 统一了前端表格样式 5. 修复了安全相关问题 6. 优化了前端性能 7. 更新了项目依赖 消息遵循了约定的提交格式,每个类型都准确地描述了变更的性质,并保持了简洁性。
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
|
|
|