All Downloads are FREE. Search and download functionalities are using the official Maven repository.

lodsve.wechat.beans.Menu Maven / Gradle / Ivy

There is a newer version: 2.7.5-RELEASE
Show newest version
/*
 * 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 subButtons;

    @ApiModelProperty(value = "类型", required = true)
    public String getType() {
        return type;
    }

    @ApiModelProperty(value = "类型", required = true)
    public void setType(String type) {
        this.type = type;
    }

    @ApiModelProperty(value = "菜单名", required = true)
    public String getName() {
        return name;
    }

    @ApiModelProperty(value = "菜单名", required = true)
    public void setName(String name) {
        this.name = name;
    }

    @ApiModelProperty(value = "菜单编码", required = true)
    public String getKey() {
        return key;
    }

    @ApiModelProperty(value = "菜单编码", required = true)
    public void setKey(String key) {
        this.key = key;
    }

    @ApiModelProperty(value = "链接,菜单类型为link时", required = true)
    public String getUrl() {
        return url;
    }

    @ApiModelProperty(value = "链接,菜单类型为link时", required = true)
    public void setUrl(String url) {
        this.url = url;
    }

    @ApiModelProperty(value = "子菜单", required = true)
    public List getSubButtons() {
        return subButtons;
    }

    @ApiModelProperty(value = "子菜单", required = true)
    public void setSubButtons(List subButtons) {
        this.subButtons = subButtons;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy