diff options
Diffstat (limited to 'server/router')
-rw-r--r-- | server/router/items.go | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/server/router/items.go b/server/router/items.go index c71fac6..684d1d8 100644 --- a/server/router/items.go +++ b/server/router/items.go @@ -31,13 +31,13 @@ func registerItem(ctx *gin.Context) { brand := "brand coming soon" item := db.Item { - Model: ctx.Query("model"), - Desc: ctx.Query("desc"), - Price: price, - HSN: hsn, - GST: gst, - Cat: cat, - Brand: brand, + Model: ctx.Query("model"), + Description: ctx.Query("desc"), + UnitPrice: price, + HSN: hsn, + TotalGST: gst, + Category: cat, + Brand: brand, } db.RegisterItem(item) |