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

query_page_info.go中获取用户信息的uids取值似乎不太对吧 #5

Open
JuanJuanQingQuan opened this issue Oct 11, 2023 · 0 comments

Comments

@JuanJuanQingQuan
Copy link

下面这里uids,应该是topic以及post的userid字段而非主键ID吧

//获取用户信息
//	uids := []int64{f.topic.Id}
//	for _, post := range f.posts {
//		uids = append(uids, post.Id)
//	}
        uids := []int64{f.topic.UserId}

	for _, post := range f.posts {
		uids = append(uids, post.UserId)
	}
	userMap, err := repository.NewUserDaoInstance().MQueryUserById(uids)
	if err != nil {
		return err
	}
	f.userMap = userMap
	return 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