chore: replace all cn comments to en version by volc api (#313)

This commit is contained in:
tecvan
2025-07-31 15:18:11 +08:00
committed by GitHub
parent 91d6cdb430
commit 5abc63fba6
254 changed files with 5899 additions and 5844 deletions

View File

@@ -87,12 +87,12 @@ func searchPromptResourceList(ctx context.Context, resource []*entity.PromptReso
if promptResource == nil {
continue
}
// 名称匹配
// name match
if strings.Contains(strings.ToLower(promptResource.Name), strings.ToLower(keyword)) {
retVal = append(retVal, promptResource)
continue
}
// 正文匹配
// Body Match
if strings.Contains(strings.ToLower(promptResource.PromptText), strings.ToLower(keyword)) {
retVal = append(retVal, promptResource)
}