package com.zhgd.xmgl.modules.basicdata.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecgframework.poi.excel.annotation.Excel;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: 系统角色
 * @author： pds
 * @date： 2023-02-16
 * @version： V1.0
 */
@Data
@TableName("system_role")
@ApiModel(value = "SystemRole实体类", description = "SystemRole")
public class SystemRole implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 角色id
     */
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "角色id(主键ID)")
    private Long roleId;
    /**
     * 角色名称
     */
    @Excel(name = "角色名称", width = 15)
    @ApiModelProperty(value = "角色名称")
    private String roleName;
    /**
     * 角色标识
     */
    @Excel(name = "角色标识", width = 15)
    @ApiModelProperty(value = "角色标识")
    private String roleCode;
    /**
     * roleDesc
     */
    @Excel(name = "roleDesc", width = 15)
    @ApiModelProperty(value = "roleDesc")
    private String roleDesc;
    /**
     * 1.政务;2.企业;3.项目
     */
    @Excel(name = "2.政务;3.企业;4.项目", width = 15)
    @ApiModelProperty(value = "2.政务;3.企业;4.项目")
    private Integer roleType;
    /**
     * 政务、企业或项目sn
     */
    @Excel(name = "政务、企业或项目sn", width = 15)
    @ApiModelProperty(value = "政务、企业或项目sn")
    private String sn;

    /**
     * 创建时间
     */
    @Excel(name = "创建时间", width = 15)
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    /**
     * 状态(0:停用；1:启用)
     */
    @Excel(name = "状态(0:停用；1:启用)", width = 15)
    @ApiModelProperty(value = "状态(0:停用；1:启用)")
    private Integer state;

    /**
     * 优先级 越小越靠前(排序字段)
     */
    @Excel(name = "优先级 越小越靠前(排序字段)", width = 15)
    @ApiModelProperty(value = "优先级 越小越靠前(排序字段)")
    private Integer priority;
}
