logo search

This commit is contained in:
eson
2023-10-20 14:29:16 +08:00
parent 441faaa104
commit d34c5ed03b
3 changed files with 10 additions and 3 deletions

View File

@@ -14,7 +14,7 @@ import (
// TODO: 使用model的属性做你想做的
// 搜索建议
func (p *FsPreprocessLogoModel) PreLogoSearchSuggestions(ctx context.Context, zipcode string, keywordsStr string, count int) (resp []FsPreprocessLogo, err error) {
func (p *FsPreprocessLogoModel) PreLogoSearch(ctx context.Context, zipcode string, keywordsStr string, count int) (resp []FsPreprocessLogo, err error) {
keywords := regexp.MustCompile(`\s+`).Split(keywordsStr, -1)
for i, v := range keywords {
keywords[i] = "+" + v + "*"