规范package,为发布到maven central repository做准备

This commit is contained in:
Daniel Qian
2014-10-14 16:23:00 +08:00
parent fef9f82b23
commit e9cb1b79de
94 changed files with 466 additions and 449 deletions

View File

@@ -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;
}
}