This commit is contained in:
laodaming
2023-10-24 12:28:44 +08:00
parent ffd371d54c
commit e35ba06a97
4 changed files with 2 additions and 51 deletions

View File

@@ -7,7 +7,6 @@ import (
"fusenapi/model/gmodel"
"fusenapi/utils/auth"
"fusenapi/utils/basic"
"fusenapi/utils/image"
"fusenapi/utils/s3url_to_s3id"
"gorm.io/gorm"
"sort"
@@ -42,10 +41,6 @@ func (l *GetTagProductListLogic) GetTagProductList(req *types.GetTagProductListR
logx.Error(err)
return resp.SetStatusWithMessage(basic.CodeServiceErr, "get user info err")
}
//获取合适尺寸
if req.Size > 0 {
req.Size = image.GetCurrentSize(req.Size)
}
//查询分类列表
tStatus := int64(1)
tReq := gmodel.GetAllTagByParamsReq{
@@ -127,7 +122,6 @@ func (l *GetTagProductListLogic) GetTagProductList(req *types.GetTagProductListR
MapTagLevel: mapTagLevel,
MapProductHaveOptionFitting: mapProductHaveOptionFitting,
MapResourceMetadata: mapResourceMetadata,
Size: req.Size,
User: user,
MinLevel: &minLevel,
}); err != nil {
@@ -279,7 +273,6 @@ type dealWithTagMenuDataReq struct {
MapTagLevel map[string]*types.TagItem
MapProductHaveOptionFitting map[int64]struct{}
MapResourceMetadata map[string]map[string]interface{}
Size uint32
User gmodel.FsUser
MinLevel *int //层级最小的
}
@@ -312,7 +305,6 @@ func (l *GetTagProductListLogic) dealWithTagMenuData(req dealWithTagMenuDataReq)
MapProductSizeCount: req.MapProductSizeCount,
MapProductHaveOptionFitting: req.MapProductHaveOptionFitting,
MapResourceMetadata: req.MapResourceMetadata,
Size: req.Size,
User: req.User,
})
//tag中产品