Files
SMANAGE/gvsds/common/UUID.py
T
TermiNexus 31b0ab885f refactor(orm): 手写 ORM 下沉 gvsdsdk Manager,通用工具改为 SDK 转发
P1 通用查询:viewsets / app / menu / mail / gitea / mc / stats / sync_apps 等视图与命令的裸查询改委托 SDK Manager(Role/Company/Department/Position/Menu/Tenant/App)。

P2 App 体系:app_manager.py 与 app_manifests.py 实现零裸 ORM,职务多值/虚拟职务/公司下拉全部走 SDK。

P3 工具下沉:money/json_encoder/celery_utils/exception_handler/redis_lock 改为纯转发展开;ip_filter/storage 转发并注入 app.ini 配置源;common 下 DateTime/String/Naming/UUID 转发 SDK。

删除死代码 commission/strategies/engine.py(SDK 已有同物且零引用)与 payment/models.py 的 FromTenantAndPlatform;单测 patch 目标同步为 gvsdsdk.*,test_attack_detect fixture 补齐限频去重状态。
2026-09-13 21:58:06 +08:00

10 lines
425 B
Python
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
"""兼容转发层:UUID 工具已收敛到 gvsdsdk.model_utils(单一源)。
差异说明:旧实现 `UUIDObj(None)` 会生成随机 UUID,新实现返回空值对象
(`.str/.bytes` 为 None);`NewUUID()` 仍是"生成随机 UUID"的显式入口。
"""
from gvsdsdk.model_utils import ( # noqa: F401
UUIDObj, NewUUID, NewUUIDBytes, NewUUIDStr,
UUIDToBytes, UUIDToStr, BytesToUUIDStr, StrToUUIDBytes,
)