lodsve.wechat.beans.Menu Maven / Gradle / Ivy
/*
* Copyright (C) 2018 Sun.Hao
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
package lodsve.wechat.beans;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.List;
/**
* 菜单.
*
* @author sunhao([email protected])
* @version V1.0, 16/2/23 下午4:14
*/
@ApiModel(description = "菜单")
public class Menu {
@ApiModelProperty(value = "类型", required = true)
private String type;
@ApiModelProperty(value = "菜单名", required = true)
private String name;
@ApiModelProperty(value = "菜单编码", required = true)
private String key;
@ApiModelProperty(value = "链接,菜单类型为link时", required = true)
private String url;
@ApiModelProperty(value = "子菜单", required = true)
@JsonProperty("sub_button")
private List