From f9bfbf28aeef0d7898b39a140724d2d550742635 Mon Sep 17 00:00:00 2001 From: laodaming <11058467+laudamine@user.noreply.gitee.com> Date: Mon, 10 Jul 2023 18:32:54 +0800 Subject: [PATCH] fix --- .../internal/logic/getproductlistlogic.go | 2 +- server/product/internal/types/types.go | 22 +++++++++---------- server_api/product.api | 22 +++++++++---------- 3 files changed, 23 insertions(+), 23 deletions(-) diff --git a/server/product/internal/logic/getproductlistlogic.go b/server/product/internal/logic/getproductlistlogic.go index 30b966bd..38ef0b96 100644 --- a/server/product/internal/logic/getproductlistlogic.go +++ b/server/product/internal/logic/getproductlistlogic.go @@ -154,7 +154,7 @@ func (l *GetProductListLogic) GetProductList(req *types.GetProductListReq, useri IsEnv: *v.IsProtection, IsMicro: *v.IsMicrowave, SizeNum: uint32(sizeNum), - MiniPrice: format.CentoDollar(minPrice), + MiniPrice: minPrice, } //千人千面处理 thousandFaceImageFormatReq := image.ThousandFaceImageFormatReq{ diff --git a/server/product/internal/types/types.go b/server/product/internal/types/types.go index 46541b55..3e400d0c 100644 --- a/server/product/internal/types/types.go +++ b/server/product/internal/types/types.go @@ -28,17 +28,17 @@ type HrefUrl struct { } type Items struct { - Id int64 `json:"id"` - Sn string `json:"sn"` - Title string `json:"title"` - Cover string `json:"cover"` - Intro string `json:"intro"` - CoverImg string `json:"cover_img"` - IsEnv int64 `json:"isEnv"` - IsMicro int64 `json:"isMicro"` - SizeNum uint32 `json:"sizeNum"` - MiniPrice float64 `json:"miniPrice"` - CoverDefault string `json:"coverDefault"` + Id int64 `json:"id"` + Sn string `json:"sn"` + Title string `json:"title"` + Cover string `json:"cover"` + Intro string `json:"intro"` + CoverImg string `json:"cover_img"` + IsEnv int64 `json:"isEnv"` + IsMicro int64 `json:"isMicro"` + SizeNum uint32 `json:"sizeNum"` + MiniPrice int64 `json:"miniPrice"` + CoverDefault string `json:"coverDefault"` } type GetSuccessRecommandReq struct { diff --git a/server_api/product.api b/server_api/product.api index 9662c112..da4979ba 100644 --- a/server_api/product.api +++ b/server_api/product.api @@ -53,17 +53,17 @@ type HrefUrl { Href string `json:"href"` } type Items { - Id int64 `json:"id"` - Sn string `json:"sn"` - Title string `json:"title"` - Cover string `json:"cover"` - Intro string `json:"intro"` - CoverImg string `json:"cover_img"` - IsEnv int64 `json:"isEnv"` - IsMicro int64 `json:"isMicro"` - SizeNum uint32 `json:"sizeNum"` - MiniPrice float64 `json:"miniPrice"` - CoverDefault string `json:"coverDefault"` + Id int64 `json:"id"` + Sn string `json:"sn"` + Title string `json:"title"` + Cover string `json:"cover"` + Intro string `json:"intro"` + CoverImg string `json:"cover_img"` + IsEnv int64 `json:"isEnv"` + IsMicro int64 `json:"isMicro"` + SizeNum uint32 `json:"sizeNum"` + MiniPrice int64 `json:"miniPrice"` + CoverDefault string `json:"coverDefault"` } //获取成功后的推荐产品 type GetSuccessRecommandReq {