mirror of
https://git.oceanpay.cc/danial/kami_apple_exchage.git
synced 2025-12-18 22:29:09 +00:00
- 新增链接权重字段,支持1-100范围设置 - 修改轮询算法为基于权重的选择机制 - 更新链接API接口返回统一使用LinkInfo模型 - 添加更新链接权重的PATCH端点 - 调整链接仓库查询逻辑,只包含激活状态链接 - 迁移链接相关Pydantic模型到task模块统一管理 - 修改分页响应格式为通用PaginatedResponse包装 - 禁用OpenTelemetry监控配置
28 lines
491 B
Python
28 lines
491 B
Python
"""
|
|
链接相关的Pydantic模型
|
|
已迁移到 app.schemas.task 模块中统一管理
|
|
"""
|
|
|
|
# 从统一schema导入所有链接相关模型
|
|
from app.schemas.task import (
|
|
LinkBase,
|
|
LinkCreate,
|
|
LinkInfo,
|
|
LinkPoolResponse,
|
|
LinkStatsResponse,
|
|
LinkUpdate,
|
|
LinkStatus,
|
|
PaginatedResponse,
|
|
)
|
|
|
|
__all__ = [
|
|
"LinkBase",
|
|
"LinkCreate",
|
|
"LinkInfo",
|
|
"LinkPoolResponse",
|
|
"LinkStatsResponse",
|
|
"LinkUpdate",
|
|
"LinkStatus",
|
|
"PaginatedResponse",
|
|
]
|