Closed newcworld closed 4 months ago
Add the expected output you want to get, I don't understand what you are trying to achieve.
func (c *ConverterImpl) ConvertSearchPoint(source *qdrant.ScoredPoint) *ggpb.LightSearchItem {
var pGgpbLightSearchItem *ggpb.LightSearchItem
if source != nil {
var ggpbLightSearchItem ggpb.LightSearchItem
ggpbLightSearchItem.Id = convert.PointId((*source).Id)
ggpbLightSearchItem.Keyword = convert.Name((*source).Payload)
+ ggpbLightSearchItem.Image = convert.Image((*source).Payload)
pGgpbLightSearchItem = &ggpbLightSearchItem
}
return pGgpbLightSearchItem
}
Have you tried map [SOURCE-PATH] TARGET | METHOD
?:
// goverter:converter
// goverter:matchIgnoreCase
// goverter:useZeroValueOnPointerInconsistency
// goverter:extend PointId
// goverter:extend TimeToTimestamp
// goverter:enum no
type Converter interface {
ConvertSearchPoints([]*qdrant.ScoredPoint) []*ggpb.LightSearchItem
// goverter:ignoreUnexported
// goverter:map Payload Keyword | Name
// goverter:map Payload Image | Image
// goverter:ignore Index Tags
ConvertSearchPoint(*qdrant.ScoredPoint) *ggpb.LightSearchItem
}
Describe the bug
When convert from one field to two or more field, it will only use the first map function
To Reproduce Include the input file that goverter has problems with, and describe the steps you took to trigger the bug
Expected behavior map one field to many field in diff methods