mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2025-09-24 04:53:50 +08:00
规范package,为发布到maven central repository做准备
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
package me.chanjar.weixin.bean.custombuilder;
|
||||
|
||||
import me.chanjar.weixin.bean.WxCustomMessage;
|
||||
|
||||
public class BaseBuilder<T> {
|
||||
protected String msgtype;
|
||||
protected String toUser;
|
||||
|
||||
public T toUser(String toUser) {
|
||||
this.toUser = toUser;
|
||||
return (T) this;
|
||||
}
|
||||
|
||||
public WxCustomMessage build() {
|
||||
WxCustomMessage m = new WxCustomMessage();
|
||||
m.setMsgtype(this.msgtype);
|
||||
m.setTouser(this.toUser);
|
||||
return m;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user