|
@@ -5,7 +5,6 @@ import (
|
|
|
stringUtils "eta/eta_mini_ht_api/common/utils/string"
|
|
|
"eta/eta_mini_ht_api/models"
|
|
|
"fmt"
|
|
|
- "github.com/shopspring/decimal"
|
|
|
"sort"
|
|
|
"strings"
|
|
|
"sync/atomic"
|
|
@@ -36,7 +35,7 @@ type MerchantProduct struct {
|
|
|
CoverSrc int `gorm:"column:cover_src;type:int(11);comment:封面图片资源库id"`
|
|
|
CoverUrl string `gorm:"column:cover_url;type:varchar(255);comment:封面图片url"`
|
|
|
Description string `gorm:"column:description;type:varchar(255);comment:描述"`
|
|
|
- Price decimal.Decimal `gorm:"column:price;type:decimal(10,2);comment:价格"`
|
|
|
+ Price string `gorm:"column:price;type:decimal(10,2);comment:价格"`
|
|
|
RiskLevel string `gorm:"-"`
|
|
|
Type MerchantProductType `gorm:"column:type;type:enum('report','video','audio','package');not null;comment:类型"`
|
|
|
IsPermanent bool `gorm:"column:is_permanent;type:int(1);not null;default:0;comment:是否永久"`
|