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
559 B
Python
28 lines
559 B
Python
"""
|
|
用户数据相关的Pydantic模型
|
|
已迁移到 app.schemas.task 模块中统一管理
|
|
"""
|
|
|
|
# 从统一schema导入所有用户数据相关模型
|
|
from app.schemas.task import (
|
|
UserDataBase,
|
|
UserDataCreate,
|
|
UserDataUpdate,
|
|
UserDataResponse,
|
|
UserDataUploadResponse,
|
|
UserDataStatsResponse,
|
|
PaginatedResponse,
|
|
UserInfo,
|
|
)
|
|
|
|
__all__ = [
|
|
"UserDataBase",
|
|
"UserDataCreate",
|
|
"UserDataUpdate",
|
|
"UserDataResponse",
|
|
"UserDataUploadResponse",
|
|
"UserDataStatsResponse",
|
|
"PaginatedResponse",
|
|
"UserInfo",
|
|
]
|