package com.lesingle.creation.vo.permission;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 权限列表 VO
 */
@Data
@Schema(description = "权限列表响应")
public class PermissionListVO {

    @Schema(description = "权限 ID")
    private Long id;

    @Schema(description = "租户 ID")
    private Long tenantId;

    @Schema(description = "权限名称")
    private String name;

    @Schema(description = "权限编码")
    private String code;

    @Schema(description = "资源名称")
    private String resource;

    @Schema(description = "操作类型")
    private String action;

    @Schema(description = "权限描述")
    private String description;

    @Schema(description = "有效状态：1-有效，2-失效")
    private Integer validState;

    @Schema(description = "创建时间")
    private LocalDateTime createTime;
}
