package com.iformall.domain.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.iformall.domain.po.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

@TableName(value = "mall_permission")
@Data
@EqualsAndHashCode(callSuper = true)
public class MallPermission extends BaseEntity {
	private static final long serialVersionUID = 1L;
	

    protected Long id;


    @io.swagger.annotations.ApiModelProperty(value="权限名称",name="name")
	private String name;
	@TableField(exist = false)
    @io.swagger.annotations.ApiModelProperty(value="权限名称[LIKE]",name="nameLike")
	private String nameLike;
    @io.swagger.annotations.ApiModelProperty(value="父编号ID，一级菜单为0",name="parentId")
    private Long parentId;
    @TableField(exist = false)
    @io.swagger.annotations.ApiModelProperty(value="原父编号ID",name="origParentId")
    private Long origParentId;
    @TableField(exist = false)
    @io.swagger.annotations.ApiModelProperty(value="父菜单",name="parentName")
    private String parentName;
    @io.swagger.annotations.ApiModelProperty(value="是否可用 Y/N",name="permission")
    private String available;
	@io.swagger.annotations.ApiModelProperty(value="授权(多个用逗号分隔，如：user:list,user:create)",name="permission")
	private String permission;
	@TableField(exist = false)
	private List<String> permissions;
	@io.swagger.annotations.ApiModelProperty(value="资源类型0:目录 1:菜单 2:按钮",name="resourceType")
	private Integer resourceType;
    @io.swagger.annotations.ApiModelProperty(value="菜单背景色-1级菜单使用",name="moduleColor")
    private String moduleColor;
    @io.swagger.annotations.ApiModelProperty(value="菜单字体颜色-1级菜单使用",name="moduleColorNum")
    private String moduleColorNum;
	@io.swagger.annotations.ApiModelProperty(value="资源路径(user/list or http://localhost/1.html)",name="url")
	private String url;
    @io.swagger.annotations.ApiModelProperty(value="菜单图标",name="icon")
    private String icon;
    @io.swagger.annotations.ApiModelProperty(value="版本类型(1:标准版)",name="versionType")
    private Integer versionType;
	@io.swagger.annotations.ApiModelProperty(value="排序",name="sort")
	private Integer sort;

    @TableField(exist = false)
    private Integer sortFrom;
    @TableField(exist = false)
    private Integer  sortTo;
    @TableField(exist = false)
    private Integer sortGte;
    @TableField(exist = false)
    private Integer sortGt;
    @TableField(exist = false)
    private Integer sortLte;
    @TableField(exist = false)
    private Integer sortLt;

    @TableField(exist = false)
    @io.swagger.annotations.ApiModelProperty(value="子菜单",name="children")
    private List<?> children;

}
