🎨 #2874 【企业微信】微信客服发送菜单消息菜单项支持纯文本内容

This commit is contained in:
Grit 2022-11-08 16:29:49 +08:00 committed by GitHub
parent c109e81842
commit 43a460a28b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}
}