package com.zxdmy.excite.system.entity.cloud.role;

import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 云盘权限表
 * </p>
 *
 * @author ss
 * @since 2026-01-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class CloudRole implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 权限名称
     */
    private String roleName;

    /**
     * 上传权限
     */
    private Integer roleUpload;

    /**
     * 下载权限
     */
    private Integer roleDown;
    private Integer roleDelete;
    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 创建者ID
     */
    private Integer creatorId;

    /**
     * 创建者姓名
     */
    private String creatorName;

    /**
     * 删除时间
     */
    private LocalDateTime deleteTime;

    /**
     * 删除者ID
     */
    private Integer deleteId;

    /**
     * 删除者姓名
     */
    private String deleteName;

    /**
     * 复选框使用的字段，默认为"0"，选中为"1"，
     */
    @TableField(exist = false)
    private String checkArr = "0";

    @TableField(exist = false)
    private String parentId = "-1";

    /**
     * 前端Layui表格中，多选框使用
     */
    @TableField(exist = false)
    @JsonProperty("LAY_CHECKED")
    private Boolean LAY_CHECKED = false;


}
