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

WxMpKfAccountRequest 没有构造函数 #473

Closed
vancalcode opened this issue Feb 25, 2018 · 2 comments
Closed

WxMpKfAccountRequest 没有构造函数 #473

vancalcode opened this issue Feb 25, 2018 · 2 comments

Comments

@vancalcode
Copy link

vancalcode commented Feb 25, 2018

希望增加构造函数如下,方便作为 requestParam 参数调用。
public WxMpKfAccountRequest(String kfAccount, String nickName, String inviteWx) {
this.kfAccount = kfAccount;
this.nickName = nickName;
this.inviteWx = inviteWx;
}

@binarywang
Copy link
Member

不建议使用构造方法构造,现在所有的bean类都已经支持builder方法构造

@binarywang
Copy link
Member

按如下方式使用即可:

WxMpKfAccountRequest.builder().inviteWx(...).kfAccount(...).nickName(...).build();

@binarywang binarywang changed the title weixin-java-mp -> bean-> WxMpKfAccountRequest 没有构造函数 WxMpKfAccountRequest 没有构造函数 Feb 27, 2018
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

2 participants