fix
This commit is contained in:
parent
998975e413
commit
cb682a7ac0
|
@ -11,6 +11,7 @@ type FsChangeCode struct {
|
||||||
Code *string `gorm:"default:'';" json:"code"` //
|
Code *string `gorm:"default:'';" json:"code"` //
|
||||||
CreatedAt *int64 `gorm:"default:0;" json:"created_at"` // 创建时间
|
CreatedAt *int64 `gorm:"default:0;" json:"created_at"` // 创建时间
|
||||||
IsUse *int64 `gorm:"default:0;" json:"is_use"` // 是否使用 1已使用 0未使用
|
IsUse *int64 `gorm:"default:0;" json:"is_use"` // 是否使用 1已使用 0未使用
|
||||||
|
Metadata *[]byte `gorm:"default:'';" json:"metadata"` //
|
||||||
}
|
}
|
||||||
type FsChangeCodeModel struct {
|
type FsChangeCodeModel struct {
|
||||||
db *gorm.DB
|
db *gorm.DB
|
||||||
|
|
|
@ -35,6 +35,7 @@ type FsProduct struct {
|
||||||
RecommendProduct *string `gorm:"default:'';" json:"recommend_product"` //
|
RecommendProduct *string `gorm:"default:'';" json:"recommend_product"` //
|
||||||
RecommendProductSort *string `gorm:"default:'';" json:"recommend_product_sort"` //
|
RecommendProductSort *string `gorm:"default:'';" json:"recommend_product_sort"` //
|
||||||
SceneIds *string `gorm:"default:'';" json:"scene_ids"` //
|
SceneIds *string `gorm:"default:'';" json:"scene_ids"` //
|
||||||
|
IsCustomization *int64 `gorm:"default:0;" json:"is_customization"` // 是否可定制
|
||||||
}
|
}
|
||||||
type FsProductModel struct {
|
type FsProductModel struct {
|
||||||
db *gorm.DB
|
db *gorm.DB
|
||||||
|
|
|
@ -14,6 +14,7 @@ type FsQuotation struct {
|
||||||
PageNum *int64 `gorm:"default:0;" json:"page_num"` // 页数
|
PageNum *int64 `gorm:"default:0;" json:"page_num"` // 页数
|
||||||
ProductNum *int64 `gorm:"default:0;" json:"product_num"` // 产品数量
|
ProductNum *int64 `gorm:"default:0;" json:"product_num"` // 产品数量
|
||||||
GiftNum *int64 `gorm:"default:0;" json:"gift_num"` // 赠品数
|
GiftNum *int64 `gorm:"default:0;" json:"gift_num"` // 赠品数
|
||||||
|
SequenceNum *string `gorm:"default:'';" json:"sequence_num"` //
|
||||||
Status *int64 `gorm:"default:0;" json:"status"` // 状态位 0停用 1待设计 2设计中 3待报价 4报价中 5完成
|
Status *int64 `gorm:"default:0;" json:"status"` // 状态位 0停用 1待设计 2设计中 3待报价 4报价中 5完成
|
||||||
Ctime *int64 `gorm:"default:0;" json:"ctime"` // 添加时间
|
Ctime *int64 `gorm:"default:0;" json:"ctime"` // 添加时间
|
||||||
DesignId *int64 `gorm:"default:0;" json:"design_id"` // 设计人员
|
DesignId *int64 `gorm:"default:0;" json:"design_id"` // 设计人员
|
||||||
|
|
|
@ -1,9 +1,8 @@
|
||||||
package gmodel
|
package gmodel
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"time"
|
|
||||||
|
|
||||||
"gorm.io/gorm"
|
"gorm.io/gorm"
|
||||||
|
"time"
|
||||||
)
|
)
|
||||||
|
|
||||||
// fs_resource 资源表
|
// fs_resource 资源表
|
||||||
|
|
|
@ -193,6 +193,7 @@ func (l *GetRecommandProductListLogic) GetRecommandProductList(req *types.GetRec
|
||||||
Intro: *v.Intro,
|
Intro: *v.Intro,
|
||||||
IsRecommend: isRecommend,
|
IsRecommend: isRecommend,
|
||||||
MinPrice: minPrice,
|
MinPrice: minPrice,
|
||||||
|
IsCustomization: *productInfo.IsCustomization,
|
||||||
}
|
}
|
||||||
if _, ok := mapTagProp[productInfo.Id]; ok {
|
if _, ok := mapTagProp[productInfo.Id]; ok {
|
||||||
item.CoverDefault = mapTagProp[productInfo.Id]
|
item.CoverDefault = mapTagProp[productInfo.Id]
|
||||||
|
|
|
@ -444,6 +444,7 @@ func (l *GetTagProductListLogic) getTagProducts(req getTagProductsReq) (productL
|
||||||
Recommended: *productInfo.IsRecommend > 0,
|
Recommended: *productInfo.IsRecommend > 0,
|
||||||
Cover: *productInfo.Cover,
|
Cover: *productInfo.Cover,
|
||||||
CoverMetadata: req.MapResourceMetadata[*productInfo.Cover],
|
CoverMetadata: req.MapResourceMetadata[*productInfo.Cover],
|
||||||
|
IsCustomization: *productInfo.IsCustomization,
|
||||||
}
|
}
|
||||||
if _, ok = req.MapTagProp[productInfo.Id]; ok {
|
if _, ok = req.MapTagProp[productInfo.Id]; ok {
|
||||||
item.CoverDefault = req.MapTagProp[productInfo.Id]
|
item.CoverDefault = req.MapTagProp[productInfo.Id]
|
||||||
|
|
|
@ -217,6 +217,7 @@ func (l *HomePageRecommendProductListLogic) HomePageRecommendProductList(req *ty
|
||||||
SizeNum: uint32(sizeNum),
|
SizeNum: uint32(sizeNum),
|
||||||
MinPrice: minPrice,
|
MinPrice: minPrice,
|
||||||
HaveOptionalFitting: haveOptionalFitting,
|
HaveOptionalFitting: haveOptionalFitting,
|
||||||
|
IsCustomization: *productInfo.IsCustomization,
|
||||||
}
|
}
|
||||||
if _, ok = mapTagProp[productInfo.Id]; ok {
|
if _, ok = mapTagProp[productInfo.Id]; ok {
|
||||||
item.CoverDefault = mapTagProp[productInfo.Id]
|
item.CoverDefault = mapTagProp[productInfo.Id]
|
||||||
|
|
|
@ -246,6 +246,7 @@ type GetRecommandProductListRsp struct {
|
||||||
Intro string `json:"intro"`
|
Intro string `json:"intro"`
|
||||||
IsRecommend int64 `json:"is_recommend"`
|
IsRecommend int64 `json:"is_recommend"`
|
||||||
MinPrice int64 `json:"min_price"`
|
MinPrice int64 `json:"min_price"`
|
||||||
|
IsCustomization int64 `json:"is_customization"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type GetTagProductListReq struct {
|
type GetTagProductListReq struct {
|
||||||
|
@ -281,6 +282,7 @@ type TagProduct struct {
|
||||||
CoverDefault []CoverDefaultItem `json:"cover_default"`
|
CoverDefault []CoverDefaultItem `json:"cover_default"`
|
||||||
HaveOptionalFitting bool `json:"have_optional_fitting"`
|
HaveOptionalFitting bool `json:"have_optional_fitting"`
|
||||||
Recommended bool `json:"recommended"`
|
Recommended bool `json:"recommended"`
|
||||||
|
IsCustomization int64 `json:"is_customization"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type CoverDefaultItem struct {
|
type CoverDefaultItem struct {
|
||||||
|
@ -409,6 +411,7 @@ type HomePageRecommendProductListRsp struct {
|
||||||
MinPrice int64 `json:"min_price"`
|
MinPrice int64 `json:"min_price"`
|
||||||
CoverDefault []CoverDefaultItem `json:"cover_default"`
|
CoverDefault []CoverDefaultItem `json:"cover_default"`
|
||||||
HaveOptionalFitting bool `json:"have_optional_fitting"`
|
HaveOptionalFitting bool `json:"have_optional_fitting"`
|
||||||
|
IsCustomization int64 `json:"is_customization"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type Request struct {
|
type Request struct {
|
||||||
|
|
|
@ -298,6 +298,7 @@ type GetRecommandProductListRsp {
|
||||||
Intro string `json:"intro"`
|
Intro string `json:"intro"`
|
||||||
IsRecommend int64 `json:"is_recommend"`
|
IsRecommend int64 `json:"is_recommend"`
|
||||||
MinPrice int64 `json:"min_price"`
|
MinPrice int64 `json:"min_price"`
|
||||||
|
IsCustomization int64 `json:"is_customization"`
|
||||||
}
|
}
|
||||||
//获取分类产品列表
|
//获取分类产品列表
|
||||||
type GetTagProductListReq {
|
type GetTagProductListReq {
|
||||||
|
@ -331,6 +332,7 @@ type TagProduct {
|
||||||
CoverDefault []CoverDefaultItem `json:"cover_default"`
|
CoverDefault []CoverDefaultItem `json:"cover_default"`
|
||||||
HaveOptionalFitting bool `json:"have_optional_fitting"`
|
HaveOptionalFitting bool `json:"have_optional_fitting"`
|
||||||
Recommended bool `json:"recommended"`
|
Recommended bool `json:"recommended"`
|
||||||
|
IsCustomization int64 `json:"is_customization"`
|
||||||
}
|
}
|
||||||
type CoverDefaultItem {
|
type CoverDefaultItem {
|
||||||
TemplateTag string `json:"template_tag"`
|
TemplateTag string `json:"template_tag"`
|
||||||
|
@ -451,4 +453,5 @@ type HomePageRecommendProductListRsp {
|
||||||
MinPrice int64 `json:"min_price"`
|
MinPrice int64 `json:"min_price"`
|
||||||
CoverDefault []CoverDefaultItem `json:"cover_default"`
|
CoverDefault []CoverDefaultItem `json:"cover_default"`
|
||||||
HaveOptionalFitting bool `json:"have_optional_fitting"`
|
HaveOptionalFitting bool `json:"have_optional_fitting"`
|
||||||
|
IsCustomization int64 `json:"is_customization"`
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user