package com.lesingle.edu.dto.response;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Builder;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 资源库响应
 * 用于返回资源库信息给前端
 */
@Data
@Builder
@Schema(description = "资源库响应")
public class ResourceLibraryResponse {

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

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

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

    @Schema(description = "资源库描述")
    private String description;

    @Schema(description = "资源库类型")
    @JsonProperty("libraryType")
    private String type;

    @Schema(description = "创建人")
    private String createdBy;

    @Schema(description = "更新人")
    private String updatedBy;

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

    @Schema(description = "更新时间")
    private LocalDateTime updatedAt;
}
