2024-11-11 07:32:36 +00:00
|
|
|
from ruamel_yaml.util import create_timestamp
|
|
|
|
|
2024-11-10 10:00:58 +00:00
|
|
|
from custom_decorators import singleton
|
|
|
|
|
|
|
|
|
|
|
|
@singleton
|
|
|
|
class OrderRepository:
|
|
|
|
def __init__(self):
|
|
|
|
self.db = None
|
|
|
|
|
|
|
|
def create(self, order_id, from_address, to_address):
|
2024-11-11 07:32:36 +00:00
|
|
|
create_time = create_timestamp()
|
2024-11-10 10:00:58 +00:00
|
|
|
pass
|
|
|
|
|
|
|
|
def update_status(self, order_id, status):
|
|
|
|
# 更新状态和时间
|
|
|
|
pass
|
|
|
|
|
2024-11-11 07:32:36 +00:00
|
|
|
def get_order_info(self, order_id):
|
2024-11-10 10:00:58 +00:00
|
|
|
pass
|