package com.codvision.auth.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 系统角色
 * </p>
 *
 * @author lingee
 * @since 2023-11-09
 */
@Data
@TableName("tbl_sys_role")
@ApiModel(value = "SysRole", description = "系统角色")
public class SysRole implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("角色名称")
    private String roleName;

    @ApiModelProperty("角色标识")
    private String roleCode;

    @ApiModelProperty("角色描述")
    private String roleDesc;

    @ApiModelProperty("数据权限类型")
    private Short dsType;

    @ApiModelProperty("数据权限作用范围")
    private Short dsScope;

    @ApiModelProperty("删除标记,1:已删除,0:正常")
    private Short delFlag;

    @ApiModelProperty("逻辑删除辅助字段")
    private Short delKey;

    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("更新时间")
    private Date updateTime;

    @ApiModelProperty("是否默认")
    private Short isDefault;

    @ApiModelProperty("父角色id")
    private Integer pId;

    @ApiModelProperty("角色等级")
    private Short level;


}
