作者 tangxvhui

修改查询条件错误

@@ -28,7 +28,7 @@ func (l *SearchTagLogic) SearchTag(req *types.TagListRequest) (resp *types.TagLi @@ -28,7 +28,7 @@ func (l *SearchTagLogic) SearchTag(req *types.TagListRequest) (resp *types.TagLi
28 queryOptions := domain.NewQueryOptions().WithOffsetLimit(req.Page, req.Size) 28 queryOptions := domain.NewQueryOptions().WithOffsetLimit(req.Page, req.Size)
29 29
30 if len(req.Category) > 0 { 30 if len(req.Category) > 0 {
31 - queryOptions = queryOptions.MustWithKV("group", "%"+req.Category+"%") 31 + queryOptions = queryOptions.MustWithKV("category", "%"+req.Category+"%")
32 } 32 }
33 if len(req.TagName) > 0 { 33 if len(req.TagName) > 0 {
34 queryOptions = queryOptions.MustWithKV("name", "%"+req.TagName+"%") 34 queryOptions = queryOptions.MustWithKV("name", "%"+req.TagName+"%")