logo search

This commit is contained in:
eson 2023-10-20 16:05:12 +08:00
parent 39d311c858
commit 34cabe5f70

View File

@ -47,6 +47,10 @@ func (p *FsPreprocessLogoModel) PreLogoSearch(ctx context.Context, zipcode strin
resp[i].ResourceUrl = FsString(testData[rand.Uint64()%uint64(len(testData))])
}
if resp == nil {
resp = make([]PreLogoSearchResult, 0)
}
return resp, nil
}
@ -72,6 +76,10 @@ func (p *FsPreprocessLogoModel) PreLogoSearchSuggestions(ctx context.Context, ke
resp[i].ResourceUrl = FsString(testData[rand.Uint64()%uint64(len(testData))])
}
if resp == nil {
resp = make([]PreLogoSearchResult, 0)
}
return resp, nil
}