dev --- 3.8.0.A版本, openProject引用 ; formao-live --- 3.7.0.B 版本, formallProject引用
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

21 行
434 B

  1. package chanjarster.weixin.bean.custombuilder;
  2. import chanjarster.weixin.bean.WxCustomMessage;
  3. public class BaseBuilder<T> {
  4. protected String msgtype;
  5. protected String toUser;
  6. public T toUser(String toUser) {
  7. this.toUser = toUser;
  8. return (T) this;
  9. }
  10. public WxCustomMessage build() {
  11. WxCustomMessage m = new WxCustomMessage();
  12. m.setMsgtype(this.msgtype);
  13. m.setTouser(this.toUser);
  14. return m;
  15. }
  16. }