97 lines
1.6 KiB
Java
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package com.designhub.entity;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import java.io.Serializable;
import java.time.LocalDateTime;
/**
* 权限实体类
*/
@Data
@TableName("sys_permission")
public class Permission implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 主键ID
*/
@TableId(value = "id", type = IdType.AUTO)
private Long id;
/**
* 父权限ID,0表示顶级权限
*/
private Long parentId;
/**
* 权限编码
*/
private String permissionCode;
/**
* 权限名称
*/
private String permissionName;
/**
* 权限类型:menu-菜单,button-按钮,api-接口
*/
private String type;
/**
* 权限路径/接口路径
*/
private String path;
/**
* 请求方法:GET/POST/PUT/DELETE等
*/
private String method;
/**
* 图标
*/
private String icon;
/**
* 组件路径
*/
private String component;
/**
* 权限描述
*/
private String description;
/**
* 排序号
*/
private Integer sortOrder;
/**
* 状态:0-禁用,1-启用
*/
private Integer status;
/**
* 创建时间
*/
@TableField(fill = FieldFill.INSERT)
private LocalDateTime createTime;
/**
* 更新时间
*/
@TableField(fill = FieldFill.INSERT_UPDATE)
private LocalDateTime updateTime;
/**
* 删除标志:0-未删除,1-已删除
*/
@TableLogic
private Integer deleted;
}