Skip to content

Commit 43a460a

Browse files
authored
🎨 #2874 【企业微信】微信客服发送菜单消息菜单项支持纯文本内容
1 parent c109e81 commit 43a460a

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/msg/WxCpKfMenuMsg.java

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package me.chanjar.weixin.cp.bean.kf.msg;
22

33
import com.google.gson.annotations.SerializedName;
4+
45
import lombok.Data;
56
import lombok.Getter;
67
import lombok.NoArgsConstructor;
@@ -64,6 +65,10 @@ public static class WxCpKfMenuItem {
6465
*/
6566
@SerializedName("miniprogram")
6667
private MiniProgram miniProgram;
68+
/**
69+
* type为text的菜单项
70+
*/
71+
private MenuText text;
6772
}
6873

6974
/**
@@ -139,4 +144,21 @@ public static class MiniProgram {
139144
*/
140145
private String content;
141146
}
147+
148+
/**
149+
*
150+
* The type Menu text.
151+
*
152+
*/
153+
@Getter
154+
@Setter
155+
public static class MenuText {
156+
/**
157+
* <pre>
158+
* 是否必须:是
159+
* 说明:文本内容,支持\n(\和n两个字符)换行。不少于1字节 不多于256字节
160+
* </pre>
161+
*/
162+
private String content;
163+
}
142164
}

0 commit comments

Comments
 (0)