From e9b5ea3e7dcf93551206c6a87cdb09e215ded767 Mon Sep 17 00:00:00 2001 From: ziming Date: Wed, 26 Mar 2025 09:43:41 +0800 Subject: [PATCH] ctx --- internal/data/repoimpl/order.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/internal/data/repoimpl/order.go b/internal/data/repoimpl/order.go index f6093e0..a4c3329 100644 --- a/internal/data/repoimpl/order.go +++ b/internal/data/repoimpl/order.go @@ -54,9 +54,7 @@ func (p *OrderRepoImpl) FindInBatches(ctx context.Context, w *bo.FindInBatchesUs return nil } -func (p *OrderRepoImpl) Create(_ context.Context, req *bo.OrderBo) (*bo.OrderBo, error) { - - ctx := context.Background() +func (p *OrderRepoImpl) Create(ctx context.Context, req *bo.OrderBo) (*bo.OrderBo, error) { now := time.Now()