mirror of
https://github.com/fastapiadmin/FastapiAdmin.git
synced 2026-09-21 12:52:26 +00:00
refactor(api): 统一详情接口使用路径参数替代查询参数
feat(utils): 新增部门树格式化工具函数 style(components): 调整通知组件样式和内容显示 fix(store): 修复通知公告获取逻辑并添加日志 perf(request): 优化请求拦截器仅对非GET请求显示成功消息 refactor(views): 重构多个模块的删除操作确认逻辑 docs(types): 移除未使用的全局类型定义 style(views): 调整表格列顺序和操作按钮样式 fix(components): 修复部门树组件数据加载和格式化 refactor(api): 重构用户、角色等模块的接口参数类型 style(views): 统一表单选择器宽度和布局
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from fastapi import APIRouter, Body, Depends, Query
|
||||
from fastapi import APIRouter, Body, Depends, Path, Query
|
||||
from fastapi.responses import JSONResponse, StreamingResponse
|
||||
|
||||
from app.common.response import StreamResponse, SuccessResponse
|
||||
@@ -22,9 +22,9 @@ from app.core.ap_scheduler import SchedulerUtil
|
||||
|
||||
router = APIRouter(route_class=OperationLogRoute)
|
||||
|
||||
@router.get("/detail", summary="获取定时任务详情", description="获取定时任务详情")
|
||||
@router.get("/detail/{id}", summary="获取定时任务详情", description="获取定时任务详情")
|
||||
async def get_obj_detail_controller(
|
||||
id: int = Query(..., description="定时任务ID"),
|
||||
id: int = Path(..., description="定时任务ID"),
|
||||
auth: AuthSchema = Depends(AuthPermission(permissions=["system:job:query"]))
|
||||
) -> JSONResponse:
|
||||
result_dict = await JobService.get_job_detail_service(id=id, auth=auth)
|
||||
|
||||
Reference in New Issue
Block a user