From 7f2ec6819754efe1180508b1ee2fde5083e42c22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E6=B6=9B?= Date: Tue, 27 Jun 2023 17:04:21 +0800 Subject: [PATCH] =?UTF-8?q?fix(invoice):=E6=94=B9=E6=AD=A3=E5=8F=91?= =?UTF-8?q?=E7=A5=A8=E5=88=97=E8=A1=A8=E8=8E=B7=E5=8F=96=E6=97=B6=EF=BC=8C?= =?UTF-8?q?=E7=A9=BA=E5=88=97=E8=A1=A8=E8=BF=94=E5=9B=9Enull=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- controller/invoice.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controller/invoice.go b/controller/invoice.go index c96622d..4e88146 100644 --- a/controller/invoice.go +++ b/controller/invoice.go @@ -60,7 +60,7 @@ func listInvoices(c *fiber.Ctx) error { invoiceLog.Error("列出指定园区中的符合条件的发票记录失败,检索符合条件的发票记录出现错误。", zap.Error(err)) return result.Error(fiber.StatusInternalServerError, "检索符合条件的发票记录出现错误。") } - var invoiceResponse []*vo.InvoiceResponse + invoiceResponse := make([]*vo.InvoiceResponse, 0) copier.Copy(&invoiceResponse, &invoices) return result.Success( "已经获取到符合条件的发票列表。",