mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2025-05-02 11:48:54 +08:00
🎨 #2874 【企业微信】微信客服发送菜单消息菜单项支持纯文本内容
This commit is contained in:
parent
c109e81842
commit
43a460a28b
@ -1,6 +1,7 @@
|
||||
package me.chanjar.weixin.cp.bean.kf.msg;
|
||||
|
||||
import com.google.gson.annotations.SerializedName;
|
||||
|
||||
import lombok.Data;
|
||||
import lombok.Getter;
|
||||
import lombok.NoArgsConstructor;
|
||||
@ -64,6 +65,10 @@ public class WxCpKfMenuMsg {
|
||||
*/
|
||||
@SerializedName("miniprogram")
|
||||
private MiniProgram miniProgram;
|
||||
/**
|
||||
* type为text的菜单项
|
||||
*/
|
||||
private MenuText text;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -139,4 +144,21 @@ public class WxCpKfMenuMsg {
|
||||
*/
|
||||
private String content;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* The type Menu text.
|
||||
*
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
public static class MenuText {
|
||||
/**
|
||||
* <pre>
|
||||
* 是否必须:是
|
||||
* 说明:文本内容,支持\n(\和n两个字符)换行。不少于1字节 不多于256字节
|
||||
* </pre>
|
||||
*/
|
||||
private String content;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user