com.alipay.api.domain.ButtonObject Maven / Gradle / Ivy
package com.alipay.api.domain;
import java.util.List;
import com.alipay.api.AlipayObject;
import com.alipay.api.internal.mapping.ApiField;
import com.alipay.api.internal.mapping.ApiListField;
/**
* 菜单对象模型
*
* @author auto create
* @since 1.0, 2017-07-04 11:09:00
*/
public class ButtonObject extends AlipayObject {
private static final long serialVersionUID = 7422959283521141791L;
/**
* 当actionType为link时,该参数为url链接;
当actionType为out时,该参数为用户自定义参数;
当actionType为tel时,该参数为电话号码。
当action_type为map时,该参数为查看地图的关键字。
当action_type为consumption时,该参数可不传。
该参数最长255个字符,不允许冒号等特殊字符。
*/
@ApiField("action_param")
private String actionParam;
/**
* 菜单类型:
out——事件型菜单;
link——链接型菜单;
tel——点击拨打电话;
map——点击查看地图;
consumption——点击查看用户与生活号管理员账号之间的消费记录
*/
@ApiField("action_type")
private String actionType;
/**
* icon图片url,必须是http协议的url,尺寸为60X60,最大不超过5M,请先调用 图片上传接口获得图片url
*/
@ApiField("icon")
private String icon;
/**
* 菜单名称,icon菜单名称不超过5个汉字,文本菜单名称不超过9个汉字,编码格式为GBK
*/
@ApiField("name")
private String name;
/**
* 二级菜单数组,若sub_button为空,则一级菜单必须指定action_type和action_param的值,二级菜单个数可以为1~5个。
*/
@ApiListField("sub_button")
@ApiField("sub_button")
private List subButton;
public String getActionParam() {
return this.actionParam;
}
public void setActionParam(String actionParam) {
this.actionParam = actionParam;
}
public String getActionType() {
return this.actionType;
}
public void setActionType(String actionType) {
this.actionType = actionType;
}
public String getIcon() {
return this.icon;
}
public void setIcon(String icon) {
this.icon = icon;
}
public String getName() {
return this.name;
}
public void setName(String name) {
this.name = name;
}
public List getSubButton() {
return this.subButton;
}
public void setSubButton(List subButton) {
this.subButton = subButton;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy