From f278be1cb7c8652c596aab9107462fdc16bfb6bb Mon Sep 17 00:00:00 2001 From: ziming Date: Wed, 26 Mar 2025 09:35:29 +0800 Subject: [PATCH] ctx --- internal/data/repoimpl/order.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/internal/data/repoimpl/order.go b/internal/data/repoimpl/order.go index 96223a6..f6093e0 100644 --- a/internal/data/repoimpl/order.go +++ b/internal/data/repoimpl/order.go @@ -54,7 +54,10 @@ func (p *OrderRepoImpl) FindInBatches(ctx context.Context, w *bo.FindInBatchesUs return nil } -func (p *OrderRepoImpl) Create(ctx context.Context, req *bo.OrderBo) (*bo.OrderBo, error) { +func (p *OrderRepoImpl) Create(_ context.Context, req *bo.OrderBo) (*bo.OrderBo, error) { + + ctx := context.Background() + now := time.Now() info := &model.Order{