from ruamel_yaml.util import create_timestamp from custom_decorators import singleton @singleton class OrderRepository: def __init__(self): self.db = None def create(self, order_id, from_address, to_address): create_time = create_timestamp() pass def update_status(self, order_id, status): # 更新状态和时间 pass def get_order_info(self, order_id): pass