You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
268 B
19 lines
268 B
3 years ago
|
#!/usr/bin/env python
|
||
|
# -*- encoding: utf-8 -*-
|
||
|
'''
|
||
|
@Date:2022/07/18 15:21:25
|
||
|
'''
|
||
|
import uuid
|
||
|
from sqlalchemy.ext.declarative import declarative_base
|
||
|
|
||
|
Base = declarative_base()
|
||
|
|
||
|
|
||
|
def get_uuid():
|
||
|
return str(uuid.uuid1())
|
||
|
|
||
|
|
||
|
def gen_id():
|
||
|
|
||
|
return uuid.uuid4().hex
|