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

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

/**
 * 收藏请求DTO
 *
 * @author AIOJ
 */
@Data
@Schema(description = "收藏请求")
public class CollectionRequestDTO {

    @NotNull(message = "文章ID不能为空")
    @Schema(description = "文章ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    private Long articleId;

    @Schema(description = "收藏夹ID（0表示默认收藏夹）", example = "0")
    private Long folderId = 0L;

    @Schema(description = "收藏备注", example = "很好的文章，值得学习")
    private String note;
}
