float62 32 格式化为两位

This commit is contained in:
2026-08-31 11:21:04 +08:00
parent 2a6cd21ec4
commit 9e8e2dd8d8
7 changed files with 835 additions and 1 deletions
+11
View File
@@ -25,3 +25,14 @@ type ProductInfo struct {
Images string `json:"images" gorm:"images"`
Stock int `json:"stock" gorm:"stock"`
}
type CartRet struct {
ProductId int64 `json:"product_id" gorm:"product_id"`
ProductName string `json:"product_name" gorm:"product_name"`
Images []string `json:"images" gorm:"images"`
Number int `json:"number" gorm:"number"`
Price float64 `json:"price" gorm:"price"`
StorePrice float64 `json:"store_price" gorm:"store_price"`
SalePrice float64 `json:"sale_price" gorm:"sale_price"`
Stock uint32 `json:"stock" gorm:"stock"`
}