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 LikeRequestDTO {

    @NotNull(message = "目标ID不能为空")
    @Schema(description = "目标ID（文章ID或评论ID）", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    private Long targetId;

    @NotNull(message = "目标类型不能为空")
    @Schema(description = "目标类型：1=文章，2=评论", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    private Integer targetType;
}
