package com.changfa.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotEmpty;

/**
 * <p>
 * 
 * </p>
 *
 * @author wwz
 * @since 2022-06-24
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("t_role")
@ApiModel(value="TRole对象", description="")
public class TRole extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键id",hidden = true)
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "角色名称")
    @TableField("role_name")
    @NotEmpty(message = "角色名称不能为空")
    private String roleName;

    @ApiModelProperty(value = "角色编号")
    @TableField("role_code")
    @NotEmpty(message = "角色编码不能为空")
    private String roleCode;

    @ApiModelProperty(value = "顺序")
    @TableField("order_no")
    private Integer orderNo;

    @ApiModelProperty(value = "描述")
    @TableField("describe_info")
    private String describeInfo;

    @TableLogic(delval = "1",value = "0")
    @ApiModelProperty(value = "删除状态",hidden = true)

    // @ExcelProperty(value = "删除状态",converter = LogicDelConvert.class)
    private Integer logicDel;


}
