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

categories []string 不生效啊 项目不在维护了么? #837

Closed
simanlx opened this issue May 28, 2024 · 2 comments · Fixed by #902
Closed

categories []string 不生效啊 项目不在维护了么? #837

simanlx opened this issue May 28, 2024 · 2 comments · Fixed by #902

Comments

@simanlx
Copy link

simanlx commented May 28, 2024

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) }

categories []string 获取的并非分类下的Item

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


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) }

categories []string obtains items other than categories.

@Tobi-Tr
Copy link

Tobi-Tr commented Sep 27, 2024

Same here

@zhenghaoz zhenghaoz linked a pull request Dec 20, 2024 that will close this issue
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

Successfully merging a pull request may close this issue.

3 participants