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

增加批量获取用户信息的功能 #106

Merged
merged 1 commit into from
Apr 23, 2019
Merged

增加批量获取用户信息的功能 #106

merged 1 commit into from
Apr 23, 2019

Conversation

aikangs
Copy link
Contributor

@aikangs aikangs commented Dec 31, 2018

增加批量获取用户信息的功能

Copy link
Contributor

@airylinus airylinus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

代码格式调整一下就可以了,加油。

user/user.go Outdated
@@ -88,3 +97,33 @@ func (user *User) UpdateRemark(openID, remark string) (err error) {

return util.DecodeWithCommonError(response, "UpdateRemark")
}

// BatchGetUser 批量获取用户基本信息
func (user *User) BatchGetUser(batchUserQuery ... *BatchUserQuery)([]*Info,error){
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

逗号后面跟一个空格,例如:
func (user *User) BatchGetUser(batchUserQuery ... *BatchUserQuery)([]*Info, error){

user/user.go Outdated
// BatchGetUser 批量获取用户基本信息
func (user *User) BatchGetUser(batchUserQuery ... *BatchUserQuery)([]*Info,error){
if len(batchUserQuery)>100{
return nil,errors.New("最多支持一次拉取100条")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

逗号后面跟一个空格,例如:
return nil, errors.New("最多支持一次拉取100条")
vscode 装插件自动整理代码格式

@silenceper silenceper merged commit 58d6810 into silenceper:develop Apr 23, 2019
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 this pull request may close these issues.

None yet

3 participants