![JAR search and dependency download from the Maven repository](/logo.png)
me.chanjar.weixin.cp.bean.kf.msg.WxCpKfMenuMsg Maven / Gradle / Ivy
package me.chanjar.weixin.cp.bean.kf.msg;
import com.google.gson.annotations.SerializedName;
import lombok.Data;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import java.util.List;
/**
* The type Wx cp kf menu msg.
*
* @author leiin created on 2022/1/26 6:33 下午
*/
@NoArgsConstructor
@Data
public class WxCpKfMenuMsg {
/**
* 参数:head_content
* 是否必须:否
* 类型:string
* 说明:起始文本 不多于1024字节
*/
@SerializedName("head_content")
private String headContent;
private List list;
/**
* 参数:tail_content
* 是否必须:否
* 类型:string
* 说明:结束文本 不多于1024字节
*/
@SerializedName("tail_content")
private String tailContent;
/**
* The type Wx cp kf menu item.
*/
@NoArgsConstructor
@Data
public static class WxCpKfMenuItem {
/**
* 参数:type
* 是否必须:是
* 类型:string
* 说明:菜单类型。click-回复菜单 view-超链接菜单 miniprogram-小程序菜单
*/
private String type;
/**
* type为click的菜单项
*/
private MenuClick click;
/**
* type为view的菜单项
*/
private MenuView view;
/**
* type为miniprogram的菜单项
*/
@SerializedName("miniprogram")
private MiniProgram miniProgram;
/**
* type为text的菜单项
*/
private MenuText text;
}
/**
* The type Menu click.
*/
@Getter
@Setter
public static class MenuClick {
/**
*
* 是否必须:否
* 说明:菜单ID。不少于1字节 不多于128字节
*
*/
private String id;
/**
*
* 是否必须:是
* 说明:菜单显示内容。不少于1字节 不多于128字节
*
*/
private String content;
}
/**
* The type Menu view.
*/
@Getter
@Setter
public static class MenuView {
/**
*
* 是否必须:是
* 说明:点击后跳转的链接。不少于1字节 不多于2048字节
*
*/
private String url;
/**
*
* 是否必须:是
* 说明:菜单显示内容。不少于1字节 不多于1024字节
*
*/
private String content;
}
/**
* The type Mini program.
*/
@Getter
@Setter
public static class MiniProgram {
/**
*
* 是否必须:是
* 说明:小程序appid。
*
*/
@SerializedName("appid")
private String appId;
/**
*
* 点击后进入的小程序页面。
*
*/
@SerializedName("pagepath")
private String pagePath;
/**
*
* 菜单显示内容。不多于1024字节
*
*/
private String content;
}
/**
*
* The type Menu text.
*
*/
@Getter
@Setter
public static class MenuText {
/**
*
* 是否必须:是
* 说明:文本内容,支持\n(\和n两个字符)换行。不少于1字节 不多于256字节
*
*/
private String content;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy