This commit is contained in:
laodaming 2023-09-21 11:42:31 +08:00
parent c78f1bb238
commit 7dbf909a9a
3 changed files with 3 additions and 0 deletions

View File

@ -208,6 +208,7 @@ func (l *GetCartsLogic) GetCarts(req *types.GetCartsReq, userinfo *auth.UserInfo
IsInvalid: false,
InvalidDescription: "",
IsHighlyCustomized: *cart.IsHighlyCustomized > 0,
IsSelected: *cart.IsSelected > 0,
}
//是否有失效的
if description, ok := mapCartChange[cart.Id]; ok {

View File

@ -52,6 +52,7 @@ type CartItem struct {
IsHighlyCustomized bool `json:"is_highly_customized"` //是否高度定制
IsInvalid bool `json:"is_invalid"` //是否无效
InvalidDescription string `json:"invalid_description"` //无效原因
IsSelected bool `json:"is_selected"` //是否选中
}
type ProductInfo struct {

View File

@ -69,6 +69,7 @@ type CartItem {
IsHighlyCustomized bool `json:"is_highly_customized"` //是否高度定制
IsInvalid bool `json:"is_invalid"` //是否无效
InvalidDescription string `json:"invalid_description"` //无效原因
IsSelected bool `json:"is_selected"` //是否选中
}
type ProductInfo {
ProductId int64 `json:"product_id"` //产品id