package com.xindazhou.business.controller.admin.community.post.vo;

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

import java.util.List;

@Schema(description = "管理后台 - 审核帖子 Request VO")
@Data
public class PostReviewReqVO {

    @Schema(description = "帖子ID，0表示批量", example = "1")
    @NotNull(message = "帖子ID不能为空")
    private Long id;

    @Schema(description = "审核结果：1-通过，0-不通过", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "审核结果不能为空")
    private Integer reviewResult;

    @Schema(description = "审核原因", requiredMode = Schema.RequiredMode.REQUIRED, example = "审核通过")
    @NotEmpty(message = "审核原因不能为空")
    private String reviewReason;

    @Schema(description = "批量审核时的ID列表", example = "[1,2,3]")
    private List<Long> ids;

}

