package com.ytpm.middle.param;

import com.ytpm.general.BaseParam;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

@EqualsAndHashCode(callSuper = true)
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("权限表单")
public class MiddlePermissionParam extends BaseParam {
    /** 权限ID */
    @ApiModelProperty(value = "权限ID")
    private int permissionId;
    /** 权限名称 */
    @ApiModelProperty(value = "权限名称",required = true)
    private String permissionName;
    /** 父级权限ID */
    @ApiModelProperty(value = "父级权限ID")
    private Integer parentId;
    /** 权限类型  menu-菜单 permission-按钮 */
    @ApiModelProperty(value = "权限类型  menu-菜单 permission-按钮",required = true)
    private String type;
    /** 权限编码 */
    @ApiModelProperty(value = "权限编码")
    private String permissionCode;
    /** 打开方式 */
    @ApiModelProperty(value = "打开方式")
    private String target;
    /** 图标 */
    @ApiModelProperty(value = "图标")
    private String icon;
    /** 链接 */
    @ApiModelProperty(value = "链接")
    private String href;
    /** 路由 */
    @ApiModelProperty(value = "路由",required = true)
    private String route;
    /** 排序 */
    @ApiModelProperty(value = "排序")
    private int sort;
}
