1
0
mirror of synced 2026-10-28 09:26:12 +08:00

add: id register

This commit is contained in:
koukouchan
2022-08-24 21:34:09 +08:00
parent 9ab60d7cce
commit 27caa402d4
12 changed files with 423 additions and 211 deletions

View File

@@ -0,0 +1,22 @@
"""
雪花算法生成器接口声明
"""
# !/usr/bin/python
# coding=UTF-8
# 组件编号生成器
class SnowFlake():
def __init__(self, options):
self.options = options
def next_id(self) -> int:
"""
获取新的UUID
"""
return 0