aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author苏向夜 <fu050409@163.com>2024-03-12 15:40:28 +0800
committer苏向夜 <fu050409@163.com>2024-03-12 15:40:28 +0800
commitc0ff60443d0cbfceba4abc828814416e541c912b (patch)
treed70c5af2b8477bad5958c48d60a0a8f82dd101b5
parent4dae83193574a455e3c315db135c9550e1c801c6 (diff)
downloadipm-c0ff60443d0cbfceba4abc828814416e541c912b.tar.gz
ipm-c0ff60443d0cbfceba4abc828814416e541c912b.zip
to(index): add yggdrasil uuid property example methods
-rw-r--r--src/ipm/models/index.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ipm/models/index.py b/src/ipm/models/index.py
index 7f179aa..d9051de 100644
--- a/src/ipm/models/index.py
+++ b/src/ipm/models/index.py
@@ -67,3 +67,8 @@ class Yggdrasil:
def get_hash(self, name: str, version: str) -> str:
"""从本地获取规则包哈希值"""
raise NotImplementedError
+
+ @property
+ def uuid(self) -> str:
+ """世界树唯一标识"""
+ raise NotImplementedError