🎨 修复部分错误的javadoc标签

This commit is contained in:
Binary Wang
2023-06-06 23:35:45 +08:00
parent 15d14929df
commit dd7f02de35
48 changed files with 355 additions and 448 deletions

View File

@ -3,7 +3,6 @@ package me.chanjar.weixin.mp.bean.kefu;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import me.chanjar.weixin.common.api.WxConsts;
import me.chanjar.weixin.mp.builder.kefu.*;
import me.chanjar.weixin.mp.util.json.WxMpGsonBuilder;
@ -124,18 +123,18 @@ public class WxMpKefuMessage implements Serializable {
/**
* <pre>
* 请使用
* {@link WxConsts.KefuMsgType#TEXT}
* {@link WxConsts.KefuMsgType#IMAGE}
* {@link WxConsts.KefuMsgType#VOICE}
* {@link WxConsts.KefuMsgType#MUSIC}
* {@link WxConsts.KefuMsgType#VIDEO}
* {@link WxConsts.KefuMsgType#NEWS}
* {@link WxConsts.KefuMsgType#MPNEWS}
* {@link WxConsts.KefuMsgType#WXCARD}
* {@link WxConsts.KefuMsgType#MINIPROGRAMPAGE}
* {@link WxConsts.KefuMsgType#TASKCARD}
* {@link WxConsts.KefuMsgType#MSGMENU}
* {@link WxConsts.KefuMsgType#MP_NEWS_ARTICLE}
* {@link me.chanjar.weixin.common.api.WxConsts.KefuMsgType#TEXT}
* {@link me.chanjar.weixin.common.api.WxConsts.KefuMsgType#IMAGE}
* {@link me.chanjar.weixin.common.api.WxConsts.KefuMsgType#VOICE}
* {@link me.chanjar.weixin.common.api.WxConsts.KefuMsgType#MUSIC}
* {@link me.chanjar.weixin.common.api.WxConsts.KefuMsgType#VIDEO}
* {@link me.chanjar.weixin.common.api.WxConsts.KefuMsgType#NEWS}
* {@link me.chanjar.weixin.common.api.WxConsts.KefuMsgType#MPNEWS}
* {@link me.chanjar.weixin.common.api.WxConsts.KefuMsgType#WXCARD}
* {@link me.chanjar.weixin.common.api.WxConsts.KefuMsgType#MINIPROGRAMPAGE}
* {@link me.chanjar.weixin.common.api.WxConsts.KefuMsgType#TASKCARD}
* {@link me.chanjar.weixin.common.api.WxConsts.KefuMsgType#MSGMENU}
* {@link me.chanjar.weixin.common.api.WxConsts.KefuMsgType#MP_NEWS_ARTICLE}
* </pre>
*/
public void setMsgType(String msgType) {

View File

@ -1,48 +1,48 @@
package me.chanjar.weixin.mp.builder.outxml;
import me.chanjar.weixin.mp.bean.message.WxMpXmlOutDeviceMessage;
/**
* 设备消息 Builder
* @author biggates
* @see https://iot.weixin.qq.com/wiki/new/index.html?page=3-4-2
*/
public final class DeviceBuilder extends BaseBuilder<DeviceBuilder, WxMpXmlOutDeviceMessage> {
private String deviceId;
private String deviceType;
private String content;
private String sessionId;
public DeviceBuilder deviceType(String deviceType) {
this.deviceType = deviceType;
return this;
}
public DeviceBuilder deviceId(String deviceId) {
this.deviceId = deviceId;
return this;
}
public DeviceBuilder content(String content) {
this.content = content;
return this;
}
public DeviceBuilder sessionId(String sessionId) {
this.sessionId = sessionId;
return this;
}
@Override
public WxMpXmlOutDeviceMessage build() {
WxMpXmlOutDeviceMessage m = new WxMpXmlOutDeviceMessage();
setCommon(m);
m.setDeviceId(this.deviceId);
m.setDeviceType(this.deviceType);
m.setContent(this.content);
m.setSessionId(this.sessionId);
return m;
}
}
package me.chanjar.weixin.mp.builder.outxml;
import me.chanjar.weixin.mp.bean.message.WxMpXmlOutDeviceMessage;
/**
* 设备消息 Builder
* @author biggates
* @see <a href="https://iot.weixin.qq.com/wiki/new/index.html?page=3-4-2">文档</a>
*/
public final class DeviceBuilder extends BaseBuilder<DeviceBuilder, WxMpXmlOutDeviceMessage> {
private String deviceId;
private String deviceType;
private String content;
private String sessionId;
public DeviceBuilder deviceType(String deviceType) {
this.deviceType = deviceType;
return this;
}
public DeviceBuilder deviceId(String deviceId) {
this.deviceId = deviceId;
return this;
}
public DeviceBuilder content(String content) {
this.content = content;
return this;
}
public DeviceBuilder sessionId(String sessionId) {
this.sessionId = sessionId;
return this;
}
@Override
public WxMpXmlOutDeviceMessage build() {
WxMpXmlOutDeviceMessage m = new WxMpXmlOutDeviceMessage();
setCommon(m);
m.setDeviceId(this.deviceId);
m.setDeviceType(this.deviceType);
m.setContent(this.content);
m.setSessionId(this.sessionId);
return m;
}
}