fix
This commit is contained in:
parent
ee92468392
commit
6987f2c2d1
|
@ -71,6 +71,11 @@ func (p *FsProductPriceModel) GetPriceListByProductIds(ctx context.Context, prod
|
|||
}
|
||||
return
|
||||
}
|
||||
func (p *FsProductPriceModel) FindOneBySizeId(ctx context.Context, sizeId int64) (resp *FsProductPrice, err error) {
|
||||
err = p.db.WithContext(ctx).Model(&FsProductPrice{}).
|
||||
Where("`size_id` = ? and `status` = ?", sizeId, 1).Take(&resp).Error
|
||||
return resp, err
|
||||
}
|
||||
|
||||
// 产品价格
|
||||
type ProductPrice struct {
|
||||
|
|
|
@ -38,6 +38,7 @@ func NewGetCartsLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetCarts
|
|||
// }
|
||||
|
||||
func (l *GetCartsLogic) GetCarts(req *types.GetCartsReq, userinfo *auth.UserInfo) (resp *basic.Response) {
|
||||
userinfo.UserId = 39
|
||||
if req.CurrentPage <= 0 {
|
||||
req.CurrentPage = constants.DEFAULT_PAGE
|
||||
}
|
||||
|
|
|
@ -48,7 +48,7 @@ type CartItem struct {
|
|||
SizeInfo SizeInfo `json:"size_info"` //尺寸信息
|
||||
FittingInfo FittingInfo `json:"fitting_info"` //配件信息
|
||||
ItemPrice string `json:"item_price"` //单价
|
||||
TotalPrice string `json:"totalPrice"` //单价X数量=总价
|
||||
TotalPrice string `json:"total_price"` //单价X数量=总价
|
||||
DiyInformation DiyInformation `json:"diy_information"` //diy信息
|
||||
StepNum []StepNumItem `json:"step_num"` //阶梯数量
|
||||
IsInvalid bool `json:"is_invalid"` //是否无效
|
||||
|
|
|
@ -64,7 +64,7 @@ type CartItem {
|
|||
SizeInfo SizeInfo `json:"size_info"` //尺寸信息
|
||||
FittingInfo FittingInfo `json:"fitting_info"` //配件信息
|
||||
ItemPrice string `json:"item_price"` //单价
|
||||
TotalPrice string `json:"totalPrice"` //单价X数量=总价
|
||||
TotalPrice string `json:"total_price"` //单价X数量=总价
|
||||
DiyInformation DiyInformation `json:"diy_information"` //diy信息
|
||||
StepNum []StepNumItem `json:"step_num"` //阶梯数量
|
||||
IsInvalid bool `json:"is_invalid"` //是否无效
|
||||
|
|
Loading…
Reference in New Issue
Block a user