package cn.meowrain.aioj.backend.blogservice.dto.resp;

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

import java.util.Date;

/**
 * 草稿响应DTO
 *
 * @author AIOJ
 */
@Data
@Schema(description = "草稿响应")
public class DraftResponseDTO {

    @Schema(description = "草稿ID", example = "1")
    private Long id;

    @Schema(description = "用户ID", example = "1")
    private Long userId;

    @Schema(description = "文章标题", example = "Spring Boot 3.5.7 新特性详解")
    private String title;

    @Schema(description = "文章内容（Markdown格式）")
    private String content;

    @Schema(description = "分类ID", example = "1")
    private Long categoryId;

    @Schema(description = "封面图片URL", example = "https://example.com/images/cover.jpg")
    private String coverImage;

    @Schema(description = "是否自动保存", example = "1")
    private Integer autoSave;

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

    @Schema(description = "更新时间")
    private Date updateTime;
}
