float62 32 格式化为两位
This commit is contained in:
@@ -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"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user