Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OrderRepository ¶
type OrderRepository interface { CreateOrder(ctx context.Context, order domain.Order) (domain.Order, error) UpdateOrder(ctx context.Context, order domain.Order) error FindOrderBySN(ctx context.Context, sn string) (domain.Order, error) FindOrderBySNAndBuyerID(ctx context.Context, sn string, buyerID int64) (domain.Order, error) TotalOrders(ctx context.Context, uid int64) (int64, error) ListOrdersByUID(ctx context.Context, offset, limit int, uid int64) ([]domain.Order, error) TotalExpiredOrders(ctx context.Context, ctime int64) (int64, error) ListExpiredOrders(ctx context.Context, offset, limit int, ctime int64) ([]domain.Order, error) CloseExpiredOrders(ctx context.Context, orderIDs []int64) error }
func NewRepository ¶
func NewRepository(d dao.OrderDAO) OrderRepository
Click to show internal directories.
Click to hide internal directories.