payment/repositories/order.py

18 lines
345 B
Python

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