Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

http://127.0.0.1:8087/api/recommend/4?&n=10&category=m&category=n 多分类筛选不生效 #835

Open
simanlx opened this issue May 22, 2024 · 0 comments

Comments

@simanlx
Copy link

simanlx commented May 22, 2024

http://127.0.0.1:8087/api/recommend/4?&n=10&category=m&category=n 多分类筛选不生效

`
func (c *GorseClient) GetItemRecommend(ctx context.Context, userId string, categories []string, writeBackType,writeBackDelay string, n, offset int) ([]string, error) {

var queryCategories string

if len(categories) > 0 {
	queryCategories = "&category=" + strings.Join(categories, "&category=")
}

return request[[]string, any](ctx, c, "GET", c.entryPoint+fmt.Sprintf("/api/recommend/%s?write-back-type=%s&write-back-delay=%s&n=%d&offset=%d%s", userId, writeBackType, writeBackDelay, n, offset, queryCategories), nil)

}
`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant