This commit is contained in:
2024-06-04 14:52:44 +08:00
parent ad242af2c4
commit 58bf39a5e3
9 changed files with 320 additions and 2 deletions
+1
View File
@@ -15,6 +15,7 @@ type HealthPackage struct {
ServiceRate string `gorm:"column:service_rate;type:varchar(20);comment:服务费率。100为满值,表示1,正常费率。" json:"service_rate"`
DiscountProductTotalAmount float64 `gorm:"column:discount_product_total_amount;type:decimal(10,2) unsigned;default:0.00;comment:折扣商品总价格" json:"discount_product_total_amount"`
Model
HealthPackageProduct []*HealthPackageProduct `gorm:"foreignKey:PackageId;references:package_id" json:"health_package_product"` // 健康包-关联商品
}
func (m *HealthPackage) TableName() string {