mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2026-03-10 00:13:40 +08:00
使用lombok的@Data注解简化mp模块的所有bean类
This commit is contained in:
@@ -47,8 +47,8 @@ public final class MusicBuilder extends BaseBuilder<MusicBuilder> {
|
||||
return this;
|
||||
}
|
||||
|
||||
public MusicBuilder thumbMediaId(String thumb_media_id) {
|
||||
this.thumbMediaId = thumb_media_id;
|
||||
public MusicBuilder thumbMediaId(String thumbMediaId) {
|
||||
this.thumbMediaId = thumbMediaId;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@@ -32,9 +32,9 @@ public final class VideoBuilder extends BaseBuilder<VideoBuilder, WxMpXmlOutVide
|
||||
public WxMpXmlOutVideoMessage build() {
|
||||
WxMpXmlOutVideoMessage m = new WxMpXmlOutVideoMessage();
|
||||
setCommon(m);
|
||||
m.setTitle(this.title);
|
||||
m.setDescription(this.description);
|
||||
m.setMediaId(this.mediaId);
|
||||
m.getVideo().setTitle(this.title);
|
||||
m.getVideo().setDescription(this.description);
|
||||
m.getVideo().setMediaId(this.mediaId);
|
||||
return m;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user