mirror of
https://github.com/fastapiadmin/FastapiAdmin.git
synced 2026-09-21 12:52:26 +00:00
feat(workflow): 重构工作流编排界面,使用VueFlow替换LogicFlow
refactor: 统一详情接口权限标识从query改为detail feat(tenant): 为租户模型添加domain字段支持 fix(cron): 移除定时任务触发参数只读限制 perf(menu): 优化菜单权限标识注释说明 refactor(model): 为多个模型添加租户关联支持 style(main): 调整CSS导入顺序和格式 chore(package): 替换前端流程图库为@vue-flow系列 fix(token): 修正令牌详情接口权限标识 docs(sql): 更新菜单权限标识注释为query格式
This commit is contained in:
@@ -22,7 +22,7 @@ ParamsRouter = APIRouter(route_class=OperationLogRoute, prefix="/param", tags=["
|
||||
@ParamsRouter.get("/detail/{id}", summary="获取参数详情", description="获取参数详情")
|
||||
async def get_type_detail_controller(
|
||||
id: int = Path(..., description="参数ID"),
|
||||
auth: AuthSchema = Depends(AuthPermission(["module_system:param:query"]))
|
||||
auth: AuthSchema = Depends(AuthPermission(["module_system:param:detail"]))
|
||||
) -> JSONResponse:
|
||||
"""
|
||||
获取参数详情
|
||||
|
||||
@@ -3,15 +3,16 @@
|
||||
from sqlalchemy import String, Boolean
|
||||
from sqlalchemy.orm import Mapped, mapped_column
|
||||
|
||||
from app.core.base_model import ModelMixin
|
||||
from app.core.base_model import ModelMixin, TenantMixin
|
||||
|
||||
|
||||
class ParamsModel(ModelMixin):
|
||||
class ParamsModel(ModelMixin, TenantMixin):
|
||||
"""
|
||||
参数配置表
|
||||
"""
|
||||
__tablename__: str = "sys_param"
|
||||
__table_args__: dict[str, str] = ({'comment': '系统参数表'})
|
||||
__loader_options__: list[str] = ["tenant"]
|
||||
|
||||
config_name: Mapped[str] = mapped_column(String(64), nullable=False, comment='参数名称')
|
||||
config_key: Mapped[str] = mapped_column(String(500), nullable=False, comment='参数键名')
|
||||
|
||||
Reference in New Issue
Block a user