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

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

/**
 * 草稿保存请求DTO
 *
 * @author AIOJ
 */
@Data
@Schema(description = "草稿保存请求")
public class DraftSaveRequestDTO {

    @Schema(description = "草稿ID（更新时传入，创建时为空）", example = "1")
    private Long id;

    @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 = "是否自动保存（1=是，0=否）", example = "1")
    private Integer autoSave;
}
