From ddc115f4a884fa7991518f02fa83da2266e7fd7e Mon Sep 17 00:00:00 2001 From: nochill Date: Fri, 8 Sep 2023 12:38:23 +0700 Subject: [PATCH] change SaleOrderProduct store type --- db/sqlc/tx_sale_order.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/db/sqlc/tx_sale_order.go b/db/sqlc/tx_sale_order.go index a13542f..a9ce8cf 100644 --- a/db/sqlc/tx_sale_order.go +++ b/db/sqlc/tx_sale_order.go @@ -10,8 +10,8 @@ import ( ) type SaleOrderProduct struct { - ProductID uuid.UUID `json:"product_id"` - ProductName string `json:"product_name"` + ProductID uuid.UUID `json:"id"` + ProductName string `json:"name"` Quantity float64 `json:"quantity"` Sub_total float64 `json:"sub_total"` Price float64 `json:"price"`