package cn.hztech.sdk.model.entity;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.util.List;

/**
 * 菜单实体
 */
@Data
public class Menu {

    @JsonProperty("id")
    private String id;

    @JsonProperty("name")
    private String name;

    @JsonProperty("code")
    private String code;

    @JsonProperty("alias")
    private String alias;

    @JsonProperty("parentId")
    private String parentId;

    @JsonProperty("parentName")
    private String parentName;

    @JsonProperty("path")
    private String path;

    @JsonProperty("component")
    private String component;

    @JsonProperty("source")
    private String source;

    @JsonProperty("category")
    private Integer category;

    @JsonProperty("categoryName")
    private String categoryName;

    @JsonProperty("sort")
    private Integer sort;

    @JsonProperty("action")
    private Integer action;

    @JsonProperty("actionName")
    private String actionName;

    @JsonProperty("isOpen")
    private Integer isOpen;

    @JsonProperty("isOpenName")
    private String isOpenName;

    @JsonProperty("hasChildren")
    private Boolean hasChildren;

    @JsonProperty("remark")
    private String remark;

    @JsonProperty("isDeleted")
    private Integer isDeleted;

    @JsonProperty("appId")
    private String appId;

    @JsonProperty("createTime")
    private String createTime;

    @JsonProperty("updateTime")
    private String updateTime;

    @JsonProperty("children")
    private List<Menu> children;
}
